From d2a60d563de96d9052cd5e2cbf89e30f5eb23aee Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Thu, 15 Aug 2024 19:51:18 +0000 Subject: Adding metadata --- dev-python/aws-sam-translator/Manifest | 1 + .../aws-sam-translator-1.90.0.ebuild | 62 +++++++++++ dev-python/boto3/Manifest | 1 + dev-python/boto3/boto3-1.34.161.ebuild | 53 +++++++++ dev-python/botocore/Manifest | 1 + dev-python/botocore/botocore-1.34.161.ebuild | 76 +++++++++++++ dev-python/btrfsutil/Manifest | 2 + dev-python/btrfsutil/btrfsutil-6.10.1.ebuild | 46 ++++++++ .../click-didyoumean/click-didyoumean-0.3.1.ebuild | 2 +- dev-python/cypari2/Manifest | 1 + dev-python/cypari2/cypari2-2.2.0.ebuild | 34 ++++++ ...ari2-2.2.0-regen-bindings-for-each-python.patch | 25 +++++ dev-python/django-allauth/Manifest | 3 +- .../django-allauth/django-allauth-0.61.1.ebuild | 66 ----------- .../django-allauth/django-allauth-0.63.6.ebuild | 65 ----------- .../django-allauth/django-allauth-64.1.0.ebuild | 65 +++++++++++ dev-python/dparse/dparse-0.6.4_beta0.ebuild | 2 +- dev-python/google-api-python-client/Manifest | 1 + .../google-api-python-client-2.141.0.ebuild | 50 +++++++++ dev-python/griffe/Manifest | 1 + dev-python/griffe/griffe-0.49.0.ebuild | 49 +++++++++ dev-python/imageio/imageio-2.35.0-r1.ebuild | 106 ++++++++++++++++++ dev-python/imageio/imageio-2.35.0.ebuild | 103 ------------------ dev-python/importlib-resources/Manifest | 1 + .../importlib-resources-6.4.2.ebuild | 30 +++++ dev-python/mkdocstrings-python/Manifest | 1 + .../mkdocstrings-python-1.10.8.ebuild | 34 ++++++ dev-python/numpy/numpy-2.1.0_rc1.ebuild | 1 - dev-python/openapi-core/Manifest | 1 + dev-python/openapi-core/openapi-core-0.19.3.ebuild | 71 ++++++++++++ .../files/pipdeptree-2.18.1-fix-pypy-7.3.14.patch | 16 ++- dev-python/pipdeptree/pipdeptree-2.18.1-r1.ebuild | 59 ++++++++++ dev-python/pipdeptree/pipdeptree-2.18.1.ebuild | 51 --------- dev-python/pipenv/pipenv-2024.0.1.ebuild | 2 +- dev-python/pkgcraft/Manifest | 1 + dev-python/pkgcraft/pkgcraft-0.0.11.ebuild | 81 ++++++++++++++ dev-python/pkgcraft/pkgcraft-9999.ebuild | 2 +- dev-python/plette/plette-0.4.4.ebuild | 2 +- dev-python/pythonfinder/pythonfinder-2.1.0.ebuild | 2 +- dev-python/shellingham/shellingham-1.5.4.ebuild | 2 +- dev-python/simplejson/Manifest | 1 + dev-python/simplejson/simplejson-3.19.3.ebuild | 37 +++++++ dev-python/sqlglot/Manifest | 2 +- dev-python/sqlglot/sqlglot-25.10.0.ebuild | 121 --------------------- dev-python/sqlglot/sqlglot-25.11.3.ebuild | 121 +++++++++++++++++++++ dev-python/tables/Manifest | 1 + dev-python/tables/files/tables-3.10.0-pypy.patch | 42 +++++++ dev-python/tables/tables-3.10.0.ebuild | 80 ++++++++++++++ dev-python/tomlkit/Manifest | 1 + dev-python/tomlkit/tomlkit-0.13.2.ebuild | 48 ++++++++ dev-python/twine/twine-5.1.1-r1.ebuild | 83 ++++++++++++++ dev-python/twine/twine-5.1.1.ebuild | 80 -------------- dev-python/unearth/Manifest | 1 + dev-python/unearth/unearth-0.17.0.ebuild | 42 +++++++ dev-python/uv/Manifest | 4 + dev-python/uv/uv-0.2.36.ebuild | 109 +++++++++++++++++++ dev-python/webob/Manifest | 2 +- dev-python/webob/webob-1.8.7-r1.ebuild | 37 ------- dev-python/webob/webob-1.8.8.ebuild | 36 ++++++ 59 files changed, 1481 insertions(+), 539 deletions(-) create mode 100644 dev-python/aws-sam-translator/aws-sam-translator-1.90.0.ebuild create mode 100644 dev-python/boto3/boto3-1.34.161.ebuild create mode 100644 dev-python/botocore/botocore-1.34.161.ebuild create mode 100644 dev-python/btrfsutil/btrfsutil-6.10.1.ebuild create mode 100644 dev-python/cypari2/cypari2-2.2.0.ebuild create mode 100644 dev-python/cypari2/files/cypari2-2.2.0-regen-bindings-for-each-python.patch delete mode 100644 dev-python/django-allauth/django-allauth-0.61.1.ebuild delete mode 100644 dev-python/django-allauth/django-allauth-0.63.6.ebuild create mode 100644 dev-python/django-allauth/django-allauth-64.1.0.ebuild create mode 100644 dev-python/google-api-python-client/google-api-python-client-2.141.0.ebuild create mode 100644 dev-python/griffe/griffe-0.49.0.ebuild create mode 100644 dev-python/imageio/imageio-2.35.0-r1.ebuild delete mode 100644 dev-python/imageio/imageio-2.35.0.ebuild create mode 100644 dev-python/importlib-resources/importlib-resources-6.4.2.ebuild create mode 100644 dev-python/mkdocstrings-python/mkdocstrings-python-1.10.8.ebuild create mode 100644 dev-python/openapi-core/openapi-core-0.19.3.ebuild create mode 100644 dev-python/pipdeptree/pipdeptree-2.18.1-r1.ebuild delete mode 100644 dev-python/pipdeptree/pipdeptree-2.18.1.ebuild create mode 100644 dev-python/pkgcraft/pkgcraft-0.0.11.ebuild create mode 100644 dev-python/simplejson/simplejson-3.19.3.ebuild delete mode 100644 dev-python/sqlglot/sqlglot-25.10.0.ebuild create mode 100644 dev-python/sqlglot/sqlglot-25.11.3.ebuild create mode 100644 dev-python/tables/files/tables-3.10.0-pypy.patch create mode 100644 dev-python/tables/tables-3.10.0.ebuild create mode 100644 dev-python/tomlkit/tomlkit-0.13.2.ebuild create mode 100644 dev-python/twine/twine-5.1.1-r1.ebuild delete mode 100644 dev-python/twine/twine-5.1.1.ebuild create mode 100644 dev-python/unearth/unearth-0.17.0.ebuild create mode 100644 dev-python/uv/uv-0.2.36.ebuild delete mode 100644 dev-python/webob/webob-1.8.7-r1.ebuild create mode 100644 dev-python/webob/webob-1.8.8.ebuild (limited to 'dev-python') diff --git a/dev-python/aws-sam-translator/Manifest b/dev-python/aws-sam-translator/Manifest index 8b7241b11a47..eed4497fb734 100644 --- a/dev-python/aws-sam-translator/Manifest +++ b/dev-python/aws-sam-translator/Manifest @@ -1 +1,2 @@ DIST serverless-application-model-1.89.0.gh.tar.gz 5659213 BLAKE2B 1b8128c904ee1db34e722e0e4d5e7a0b16685dfbc589c390e34679b75481afad963a30f40d18bedb29010f62a338d1818da957ce6b58b7ee63d83444dccfc8ac SHA512 899fe08f3a16669de86ad3861d1072017af5fb3d2254583e502970c77e280d0ccb39b6a8f7e647acb94fb0cc6305aba35a98663427114764300d69f9c3b5e2fe +DIST serverless-application-model-1.90.0.gh.tar.gz 5707682 BLAKE2B c587baee9e3a17a98eef7098d24f2f5d5ba0bf1e965a3ee9ad3d93f855134f99b46bbe7e0e065270e3e227f526f7e09e73894672a3e639e6a6a76a881a7e782d SHA512 b99d6ac8cbebca191cf1a46041c4a599ba6bf26f0c373243760bd5034dcb9e09e1754e5c9aa0132abb364111aa209ad784987bc533a9644de332ce91ff881f46 diff --git a/dev-python/aws-sam-translator/aws-sam-translator-1.90.0.ebuild b/dev-python/aws-sam-translator/aws-sam-translator-1.90.0.ebuild new file mode 100644 index 000000000000..f01bb1ccf394 --- /dev/null +++ b/dev-python/aws-sam-translator/aws-sam-translator-1.90.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 multiprocessing + +MY_P=serverless-application-model-${PV} +DESCRIPTION="A library that transform SAM templates into AWS CloudFormation templates" +HOMEPAGE=" + https://github.com/aws/serverless-application-model/ + https://pypi.org/project/aws-sam-translator/ +" +SRC_URI=" + https://github.com/aws/serverless-application-model/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + =dev-python/boto3-1.19.5[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.2[${PYTHON_USEDEP}] + =dev-python/pydantic-1.8[${PYTHON_USEDEP}] + =dev-python/typing-extensions-4.4[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # so much noise... + sed -i -e '/log_cli/d' pytest.ini || die + + # deps are installed by ebuild, don't try to reinstall them via pip + truncate --size=0 requirements/*.txt || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x AWS_DEFAULT_REGION=us-east-1 + epytest -o addopts= -o filterwarnings= \ + -p xdist -n "$(makeopts_jobs)" --dist=worksteal +} diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 4dda3aff738a..d94117719dbc 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -3,3 +3,4 @@ DIST boto3-1.34.153.gh.tar.gz 847038 BLAKE2B f29aec887fd57d2bc4b6be125787384438e DIST boto3-1.34.158.gh.tar.gz 848930 BLAKE2B 5db04b9eee08f5418a595e736f075fbe22b92adada9219e8a8cf2299c723d09e2edf88e5ebb3d09c1613a01e5d0d5c837e9545c6ee3110c430c521da10fa2bde SHA512 03f532e78a1a2b8ec01396f0b7f7bae7059165e35440eda47f4393e99d2a8ded229470cf3269a71c746b8a66dccd8626444f1e429e561df1dc1ec0f6b8653272 DIST boto3-1.34.159.gh.tar.gz 849599 BLAKE2B e21979dd33413d63dfb905cdde8351a89fb3a431ee0873ffc3cbb8e9681c207842c5d2c288622736c0ac7516ef0d607d6ee5caea9877c1b7f177c0cae7125f9c SHA512 6fe6528240b0f1ed78e1b4ccba104c238075d8daff3b2224f03912a48f9278d1d92d8caf13951128e25e19d49e895492e463dc8aaa3d903982ebbacbbf727b21 DIST boto3-1.34.160.gh.tar.gz 850214 BLAKE2B 74e8bfecc23086301750ec55e265c57d9085ca292ed9155948e46deb2531860b01336ab341371421333b041f6ba4f4a9114926969d39620b2ba508541ee0fc90 SHA512 ad443616bb4a04fc9e3cceee462d4f06c17c5096853b69e4ccaf1c319bb48fd0bd0131cb3de496b7d05f194818e36c8a165578c5afc3304a7d628936ddc478c9 +DIST boto3-1.34.161.gh.tar.gz 850347 BLAKE2B 22e07b72898be28df3547b4a32b4340d9b8267c65d876daaea5b0c1f31a38516964eae11a16fc074d1b9b476fde970976784fed1965a8deef1db74b387699ee4 SHA512 90ffe03ced6546cd271d36cf38a5ebe7fbadcd46c1036a74be238b8006ce29795964e10861ec56920f2ceb5a83b8001029c1b0ea1a75a536d3e025ebc84315a3 diff --git a/dev-python/boto3/boto3-1.34.161.ebuild b/dev-python/boto3/boto3-1.34.161.ebuild new file mode 100644 index 000000000000..509842b2699d --- /dev/null +++ b/dev-python/boto3/boto3-1.34.161.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE=" + https://github.com/boto/boto3/ + https://pypi.org/project/boto3/ +" +SRC_URI=" + https://github.com/boto/boto3/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/botocore-${PV}[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}] +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_prepare_all() { + # don't lock versions to narrow ranges + sed -e '/botocore/ d' \ + -e '/jmespath/ d' \ + -e '/s3transfer/ d' \ + -i setup.py || die + + # do not rely on bundled deps in botocore (sic!) + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index 81e057547871..c5a986fdec8e 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -3,3 +3,4 @@ DIST botocore-1.34.153.gh.tar.gz 13269606 BLAKE2B 1b2ec1af3b699c18c5761fe72b8488 DIST botocore-1.34.158.gh.tar.gz 13282704 BLAKE2B c244a36093cdaf57ac82dc11a3e9d4268d7cce36b8119674530228825f6ec4053abbc909dd664a1ea10ec48e0c418b90803275aabc89a41a99eaba6e138a5a17 SHA512 b60c743bfd1a1f3806c6ae71158a998587b8e87f43bdbe88c960cee19bcef41a4b3fd2fe5f50408abc97b22200a689990f79cbb6e952347c747e4bc8c21ae368 DIST botocore-1.34.159.gh.tar.gz 13286596 BLAKE2B 76548a1a0dacbaeadb4cc95cdbb50f22bc8b61e8b9645caf1d36cde94fed824d0bcc7349626e33792593bcf715e4dd3978f2dc4d4dfeaf8a1bfcb428f99ee8a1 SHA512 1687ab7897dbe68189e812193c9c2134753c0bdd72af109516a2a3bcdda53c16edbb0e76b8f6cd7df0fd29e16de33f78135a3c560444b6d9c5291b3e558c2a03 DIST botocore-1.34.160.gh.tar.gz 13290395 BLAKE2B 609ade4e363b1c65409457e187c09e8eea633ab7d482bae5be3580093ca404ae82363e9785d07b65dee3504c63e5c4dc6521717a6698c97f7a404f58103c8e8f SHA512 655348a9e7f88ad0abaab3d0b4bb380ca16c705a1035eedecf44e8b546583720f0f6d01136b0d333e5828069c4d45c7f27530ba4b7f8c3ee684bd4cd0e233ce4 +DIST botocore-1.34.161.gh.tar.gz 13290428 BLAKE2B 9a12df5e533560039d69225ef04345765cdefa11546210a2ad791d38532a54536a0c8705c29c1293b31fec7589f0512fa6f01570342d6f1fbba9a3278c06700f SHA512 8c59cadaa2cedefaeb11057f344c1488c879629199f6e5038c49668cbc814ac1ab68031893c401a5f8baecaea333929822997e81e4f644ebfb09a3af85b7a189 diff --git a/dev-python/botocore/botocore-1.34.161.ebuild b/dev-python/botocore/botocore-1.34.161.ebuild new file mode 100644 index 000000000000..64a61a30c80b --- /dev/null +++ b/dev-python/botocore/botocore-1.34.161.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE=" + https://github.com/boto/botocore/ + https://pypi.org/project/botocore/ +" +SRC_URI=" + https://github.com/boto/botocore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + =dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +# unbundled packages +RDEPEND+=" + dev-python/requests[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + + # unbundle deps + rm -r botocore/vendored || die + find -name '*.py' -exec sed -i \ + -e 's:from botocore[.]vendored import:import:' \ + -e 's:from botocore[.]vendored[.]:from :' \ + {} + || die + + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # rely on bundled six + tests/functional/test_six_imports.py::test_no_bare_six_imports + tests/functional/test_six_threading.py::test_six_thread_safety + ) + + case ${EPYTHON} in + python3.13) + EPYTEST_DESELECT+=( + # memory use tests, probably fragile + tests/functional/leak/test_resource_leaks.py::TestDoesNotLeakMemory + ) + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests/{functional,unit} +} diff --git a/dev-python/btrfsutil/Manifest b/dev-python/btrfsutil/Manifest index e81c9c007988..e35d2c597415 100644 --- a/dev-python/btrfsutil/Manifest +++ b/dev-python/btrfsutil/Manifest @@ -1,3 +1,5 @@ +DIST btrfs-progs-v6.10.1.tar.sign 566 BLAKE2B dc18c0048716e422475c6630c26c74e09b3595fb8c5c1a1826464eb837d16edfe7d5fa1f418631ae4d380b24bc3fb91fa79ba1e9b1d42a2534838558362ddc18 SHA512 a8a1805ab22feda9f0535841d44120200e48d6d3762ae98f3323be09c9bd7905ff69f21066a8de1fe5cb34a3113879b73ae030a74ccc74737f06dafb32093375 +DIST btrfs-progs-v6.10.1.tar.xz 2670604 BLAKE2B 7a2631b8462bb02be0936861a42b868907bd4f4e365293f9c95744b963e769b81248ba0a290fca517d689ff9f93d8709cc37e217264b2dac1469a47349f97e8c SHA512 cd10747d1f5f9377abfdf209b517791d3eb13b417c0be65fd5c0c044b01063125b4176c178345387bb3deda7a3a379953f31d46d7834854455a5dbfbf967aa97 DIST btrfs-progs-v6.8.1.tar.sign 566 BLAKE2B 843eada2b00a2370522edc95d79bcfed88bd24233e647946d4807322550593e4d5f5bb5efa6652c754dd0965dc3e389bc97698a0bd8fc5d0e850bea94de98e72 SHA512 84ebaa6ec27aa5bc87a323f5c6cc82a860fada7311ab8319127de3592294c1076d25959e412f8387d54bad3b8ff838ce39c4db4b04a658b2de2eaa7c976e2b09 DIST btrfs-progs-v6.8.1.tar.xz 2652968 BLAKE2B 34406dedc6d97bd94a498c3bbb424d34a59b8251b37f9a40a87740f96db77780a4cd76c88055b4d9e4f673b4a3621503a6bedb67ceaf20870fb26c10f49b74e0 SHA512 b5f0694e56eecf1956313b3406610c2e22658ace51a636d79efe996780bb0b03fed95e68a8c9a11dd8649958c0e7dbc7417bb479859365d47b52e478f6830d46 DIST btrfs-progs-v6.9.2.tar.sign 566 BLAKE2B 4cd95496d355444c7d3e582a7e6c05fbb55683008b1585a26f38aef6cceb1afd5e80c9611518d6bd92dc1167798d4012c4bcab2f9bda752c459d94cfa6f3c477 SHA512 3fb04e1894e231abde388a39d2f0c90f43c1a1494622c2158fab9b94bb340e064404bcf96e24d913c60aaf5e06ade42fbb91a479949109b329682bb089f66bf2 diff --git a/dev-python/btrfsutil/btrfsutil-6.10.1.ebuild b/dev-python/btrfsutil/btrfsutil-6.10.1.ebuild new file mode 100644 index 000000000000..1ef95d7a0f9b --- /dev/null +++ b/dev-python/btrfsutil/btrfsutil-6.10.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/dsterba.asc + +inherit distutils-r1 verify-sig + +DESCRIPTION="Library for managing Btrfs filesystems" +HOMEPAGE="https://github.com/kdave/btrfs-progs" + +MY_PN="btrfs-progs" +MY_PV="v${PV/_/-}" +MY_P="${MY_PN}-${MY_PV}" +SRC_URI=" + https://mirrors.edge.kernel.org/pub/linux/kernel/people/kdave/${MY_PN}/${MY_P}.tar.xz + verify-sig? ( https://mirrors.edge.kernel.org/pub/linux/kernel/people/kdave/${MY_PN}/${MY_P}.tar.sign ) +" +S="${WORKDIR}/${MY_P}/libbtrfsutil/python" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + +DEPEND="~sys-fs/btrfs-progs-${PV}" +RDEPEND="${DEPEND}" + +distutils_enable_tests unittest + +RDEPEND+=" !sys-fs/btrfs-progs[python(-)]" + +src_unpack() { + # Upstream sign the decompressed .tar + if use verify-sig; then + einfo "Unpacking ${MY_P}.tar.xz ..." + verify-sig_verify_detached - "${DISTDIR}"/${MY_P}.tar.sign \ + < <(xz -cd "${DISTDIR}"/${MY_P}.tar.xz | tee >(tar -x)) + assert "Unpack failed" + else + default + fi +} diff --git a/dev-python/click-didyoumean/click-didyoumean-0.3.1.ebuild b/dev-python/click-didyoumean/click-didyoumean-0.3.1.ebuild index 5e8857f2c007..832bf01f1d0b 100644 --- a/dev-python/click-didyoumean/click-didyoumean-0.3.1.ebuild +++ b/dev-python/click-didyoumean/click-didyoumean-0.3.1.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~riscv ~x86" +KEYWORDS="amd64 ~arm64 ~riscv ~x86" RDEPEND=" >=dev-python/click-7[${PYTHON_USEDEP}] diff --git a/dev-python/cypari2/Manifest b/dev-python/cypari2/Manifest index 0718113751e4..379839a9eefc 100644 --- a/dev-python/cypari2/Manifest +++ b/dev-python/cypari2/Manifest @@ -1 +1,2 @@ DIST cypari2-2.1.4.gh.tar.gz 127038 BLAKE2B 0d4998841a9a630ea062d7096845771a9a250ed66b68f99988ded6442724559089e8dbbce13ef5c6ad467705c65b2ac9fc5889fa9c40b9665083af558280b81a SHA512 b5926281037aebb899c1a433a0ca106cdfafcb8cb7abb863268ff8151dbc52ee21dbe1d09dde632de1640a4cc4d37f59bebb0e379d61ac2fbdf9fffcf3ba4775 +DIST cypari2-2.2.0.tar.gz 127530 BLAKE2B 0ce2e3f157d63c20a257b3b7eaf9a06bf241893193bd561c8980ecb38e698b2ca6679a74958a2398944753e6445c1ab5b063b14e408ef0395a9eaf9e0d7cc8db SHA512 5ba237feb1910bd7182a3c3e8e1409209d4f6e68c9f8966c3bd0ad2f6e66193b4dc3006f26fcb507cac7e6d1ee32ec6d5dda612290d8bd3b3350c8243dd89616 diff --git a/dev-python/cypari2/cypari2-2.2.0.ebuild b/dev-python/cypari2/cypari2-2.2.0.ebuild new file mode 100644 index 000000000000..203af7db1dac --- /dev/null +++ b/dev-python/cypari2/cypari2-2.2.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) +DISTUTILS_USE_PEP517=standalone +DISTUTILS_EXT=1 + +inherit distutils-r1 pypi + +DESCRIPTION="Cython interface to PARI" +HOMEPAGE="https://github.com/sagemath/cypari2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="sci-mathematics/pari[gmp,doc] + dev-python/cysignals[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" +BDEPEND=">=dev-python/cython-3[${PYTHON_USEDEP}]" + +PATCHES=( "${FILESDIR}/${P}-regen-bindings-for-each-python.patch" ) + +python_test(){ + cd "${S}"/tests || die + "${EPYTHON}" rundoctest.py || die +} + +python_install() { + distutils-r1_python_install + python_optimize +} diff --git a/dev-python/cypari2/files/cypari2-2.2.0-regen-bindings-for-each-python.patch b/dev-python/cypari2/files/cypari2-2.2.0-regen-bindings-for-each-python.patch new file mode 100644 index 000000000000..9e69c6e43121 --- /dev/null +++ b/dev-python/cypari2/files/cypari2-2.2.0-regen-bindings-for-each-python.patch @@ -0,0 +1,25 @@ +diff --git a/setup.py b/setup.py +index c1775b5..5051c6b 100755 +--- a/setup.py ++++ b/setup.py +@@ -12,6 +12,10 @@ from autogen.paths import include_dirs, library_dirs + + ext_kwds = dict(include_dirs=include_dirs(), library_dirs=library_dirs()) + ++# Generate auto-generated sources from pari.desc ++# This needs to be done before build/build_ext so the generated pxd is moved ++# to the build directory and installed with newer setuptools. ++rebuild() + + if "READTHEDOCS" in os.environ: + # When building with readthedocs, disable optimizations to decrease +@@ -28,9 +32,6 @@ if "READTHEDOCS" in os.environ: + # Adapted from Cython's new_build_ext + class build_ext(_build_ext): + def finalize_options(self): +- # Generate auto-generated sources from pari.desc +- rebuild() +- + self.directives = { + "autotestdict.cdef": True, + "binding": True, diff --git a/dev-python/django-allauth/Manifest b/dev-python/django-allauth/Manifest index 11c0a049f9e2..06e2cf51f773 100644 --- a/dev-python/django-allauth/Manifest +++ b/dev-python/django-allauth/Manifest @@ -1,3 +1,2 @@ -DIST django-allauth-0.61.1.tar.gz 951524 BLAKE2B 3a29689f6b8032d96afbfb8081c8f07367395892c3daa9224074799608911bf517ece04a047e859f97d80d11adaff7fa0dbf25102121f5354d8e17cbbcdddd4d SHA512 c9ad0b206a4967d542a67d97e8973d4d83fe030fa71d8fad1f43b81fb388895a7d9c339f49d536cccfad5b3f606ea02dd31bc5e41328579d092b00e7e0a1b936 -DIST django-allauth-0.63.6.gh.tar.gz 1090004 BLAKE2B 07a3ba7546de6b5a7ebf731dd7fb11ba814042ffc81022d9211b685c5cfa3318a8966697fbbf2519be28272d8fa1f69ec1f141dba10b31886f8c98204c18ee78 SHA512 4ca285cc8acf57575d7d7bba4a2dfbfc0076279d0dd7aa424d409cc70917494d847214907d83b89d9d10dd440b05c9e343ac091eb5d3ad5f81e85c2d602947d1 DIST django-allauth-64.0.0.gh.tar.gz 1163823 BLAKE2B 8ba2f24c737e41a0c0476632bf31785783b7bd2afb07e297cf79c8f2a5cf3800ee0997df49fbdf21e843acb96503472c065ae9b1c6e28b90b1c764936302e314 SHA512 d644ecf95114bee86e647dc7219c5056cc9b093799c947a8d53295992ecad22725bb61a6bb2020c70d0266739d0b7bd2b50467dd161d81497f9c5db517d1e678 +DIST django-allauth-64.1.0.gh.tar.gz 1166793 BLAKE2B 759f146b8e18934c426922a1fab396c709a0c945cae5e7c88841b00e35e0a547b547fef8da39a838c9cea8ce619df1d2722803e8fb860f00a0e4bb6817c44919 SHA512 f5c9d19dbaad6b8d52fcc433f9b81248ebe6b3f7244f1ce91938c477578a92335c7403fc7015cfa4b36ee9c14b98c781beea52886c5e290de0f91df762d3c9a2 diff --git a/dev-python/django-allauth/django-allauth-0.61.1.ebuild b/dev-python/django-allauth/django-allauth-0.61.1.ebuild deleted file mode 100644 index f76f0976d412..000000000000 --- a/dev-python/django-allauth/django-allauth-0.61.1.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -PYPI_NO_NORMALIZE=1 - -inherit distutils-r1 optfeature pypi - -DESCRIPTION="Django 3rd party (social) account authentication" -HOMEPAGE=" - https://www.intenct.nl/projects/django-allauth/ - https://github.com/pennersr/django-allauth/ - https://pypi.org/project/django-allauth/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-python/django-3.2[${PYTHON_USEDEP}] - >=dev-python/python3-openid-3.0.8[${PYTHON_USEDEP}] - >=dev-python/pyjwt-1.7[${PYTHON_USEDEP}] - >=dev-python/requests-oauthlib-0.3.0[${PYTHON_USEDEP}] - >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] -" -# cryptography via pyjwt[crypto] -RDEPEND+=" - dev-python/cryptography[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - >=dev-python/pillow-9.0[${PYTHON_USEDEP}] - >=dev-python/pytest-django-4.5.2[${PYTHON_USEDEP}] - >=dev-python/qrcode-7.0.0[${PYTHON_USEDEP}] - >=dev-python/python3-saml-1.15.0[${PYTHON_USEDEP}] - /dev/null || die - fi -} - -python_test() { - local EPYTEST_IGNORE=( - # Tests require pyspark or duckdb which aren't in the tree. - # Pandas would be a requirement normally, but it gets ignored by proxy. - "tests/dataframe/integration/test_dataframe.py" - "tests/dataframe/integration/test_grouped_data.py" - "tests/dataframe/integration/test_session.py" - "tests/test_executor.py" - "tests/test_optimizer.py" - ) - - # make sure not to use an earlier installed version - local -x SQLGLOTRS_TOKENIZER=$(usex native-extensions 1 0) - rm -rf sqlglotrs || die - epytest -} - -pkg_postinst() { - optfeature "simplifying timedelta expressions" dev-python/python-dateutil -} diff --git a/dev-python/sqlglot/sqlglot-25.11.3.ebuild b/dev-python/sqlglot/sqlglot-25.11.3.ebuild new file mode 100644 index 000000000000..c040bab3734b --- /dev/null +++ b/dev-python/sqlglot/sqlglot-25.11.3.ebuild @@ -0,0 +1,121 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +CARGO_OPTIONAL=1 +CRATES=" + autocfg@1.1.0 + bitflags@1.3.2 + cfg-if@1.0.0 + heck@0.4.1 + indoc@2.0.4 + libc@0.2.150 + lock_api@0.4.11 + memoffset@0.9.0 + once_cell@1.19.0 + parking_lot@0.12.1 + parking_lot_core@0.9.9 + proc-macro2@1.0.70 + pyo3-build-config@0.20.0 + pyo3-ffi@0.20.0 + pyo3-macros-backend@0.20.0 + pyo3-macros@0.20.0 + pyo3@0.20.0 + quote@1.0.33 + redox_syscall@0.4.1 + scopeguard@1.2.0 + smallvec@1.11.2 + syn@2.0.41 + target-lexicon@0.12.12 + unicode-ident@1.0.12 + unindent@0.2.3 + windows-targets@0.48.5 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_msvc@0.48.5 + windows_i686_gnu@0.48.5 + windows_i686_msvc@0.48.5 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_msvc@0.48.5 +" + +inherit cargo distutils-r1 pypi optfeature + +DESCRIPTION="An easily customizable SQL parser and transpiler" +HOMEPAGE=" + https://sqlglot.com/ + https://github.com/tobymao/sqlglot/ + https://pypi.org/project/sqlglot/ +" +SRC_URI+=" + native-extensions? ( + ${CARGO_CRATE_URIS} + ) +" + +LICENSE="MIT" +LICENSE+=" native-extensions? (" +# Dependent crate licenses +LICENSE+=" Apache-2.0-with-LLVM-exceptions MIT Unicode-DFS-2016" +LICENSE+=" )" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+native-extensions" + +BDEPEND=" + native-extensions? ( + ${RUST_DEPEND} + dev-util/maturin[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/sqlglotrs/sqlglotrs.*.so" + +src_unpack() { + cargo_src_unpack +} + +src_prepare() { + # remove fragile timing check + sed -i -e '/assertLessEqual(time\.time/d' tests/test_parser.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + + if use native-extensions; then + local DISTUTILS_USE_PEP517=maturin + cd sqlglotrs || die + distutils-r1_python_compile + cd - >/dev/null || die + fi +} + +python_test() { + local EPYTEST_IGNORE=( + # Tests require pyspark or duckdb which aren't in the tree. + # Pandas would be a requirement normally, but it gets ignored by proxy. + "tests/dataframe/integration/test_dataframe.py" + "tests/dataframe/integration/test_grouped_data.py" + "tests/dataframe/integration/test_session.py" + "tests/test_executor.py" + "tests/test_optimizer.py" + ) + + # make sure not to use an earlier installed version + local -x SQLGLOTRS_TOKENIZER=$(usex native-extensions 1 0) + rm -rf sqlglotrs || die + epytest +} + +pkg_postinst() { + optfeature "simplifying timedelta expressions" dev-python/python-dateutil +} diff --git a/dev-python/tables/Manifest b/dev-python/tables/Manifest index 9498bdb0d829..9783a85cf9d5 100644 --- a/dev-python/tables/Manifest +++ b/dev-python/tables/Manifest @@ -1 +1,2 @@ +DIST tables-3.10.0.tar.gz 4762618 BLAKE2B 351ec7e1bb9f0e4a43686b51911793aac32260d88418e1dac0b4fb815fd0f48543e139d1b7ea5607c1368578db4c6513a36d6379f4038cc53fbead4a436ce50d SHA512 10b4d2d1df5c692b72ad599cebc81fc2ef56f432a8d8059c2cede25a201076d12aff3e8874dafb8ef1d41dcc6c9151523f7e4fae3971443f79d051c6f8fcbc88 DIST tables-3.9.2.tar.gz 4683437 BLAKE2B 7044aede85d9eca67260a309d19b5c80944b80b2107f665296ad7ae6a3c3f9a8717a41ae7298a5ae45e5b9de7ae0a6678a83d4bd914bd8709512333e783367bc SHA512 9b416222304b7798585a20d4d7d61934023f151d4262a58a4f0ee969aa365264270c12a734461a194d2c857a13a8e09fb7a1386042267113f601560c041cecd9 diff --git a/dev-python/tables/files/tables-3.10.0-pypy.patch b/dev-python/tables/files/tables-3.10.0-pypy.patch new file mode 100644 index 000000000000..f27c99eadfb8 --- /dev/null +++ b/dev-python/tables/files/tables-3.10.0-pypy.patch @@ -0,0 +1,42 @@ +From c04a456a3e3f7c55722b8c77144991c657fc3af6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= +Date: Wed, 14 Aug 2024 13:34:22 +0200 +Subject: [PATCH] FIX: Pass `refcheck=False` to `np.ndarray.resize()` for PyPy + compat + +Pass `refcheck=False` when resizing an `np.ndarray` in place, in order +to fix a test failure on PyPy3: + +``` +Traceback (most recent call last): + File "/tmp/PyTables/tables/tests/test_direct_chunk.py", line 266, in test_write_chunk_missing1 + return self._test_write_chunk_missing(shrink_after=False) + File "/tmp/PyTables/tables/tests/test_direct_chunk.py", line 255, in _test_write_chunk_missing + new_obj.resize(self.array.shape) +ValueError: cannot resize an array with refcheck=True on PyPy. +Use the np.resize function or refcheck=False +``` + +Since the object is created immediately above the `.resize()` call, +adding `refcheck=False` should be entirely safe. Furthermore, +unlike `np.resize()` this preserves the current behavior when new shape +is larger than the original. + +Fixes #1202 +--- + tables/tests/test_direct_chunk.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tables/tests/test_direct_chunk.py b/tables/tests/test_direct_chunk.py +index ccc82516d..ed290d7e6 100644 +--- a/tables/tests/test_direct_chunk.py ++++ b/tables/tests/test_direct_chunk.py +@@ -252,7 +252,7 @@ def _test_write_chunk_missing(self, shrink_after): + self.array.truncate(self.shape[0] - 1) + + new_obj = self.obj.copy() +- new_obj.resize(self.array.shape) ++ new_obj.resize(self.array.shape, refcheck=False) + obj_slice = tuple(slice(s, s + cs) for (s, cs) + in zip(chunk_start, self.chunkshape)) + if not shrink_after: diff --git a/dev-python/tables/tables-3.10.0.ebuild b/dev-python/tables/tables-3.10.0.ebuild new file mode 100644 index 000000000000..d3dbcedb4740 --- /dev/null +++ b/dev-python/tables/tables-3.10.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 prefix pypi + +DESCRIPTION="Hierarchical datasets for Python" +HOMEPAGE=" + https://www.pytables.org/ + https://github.com/PyTables/PyTables/ + https://pypi.org/project/tables/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="+cpudetection examples test" +RESTRICT="!test? ( test )" + +DEPEND=" + app-arch/bzip2:0= + app-arch/lz4:0= + >=app-arch/zstd-1.0.0:= + >=dev-libs/c-blosc-1.11.1:0= + >=dev-libs/c-blosc2-2.11.0:= + dev-libs/lzo:2= + >=dev-python/numpy-1.19.0:=[${PYTHON_USEDEP}] + >=sci-libs/hdf5-1.8.4:= +" +RDEPEND=" + ${DEPEND} + >=dev-python/numexpr-2.6.2[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + cpudetection? ( dev-python/py-cpuinfo[${PYTHON_USEDEP}] ) +" +BDEPEND=" + >=dev-python/cython-0.21[${PYTHON_USEDEP}] + virtual/pkgconfig + cpudetection? ( dev-python/py-cpuinfo[${PYTHON_USEDEP}] ) + test? ( + ${RDEPEND} + ) +" + +python_prepare_all() { + local PATCHES=( + # https://github.com/PyTables/PyTables/pull/1205 + "${FILESDIR}/${P}-pypy.patch" + ) + + rm -r c-blosc/{blosc,internal-complibs} || die + + distutils-r1_python_prepare_all + + sed -i -e '/blosc2/d' -e '/numpy/s:, <2::' pyproject.toml || die + hprefixify -w '/prefixes =/' setup.py + + export PYTABLES_NO_EMBEDDED_LIBS=1 + export USE_PKGCONFIG=TRUE +} + +python_test() { + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + "${EPYTHON}" tables/tests/test_all.py -v || die +} + +python_install_all() { + distutils-r1_python_install_all + + if use examples; then + dodoc -r contrib examples + docompress -x /usr/share/doc/${PF}/{contrib,examples} + fi +} diff --git a/dev-python/tomlkit/Manifest b/dev-python/tomlkit/Manifest index 4aa0a70c607c..5c0dbabf5fe2 100644 --- a/dev-python/tomlkit/Manifest +++ b/dev-python/tomlkit/Manifest @@ -1,2 +1,3 @@ DIST tomlkit-0.13.0.tar.gz 191792 BLAKE2B f5f865b49f9850281d01de2c2ba9c2d8685a10a5cd0f17c475d120978472485a5bd607dc4b283221eab69fc6e214259feafdbe85c8237fe9c80b49007523bb69 SHA512 46c5a771ff401e0b300dbd13708d78b63415653b87eb649898bf0bd58cedeb110622ff2f0ade0ad1cd517610229ba0f59b4d520cf2fa1eea6522ea0bc042317e DIST tomlkit-0.13.1.tar.gz 192625 BLAKE2B 1f1ebc96819eb742429d7d8a71b8f3aecdd964f0700052bb2f71ede866c5f97b25745bf95898d7b1005c881d3fdbb36c4cb872126a3be8192cb9c859eb153fbe SHA512 32023020de48d0eacd0ce886870b9a53defdb403b396eb03d0c026c221460eeede1f018586ae141d690722485446be0215582182809c590d1af9825e840b58ad +DIST tomlkit-0.13.2.tar.gz 192885 BLAKE2B c95d24e0ec61cb90dfdd3fe7a07f8187fdfdee1b60d6d3e5a1af08e6d319e24c2447107cd3e49455a3f1cd29a50bde2e09f3a57708ce7349d1e9bd6957e46c9d SHA512 65b45468de25a6b9f22c3fe3468301902e1e439de580e74f15f5a24985546a4bfe47642b6014a25590eb176fedbe468828d7bc84c9c3b65ab418c071f0902957 diff --git a/dev-python/tomlkit/tomlkit-0.13.2.ebuild b/dev-python/tomlkit/tomlkit-0.13.2.ebuild new file mode 100644 index 000000000000..e7c9efb49be5 --- /dev/null +++ b/dev-python/tomlkit/tomlkit-0.13.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Style preserving TOML library" +HOMEPAGE=" + https://github.com/python-poetry/tomlkit/ + https://pypi.org/project/tomlkit/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + test? ( + dev-python/pyyaml[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_configure() { + grep -q 'build-backend = "poetry' pyproject.toml || + die "Upstream changed build-backend, recheck" + # write a custom pyproject.toml to ease setuptools bootstrap + cat > pyproject.toml <<-EOF || die + [build-system] + requires = ["flit_core >=3.2,<4"] + build-backend = "flit_core.buildapi" + + [project] + name = "tomlkit" + version = "${PV}" + description = "Style preserving TOML library" + EOF +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/twine/twine-5.1.1-r1.ebuild b/dev-python/twine/twine-5.1.1-r1.ebuild new file mode 100644 index 000000000000..c25f20e281b8 --- /dev/null +++ b/dev-python/twine/twine-5.1.1-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Collection of utilities for publishing packages on PyPI" +HOMEPAGE=" + https://twine.readthedocs.io/ + https://github.com/pypa/twine/ + https://pypi.org/project/twine/ +" +SRC_URI=" + https://github.com/pypa/twine/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~s390 sparc x86" + +RDEPEND=" + >=dev-python/colorama-0.4.3[${PYTHON_USEDEP}] + >=dev-python/importlib-metadata-3.6[${PYTHON_USEDEP}] + >=dev-python/keyring-15.1[${PYTHON_USEDEP}] + >=dev-python/pkginfo-1.8.1[${PYTHON_USEDEP}] + >=dev-python/readme-renderer-35.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.20.0[${PYTHON_USEDEP}] + >=dev-python/requests-toolbelt-0.8.0[${PYTHON_USEDEP}] + >=dev-python/rfc3986-1.4.0[${PYTHON_USEDEP}] + >=dev-python/rich-12.0.0[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.26.0[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/build[${PYTHON_USEDEP}] + dev-python/jaraco-envs[${PYTHON_USEDEP}] + dev-python/jaraco-functools[${PYTHON_USEDEP}] + dev-python/munch[${PYTHON_USEDEP}] + dev-python/portend[${PYTHON_USEDEP}] + dev-python/pretend[${PYTHON_USEDEP}] + dev-python/pypiserver[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + distutils-r1_python_prepare_all + + # pytest-socket dep relevant only to test_integration, and upstream + # disables it anyway + sed -i -e '/--disable-socket/d' pytest.ini || die + sed -i -e '/--cov/d' pytest.ini || die + # unnecessary pin + sed -i -e '/pkginfo