commit: 75464915fc7431e173764ebf602143a8d5b12e7e Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> AuthorDate: Fri Nov 4 13:39:16 2022 +0000 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> CommitDate: Fri Nov 4 14:10:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=75464915
dev-python/fastavro: add 1.7.0, drop old Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> dev-python/fastavro/Manifest | 3 +- dev-python/fastavro/fastavro-1.5.1.ebuild | 47 ------------------------ dev-python/fastavro/fastavro-1.5.2.ebuild | 47 ------------------------ dev-python/fastavro/fastavro-1.7.0.ebuild | 60 +++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+), 96 deletions(-) diff --git a/dev-python/fastavro/Manifest b/dev-python/fastavro/Manifest index 5edfe9d9f..b85054b0a 100644 --- a/dev-python/fastavro/Manifest +++ b/dev-python/fastavro/Manifest @@ -1,2 +1 @@ -DIST fastavro-1.5.1.tar.gz 761574 BLAKE2B fd520edaf533120022cbe6f3cabe5919c952b43bd4d131bb2aacbaded6fbda4d60e8610c12850310c28ac0fc5696301f4ef725c8369057dff9c73b9b35653ada SHA512 6fa2169d4cc26c2176e61da159129e6456296d99bce2d973916d6a0f071feec7b930f985167d7e1e3e0939ec2a5ff387f67e221ff6f52523015af99d4823bf1e -DIST fastavro-1.5.2.tar.gz 761565 BLAKE2B 16e4408fa85ee2703a66cb9e8d125a651d879c69475e3137f95283ed974a3b158f0fc7a67de660db06731d45b7952d04b510a08d472fc5a7d86fe5e57a9d264b SHA512 9885291f9ed15da05ee1fc816a95b6fcb269a6c5814efa9f94188c39e5bb0b31dd5afc1c76ae10268a4e128306d66f60c2087d5c0335c1e918e477fabe7f6cf0 +DIST fastavro-1.7.0.tar.gz 787676 BLAKE2B 8cbf382a2ef727b2daf35c15dd6790f080bc579f0ae85bf35c036c55ff8347b86ab5d1becd5b5951fa30fdd299ea7c2ba677798b50d23743ac20fbf488c36d4a SHA512 132f347c7d257edd76660925a8c6d13b04ff009ba7d5a4719eb59fd5d7f88fd62c3120ba7aeea1da905027f02a0851ffd05a1ef29900ad20dd9ac2b9c1eb38f9 diff --git a/dev-python/fastavro/fastavro-1.5.1.ebuild b/dev-python/fastavro/fastavro-1.5.1.ebuild deleted file mode 100644 index 2802e6c4d..000000000 --- a/dev-python/fastavro/fastavro-1.5.1.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -# https://github.com/fastavro/fastavro/issues/558 -EPYTEST_DESELECT=( - tests/test_fastavro.py::test_cython_python - tests/test_main_cli.py::test_cli_record_output - tests/test_main_cli.py::test_cli_stream_input - tests/test_main_cli.py::test_cli_arg_metadata - tests/test_main_cli.py::test_cli_arg_schema - tests/test_main_cli.py::test_cli_arg_codecs -) -PYTHON_COMPAT=( python3_{8..10} ) - -inherit distutils-r1 - -DESCRIPTION="Fast Avro for Python" -HOMEPAGE=" - https://github.com/fastavro/fastavro - https://pypi.org/project/fastavro/ -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND="" -DEPEND=" - ${RDEPEND} - dev-python/cython[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] - dev-python/snappy[${PYTHON_USEDEP}] - dev-python/zstandard[${PYTHON_USEDEP}] - dev-python/lz4[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest diff --git a/dev-python/fastavro/fastavro-1.5.2.ebuild b/dev-python/fastavro/fastavro-1.5.2.ebuild deleted file mode 100644 index 2802e6c4d..000000000 --- a/dev-python/fastavro/fastavro-1.5.2.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -# https://github.com/fastavro/fastavro/issues/558 -EPYTEST_DESELECT=( - tests/test_fastavro.py::test_cython_python - tests/test_main_cli.py::test_cli_record_output - tests/test_main_cli.py::test_cli_stream_input - tests/test_main_cli.py::test_cli_arg_metadata - tests/test_main_cli.py::test_cli_arg_schema - tests/test_main_cli.py::test_cli_arg_codecs -) -PYTHON_COMPAT=( python3_{8..10} ) - -inherit distutils-r1 - -DESCRIPTION="Fast Avro for Python" -HOMEPAGE=" - https://github.com/fastavro/fastavro - https://pypi.org/project/fastavro/ -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND="" -DEPEND=" - ${RDEPEND} - dev-python/cython[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] - dev-python/snappy[${PYTHON_USEDEP}] - dev-python/zstandard[${PYTHON_USEDEP}] - dev-python/lz4[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest diff --git a/dev-python/fastavro/fastavro-1.7.0.ebuild b/dev-python/fastavro/fastavro-1.7.0.ebuild new file mode 100644 index 000000000..267627439 --- /dev/null +++ b/dev-python/fastavro/fastavro-1.7.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 optfeature + +DESCRIPTION="Fast read/write of AVRO files" +HOMEPAGE=" + https://github.com/fastavro/fastavro + https://pypi.org/project/fastavro/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +TEST_S="${S}_test" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/lz4[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/python-zstandard[${PYTHON_USEDEP}] + dev-python/snappy[${PYTHON_USEDEP}] + ) +" + +EPYTEST_DESELECT=( + # TypeError + tests/test_fastavro.py::test_regular_vs_ordered_dict_record_typeerror +) + +distutils_enable_tests pytest + +distutils_enable_sphinx docs \ + dev-python/sphinx_rtd_theme + +src_unpack() { + default + + cp -a "${S}" "${TEST_S}" || die + rm -r "${TEST_S}"/fastavro/* || die + cp {"${S}","${TEST_S}"}/fastavro/__main__.py || die +} + +python_test() { + cd "${TEST_S}" || die + epytest +} + +pkg_postinst() { + optfeature "lz4 support" dev-python/lz4 + optfeature "snappy support" dev-python/snappy + optfeature "zstd support" dev-python/python-zstandard +}