From c17b94d3a30692facd01f74b45895612f711137c Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Mon, 16 Oct 2023 06:33:31 +0000 Subject: Adding metadata --- dev-python/astroid/Manifest | 1 + dev-python/astroid/astroid-3.0.1.ebuild | 67 +++++++++++ .../crispy-bootstrap3-2022.1.ebuild | 21 ++-- .../crispy-bootstrap4-2022.1.ebuild | 25 ++-- .../crispy-bootstrap5/crispy-bootstrap5-0.7.ebuild | 25 ++-- dev-python/django-crispy-forms/Manifest | 1 + .../django-crispy-forms-2.1.ebuild | 36 ++++++ dev-python/ensurepip-pip/Manifest | 1 + dev-python/ensurepip-pip/ensurepip-pip-23.3.ebuild | 24 ++++ dev-python/hypothesis/Manifest | 1 + dev-python/hypothesis/hypothesis-6.88.0.ebuild | 91 ++++++++++++++ dev-python/jupyterlab-server/Manifest | 1 - .../jupyterlab-server-2.23.0.ebuild | 66 ---------- dev-python/moto/Manifest | 1 + dev-python/moto/moto-4.2.6.ebuild | 123 +++++++++++++++++++ dev-python/openapi-core/Manifest | 3 - .../openapi-core/openapi-core-0.16.6-r1.ebuild | 69 ----------- dev-python/openapi-core/openapi-core-0.17.2.ebuild | 71 ----------- dev-python/openapi-core/openapi-core-0.18.0.ebuild | 69 ----------- dev-python/openapi-schema-validator/Manifest | 4 - .../openapi-schema-validator-0.4.4.ebuild | 32 ----- .../openapi-schema-validator-0.5.0.ebuild | 32 ----- .../openapi-schema-validator-0.6.0.ebuild | 33 ----- .../openapi-schema-validator-0.6.1.ebuild | 33 ----- dev-python/openapi-spec-validator/Manifest | 2 - .../openapi-spec-validator-0.5.7.ebuild | 52 -------- .../openapi-spec-validator-0.7.0.ebuild | 50 -------- dev-python/paste/Manifest | 1 + dev-python/paste/paste-3.6.1.ebuild | 49 ++++++++ dev-python/pillow/Manifest | 1 + dev-python/pillow/pillow-10.1.0.ebuild | 134 +++++++++++++++++++++ dev-python/pip/Manifest | 1 + dev-python/pip/pip-23.3.ebuild | 130 ++++++++++++++++++++ dev-python/spdx-tools/spdx-tools-0.7.1.ebuild | 2 +- dev-python/uritools/uritools-4.0.2.ebuild | 2 +- 35 files changed, 712 insertions(+), 542 deletions(-) create mode 100644 dev-python/astroid/astroid-3.0.1.ebuild create mode 100644 dev-python/django-crispy-forms/django-crispy-forms-2.1.ebuild create mode 100644 dev-python/ensurepip-pip/ensurepip-pip-23.3.ebuild create mode 100644 dev-python/hypothesis/hypothesis-6.88.0.ebuild delete mode 100644 dev-python/jupyterlab-server/jupyterlab-server-2.23.0.ebuild create mode 100644 dev-python/moto/moto-4.2.6.ebuild delete mode 100644 dev-python/openapi-core/openapi-core-0.16.6-r1.ebuild delete mode 100644 dev-python/openapi-core/openapi-core-0.17.2.ebuild delete mode 100644 dev-python/openapi-core/openapi-core-0.18.0.ebuild delete mode 100644 dev-python/openapi-schema-validator/openapi-schema-validator-0.4.4.ebuild delete mode 100644 dev-python/openapi-schema-validator/openapi-schema-validator-0.5.0.ebuild delete mode 100644 dev-python/openapi-schema-validator/openapi-schema-validator-0.6.0.ebuild delete mode 100644 dev-python/openapi-schema-validator/openapi-schema-validator-0.6.1.ebuild delete mode 100644 dev-python/openapi-spec-validator/openapi-spec-validator-0.5.7.ebuild delete mode 100644 dev-python/openapi-spec-validator/openapi-spec-validator-0.7.0.ebuild create mode 100644 dev-python/paste/paste-3.6.1.ebuild create mode 100644 dev-python/pillow/pillow-10.1.0.ebuild create mode 100644 dev-python/pip/pip-23.3.ebuild (limited to 'dev-python') diff --git a/dev-python/astroid/Manifest b/dev-python/astroid/Manifest index 4430524866e0..0d59c7608e49 100644 --- a/dev-python/astroid/Manifest +++ b/dev-python/astroid/Manifest @@ -2,3 +2,4 @@ DIST astroid-2.15.6.gh.tar.gz 462156 BLAKE2B f5df204a0b635d29165da1566afd9259ff2 DIST astroid-2.15.7.gh.tar.gz 462906 BLAKE2B 7a984f9f7c67c2956958b23ee2ca94c1f86284d8a50aaedbe10b9dca887802189cba21f19ee66b394f347f415d61946aaff52e4d0448271edba77b6bd958fa0e SHA512 716665744915d8a635ac124f03ffe6f7aee6bde6d98c238551ea1c6468595d6c327bb2d5605f66e7ba6294ec1b79c85b861034acba8a4584095ba38e24f82ae9 DIST astroid-2.15.8.gh.tar.gz 462922 BLAKE2B 6a4bf0a50333701aab9282ab126fc53d30621d4e7a54796ac93d1db30bc37098d5409f3ffe91ed279bce5866e2e381eafc7f54f18c86aa3a7fc835f0bf844d9a SHA512 d5d008df3e99c036fb38094c416c080745dad640d46e837b07336a23d5a929823b8b884564486600335791a1be0568cbe519b76e6bd3334e72725966af8cc5f5 DIST astroid-3.0.0.gh.tar.gz 461185 BLAKE2B f6b5923f95f23fdc4731b75f5335d7e7ead6aa85b07c5d2a57bf2ce560774a5d85ad0dfba076e4f24bbc7a17050945956291f5a016867bee049913358f8fc3dd SHA512 c1dbc42a35f7eea9bd87bd1c5701086271f8d4974b6b0e45b301f0b1841f4936bff32cd26647d9e9d9a7636017b5930a290ece0a4001b04dcc50e01344b43acb +DIST astroid-3.0.1.gh.tar.gz 461593 BLAKE2B de3458bcd9ba111020132e89b6e2fdf18b81b82cba68c986e84af91c910e6c70e7d13ff024b7947f3fa08e2491ba211a77a35421b3d5cd184b94e6a833c0da42 SHA512 2c8a4cf22959aef1eb9510430bcc55d00fcda76d022575786c9a59c093fe4196b67c0b9401f9226595a4cbf1fb9444bdfbb9ac2d83c115ec1d7d46cb7dd75dbd diff --git a/dev-python/astroid/astroid-3.0.1.ebuild b/dev-python/astroid/astroid-3.0.1.ebuild new file mode 100644 index 000000000000..87f69d12d690 --- /dev/null +++ b/dev-python/astroid/astroid-3.0.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2023 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} ) + +inherit distutils-r1 + +DESCRIPTION="Abstract Syntax Tree for logilab packages" +HOMEPAGE=" + https://github.com/pylint-dev/astroid/ + https://pypi.org/project/astroid/ +" +SRC_URI=" + https://github.com/pylint-dev/astroid/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# Version specified in pyproject.toml +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/typing-extensions-4.0.0[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/attrs[${PYTHON_USEDEP}] + >=dev-python/numpy-1.17.0[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + +python_test() { + local EPYTEST_DESELECT=( + # no clue why they're broken + tests/test_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part + tests/test_regrtest.py::NonRegressionTests::test_numpy_distutils +# tests/brain/test_regex.py::TestRegexBrain::test_regex_pattern_and_match_subscriptable +# # some problem with warnings (our options?) +# tests/test_decorators.py::TestDeprecationDecorators::test_deprecated_default_argument_values_one_arg +# tests/test_decorators.py::TestDeprecationDecorators::test_deprecated_default_argument_values_two_args +# tests/test_scoped_nodes.py::test_deprecation_of_doc_attribute +# # requires six bundled in urllib3, sigh +# tests/test_modutils.py::test_file_info_from_modpath__SixMetaPathImporter +# # requires pip, and looks suspicious anyway +# tests/test_manager.py::IsolatedAstroidManagerTest::test_no_user_warning + # pydantic-2? + tests/brain/test_dataclasses.py::test_pydantic_field +# # TODO +# tests/test_manager.py::ClearCacheTest::test_clear_cache_clears_other_lru_caches + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/crispy-bootstrap3/crispy-bootstrap3-2022.1.ebuild b/dev-python/crispy-bootstrap3/crispy-bootstrap3-2022.1.ebuild index d00900fa453c..594bbc29f287 100644 --- a/dev-python/crispy-bootstrap3/crispy-bootstrap3-2022.1.ebuild +++ b/dev-python/crispy-bootstrap3/crispy-bootstrap3-2022.1.ebuild @@ -5,23 +5,30 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{8,9,10,11} ) + inherit distutils-r1 DESCRIPTION="Bootstrap3 template pack for django-crispy-forms" HOMEPAGE=" + https://github.com/django-crispy-forms/crispy-bootstrap3/ https://pypi.org/project/crispy-bootstrap3/ " -SRC_URI="https://github.com/django-crispy-forms/${PN}/archive/refs/tags/${PV}.tar.gz - -> ${P}.gh.tar.gz" +SRC_URI=" + https://github.com/django-crispy-forms/crispy-bootstrap3/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="test" -RDEPEND="dev-python/django-crispy-forms[${PYTHON_USEDEP}]" -BDEPEND="test? ( - dev-python/pytest-django[${PYTHON_USEDEP}] -)" +RDEPEND=" + dev-python/django-crispy-forms[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-django[${PYTHON_USEDEP}] + ) +" distutils_enable_tests pytest diff --git a/dev-python/crispy-bootstrap4/crispy-bootstrap4-2022.1.ebuild b/dev-python/crispy-bootstrap4/crispy-bootstrap4-2022.1.ebuild index a02389476aff..1bce0fa460f1 100644 --- a/dev-python/crispy-bootstrap4/crispy-bootstrap4-2022.1.ebuild +++ b/dev-python/crispy-bootstrap4/crispy-bootstrap4-2022.1.ebuild @@ -5,25 +5,34 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{8,9,10,11} ) + inherit distutils-r1 DESCRIPTION="Bootstrap4 template pack for django-crispy-forms" HOMEPAGE=" + https://github.com/django-crispy-forms/crispy-bootstrap4/ https://pypi.org/project/crispy-bootstrap4/ " -SRC_URI="https://github.com/django-crispy-forms/${PN}/archive/refs/tags/${PV}.tar.gz - -> ${P}.gh.tar.gz" +SRC_URI=" + https://github.com/django-crispy-forms/crispy-bootstrap4/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="test" -RDEPEND="dev-python/django-crispy-forms[${PYTHON_USEDEP}]" -BDEPEND="test? ( - dev-python/pytest-django[${PYTHON_USEDEP}] -)" +RDEPEND=" + dev-python/django-crispy-forms[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-django[${PYTHON_USEDEP}] + ) +" distutils_enable_tests pytest -PATCHES=( "${FILESDIR}"/${P}-test.patch ) +PATCHES=( + "${FILESDIR}"/${P}-test.patch +) diff --git a/dev-python/crispy-bootstrap5/crispy-bootstrap5-0.7.ebuild b/dev-python/crispy-bootstrap5/crispy-bootstrap5-0.7.ebuild index 5f3df23bb9b6..26bce17c3b28 100644 --- a/dev-python/crispy-bootstrap5/crispy-bootstrap5-0.7.ebuild +++ b/dev-python/crispy-bootstrap5/crispy-bootstrap5-0.7.ebuild @@ -5,25 +5,34 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{8,9,10,11} ) + inherit distutils-r1 DESCRIPTION="Bootstrap5 template pack for django-crispy-forms" HOMEPAGE=" + https://github.com/django-crispy-forms/crispy-bootstrap5/ https://pypi.org/project/crispy-bootstrap5/ " -SRC_URI="https://github.com/django-crispy-forms/${PN}/archive/refs/tags/${PV}.tar.gz - -> ${P}.gh.tar.gz" +SRC_URI=" + https://github.com/django-crispy-forms/crispy-bootstrap5/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="test" -RDEPEND="dev-python/django-crispy-forms[${PYTHON_USEDEP}]" -BDEPEND="test? ( - dev-python/pytest-django[${PYTHON_USEDEP}] -)" +RDEPEND=" + dev-python/django-crispy-forms[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-django[${PYTHON_USEDEP}] + ) +" distutils_enable_tests pytest -PATCHES=( "${FILESDIR}"/${P}-test.patch ) +PATCHES=( + "${FILESDIR}"/${P}-test.patch +) diff --git a/dev-python/django-crispy-forms/Manifest b/dev-python/django-crispy-forms/Manifest index 50f56cfb5aa8..811c44aa2529 100644 --- a/dev-python/django-crispy-forms/Manifest +++ b/dev-python/django-crispy-forms/Manifest @@ -1 +1,2 @@ DIST django-crispy-forms-2.0.gh.tar.gz 273743 BLAKE2B 4169c4f77ddd0dd9f8786abd71ad762f645283555f250861f32b874fb9e189d4ca174285ee39b51bc5f0c0e8c2e83c2e00c34398c51ede65438a1c6b8a17c3ee SHA512 8b6f5b35cb90837b7cd6a64ed74afe6a19a80f287f66d0a139811990524e1a48d4d7c01e61fb7d303958522c47458d0aa0008a3d6c147f7d03dc790e53a80592 +DIST django-crispy-forms-2.1.gh.tar.gz 274397 BLAKE2B 3f38830f370efde04494add3ddd2ce7f4a04b032b9aad770ba30885ed2b3a14cff3c748fa299041c9c1d7007b30eb55c96a46fe496c0432b187ae72879d4240e SHA512 703f353adc272905b4d5ebe21ea54e3016a3889703bf406dfdf92638dac2e6f536cf1bc16022be6a442f7dfa962ff17746edea591cf80c2be9440d9bb50a9dcc diff --git a/dev-python/django-crispy-forms/django-crispy-forms-2.1.ebuild b/dev-python/django-crispy-forms/django-crispy-forms-2.1.ebuild new file mode 100644 index 000000000000..347d620bc9bc --- /dev/null +++ b/dev-python/django-crispy-forms/django-crispy-forms-2.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2022-2023 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} ) + +inherit distutils-r1 + +DESCRIPTION="DRY Django forms" +HOMEPAGE=" + https://github.com/django-crispy-forms/django-crispy-forms/ + https://pypi.org/project/django-crispy-forms/ +" +SRC_URI=" + https://github.com/django-crispy-forms/django-crispy-forms/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/django-4.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-django[${PYTHON_USEDEP}] + dev-python/crispy-bootstrap3[${PYTHON_USEDEP}] + dev-python/crispy-bootstrap4[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/ensurepip-pip/Manifest b/dev-python/ensurepip-pip/Manifest index e93f5dedc3aa..d5c063e82923 100644 --- a/dev-python/ensurepip-pip/Manifest +++ b/dev-python/ensurepip-pip/Manifest @@ -1 +1,2 @@ DIST pip-23.2.1-py3-none-any.whl 2086091 BLAKE2B 0a35bf4ba589f07e3c800d8f835e4bcdcd433976db83f91c86e12a2316b0b1c7de7120b248d70fe8b5587c28bb3c6e7bc633c64cdfb65a1f18f87a9e7a423181 SHA512 016a8cbd09384f1a9a44cb0e8274df75a8bcb2f3966bb5d708c62145289efaa5db98f75256c97e4f8046735ce2e529fbb076f284a46cdb716e89a75660200ad9 +DIST pip-23.3-py3-none-any.whl 2106643 BLAKE2B bc5d93e71dadba670ef19f8331dd8d9e7fd5f0f70f90de39a3437b25521bb61c97690793d67d4306a98c728fd9eb5fb5848f1abec853d7878b4bab792a51f6a7 SHA512 2ac3e66eb86b90e8bafd1825e84288af81d09ddb60f68b631838d14479b953ad0c6bdc933d754b5f02520401908828a0a8c518f04b0060c82b666e0d01e87ea6 diff --git a/dev-python/ensurepip-pip/ensurepip-pip-23.3.ebuild b/dev-python/ensurepip-pip/ensurepip-pip-23.3.ebuild new file mode 100644 index 000000000000..474a502c1273 --- /dev/null +++ b/dev-python/ensurepip-pip/ensurepip-pip-23.3.ebuild @@ -0,0 +1,24 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit pypi + +DESCRIPTION="Shared pip wheel for ensurepip Python module" +HOMEPAGE="https://pypi.org/project/pip/" +SRC_URI="$(pypi_wheel_url "${PN#ensurepip-}")" +S=${DISTDIR} + +LICENSE="Apache-2.0 BSD BSD-2 ISC LGPL-2.1+ MIT MPL-2.0 PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +RDEPEND=" + !> setup.cfg <<-EOF || die + [build_ext] + disable_platform_guessing = True + $(usepil truetype)_freetype = True + $(usepil jpeg)_jpeg = True + $(usepil jpeg2k)_jpeg2000 = True + $(usepil lcms)_lcms = True + $(usepil tiff)_tiff = True + $(usepil imagequant)_imagequant = True + $(usepil webp)_webp = True + $(usepil webp)_webpmux = True + $(usepil xcb)_xcb = True + $(usepil zlib)_zlib = True + EOF + + # setup.py won't let us add the right toolchain paths but it does + # accept additional ones from INCLUDE and LIB so set these. You + # wouldn't normally need these at all as the toolchain should look + # here anyway but it doesn't for this setup.py. + export \ + INCLUDE="${ESYSROOT}"/usr/include \ + LIB="${ESYSROOT}"/usr/$(get_libdir) + + # We have patched in this env var. + tc-export PKG_CONFIG +} + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + local EPYTEST_DESELECT=( + # TODO (is clipboard unreliable in Xvfb?) + Tests/test_imagegrab.py::TestImageGrab::test_grabclipboard + ) + + "${EPYTHON}" selftest.py --installed || die "selftest failed with ${EPYTHON}" + # no:relaxed: pytest-relaxed plugin make our tests fail. deactivate if installed + epytest -p no:relaxed || die "Tests failed with ${EPYTHON}" +} + +python_install() { + python_doheader src/libImaging/*.h + distutils-r1_python_install +} + +python_install_all() { + if use examples ; then + docinto example + dodoc docs/example/* + docompress -x /usr/share/doc/${PF}/example + fi + distutils-r1_python_install_all +} diff --git a/dev-python/pip/Manifest b/dev-python/pip/Manifest index ee4ad92612a7..20169371ad5f 100644 --- a/dev-python/pip/Manifest +++ b/dev-python/pip/Manifest @@ -1 +1,2 @@ DIST pip-23.2.1.gh.tar.gz 9370625 BLAKE2B 9e7855aae371a773a070c24b50f985dac6ff7c2412d51e268368b911b92d0d0b52a839f9d761d5f6aaff33f1e7570d5f930e5063e8af98aa99f50d2f1c1b5ed2 SHA512 a6c629976c332cffe5dff0ec1e201d694c7a42fa8def202ebf1db251a6dbd90091eaac89c36a354a0cf0c60cdb267b4e0ec9ff6a88b0ac61cfaafdf159e34fc8 +DIST pip-23.3.gh.tar.gz 9394878 BLAKE2B 6ef608b204a4cb796585c5ff130ee642bce0e7a464099b7eaf9c9199203fc28ff0a1b260a731f9ba462a9b82e6f68be12fc622ed809ad41a1ab92adaa4993cbd SHA512 1afef5374410387bd1056a9ada21893f1fbb81e7a2d0ab2c9f4b500c99d25b98b55254e0dc36c4e4e408ad84b7be0e24709d25447168b076ce7723d35462d055 diff --git a/dev-python/pip/pip-23.3.ebuild b/dev-python/pip/pip-23.3.ebuild new file mode 100644 index 000000000000..1838a954b66b --- /dev/null +++ b/dev-python/pip/pip-23.3.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# please bump dev-python/ensurepip-pip along with this package! + +DISTUTILS_USE_PEP517=setuptools +PYTHON_TESTED=( python3_{8,9,10,11} ) +PYTHON_COMPAT=( python3_{8,9,10,11} pypy3 ) +PYTHON_REQ_USE="ssl(+),threads(+)" + +inherit bash-completion-r1 distutils-r1 multiprocessing + +DESCRIPTION="The PyPA recommended tool for installing Python packages" +HOMEPAGE=" + https://pip.pypa.io/en/stable/ + https://pypi.org/project/pip/ + https://github.com/pypa/pip/ +" +SRC_URI=" + https://github.com/pypa/pip/archive/${PV}.tar.gz -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +# bundled deps +LICENSE+=" Apache-2.0 BSD BSD-2 ISC LGPL-2.1+ MPL-2.0 PSF-2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +SLOT="0" +IUSE="test-rust" + +RDEPEND=" + >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( + $(python_gen_cond_dep ' + dev-python/ensurepip-setuptools + dev-python/ensurepip-wheel + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/pretend[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/scripttest[${PYTHON_USEDEP}] + dev-python/tomli-w[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + test-rust? ( + dev-python/cryptography[${PYTHON_USEDEP}] + ) + ' "${PYTHON_TESTED[@]}") + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + local PATCHES=( + "${FILESDIR}/pip-23.1-no-coverage.patch" + ) + + distutils-r1_python_prepare_all + + if use test; then + local wheels=( + "${BROOT}"/usr/lib/python/ensurepip/{setuptools,wheel}-*.whl + ) + mkdir tests/data/common_wheels/ || die + cp "${wheels[@]}" tests/data/common_wheels/ || die + fi +} + +python_compile_all() { + # 'pip completion' command embeds full $0 into completion script, which confuses + # 'complete' and causes QA warning when running as "${PYTHON} -m pip". + # This trick sets correct $0 while still calling just installed pip. + local pipcmd='import sys; sys.argv[0] = "pip"; __file__ = ""; from pip._internal.cli.main import main; sys.exit(main())' + "${EPYTHON}" -c "${pipcmd}" completion --bash > completion.bash || die + "${EPYTHON}" -c "${pipcmd}" completion --zsh > completion.zsh || die +} + +python_test() { + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then + einfo "Skipping tests on ${EPYTHON}" + return 0 + fi + + local EPYTEST_DESELECT=( + tests/functional/test_inspect.py::test_inspect_basic + tests/functional/test_install.py::test_double_install_fail + # Internet + tests/functional/test_install.py::test_install_dry_run + tests/functional/test_install.py::test_editable_install__local_dir_setup_requires_with_pyproject + tests/functional/test_install.py::test_install_8559_wheel_package_present + tests/functional/test_config_settings.py::test_backend_sees_config_via_sdist + tests/functional/test_install.py::test_link_hash_in_dep_fails_require_hashes + # TODO + tests/unit/test_network_auth.py::test_keyring_cli_get_password + tests/unit/test_network_auth.py::test_keyring_cli_set_password + # wants to install keyring from Internet, sigh + tests/functional/test_install_config.py::test_prompt_for_keyring_if_needed + # probably a too strict assert + # https://github.com/pypa/pip/issues/12152 + tests/unit/test_req.py::TestRequirementSet::test_download_info_archive_cache_with_invalid_origin + ) + + if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + tests/functional/test_install.py::test_install_sends_client_cert + tests/functional/test_install_config.py::test_do_not_prompt_for_authentication + tests/functional/test_install_config.py::test_prompt_for_authentication + tests/functional/test_install_config.py::test_prompt_for_keyring_if_needed + ) + fi + + local -x SETUPTOOLS_USE_DISTUTILS=stdlib + local -x PIP_DISABLE_PIP_VERSION_CHECK=1 + epytest -m "not network" -n "$(makeopts_jobs)" +} + +python_install_all() { + local DOCS=( AUTHORS.txt docs/html/**/*.rst ) + distutils-r1_python_install_all + + newbashcomp completion.bash pip + + insinto /usr/share/zsh/site-functions + newins completion.zsh _pip +} diff --git a/dev-python/spdx-tools/spdx-tools-0.7.1.ebuild b/dev-python/spdx-tools/spdx-tools-0.7.1.ebuild index d26ad868e5ce..7cc58a436c8e 100644 --- a/dev-python/spdx-tools/spdx-tools-0.7.1.ebuild +++ b/dev-python/spdx-tools/spdx-tools-0.7.1.ebuild @@ -17,7 +17,7 @@ HOMEPAGE=" LICENSE="Apache-2.0" SLOT="0/0.7" -KEYWORDS="~amd64 ~riscv" +KEYWORDS="amd64 ~riscv" RDEPEND=" dev-python/click[${PYTHON_USEDEP}] diff --git a/dev-python/uritools/uritools-4.0.2.ebuild b/dev-python/uritools/uritools-4.0.2.ebuild index 47e5faceb100..8bcc5ef28fbf 100644 --- a/dev-python/uritools/uritools-4.0.2.ebuild +++ b/dev-python/uritools/uritools-4.0.2.ebuild @@ -19,6 +19,6 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~riscv" +KEYWORDS="amd64 ~riscv" distutils_enable_tests pytest -- cgit v1.3.1