From dd16aecbd531f3a41594d14ca534af2d19607468 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Wed, 13 Jan 2021 12:42:38 +0000 Subject: Updating liguros repo --- dev-python/Faker/Faker-5.5.1.ebuild | 28 ++++++ dev-python/Faker/Manifest | 1 + .../Faker/files/Faker-5.5.1-ukposttest.patch | 33 ++++++++ dev-python/Faker/metadata.xml | 17 ++++ dev-python/boto3/Manifest | 1 + dev-python/boto3/boto3-1.16.53.ebuild | 56 ++++++++++++ dev-python/botocore/Manifest | 1 + dev-python/botocore/botocore-1.19.53.ebuild | 59 +++++++++++++ .../cffi-python2/cffi-python2-1.14.0-r3.ebuild | 49 ----------- .../cffi-python2/cffi-python2-1.14.0-r4.ebuild | 49 +++++++++++ .../cryptography-python2-2.9-r2.ebuild | 56 ------------ .../cryptography-python2-2.9-r3.ebuild | 55 ++++++++++++ .../cython-python2-0.29.21-r1.ebuild | 78 ----------------- .../cython-python2-0.29.21-r2.ebuild | 79 +++++++++++++++++ dev-python/hypothesis/Manifest | 1 + dev-python/hypothesis/hypothesis-6.0.1.ebuild | 64 ++++++++++++++ dev-python/sentry-sdk/Manifest | 1 - dev-python/sentry-sdk/sentry-sdk-0.19.4.ebuild | 87 ------------------- dev-python/sentry-sdk/sentry-sdk-0.19.5.ebuild | 4 +- dev-python/tld/Manifest | 1 + .../tld/files/tld-0.12.5-names_cli_test.patch | 18 ++++ dev-python/tld/tld-0.12.5.ebuild | 27 ++++++ dev-python/tox/Manifest | 1 + dev-python/tox/tox-3.21.1.ebuild | 76 +++++++++++++++++ dev-python/validators/Manifest | 1 + dev-python/validators/metadata.xml | 17 ++++ dev-python/validators/validators-0.18.2.ebuild | 21 +++++ dev-python/virtualenv/Manifest | 1 + dev-python/virtualenv/virtualenv-20.3.1.ebuild | 99 ++++++++++++++++++++++ 29 files changed, 708 insertions(+), 273 deletions(-) create mode 100644 dev-python/Faker/Faker-5.5.1.ebuild create mode 100644 dev-python/Faker/Manifest create mode 100644 dev-python/Faker/files/Faker-5.5.1-ukposttest.patch create mode 100644 dev-python/Faker/metadata.xml create mode 100644 dev-python/boto3/boto3-1.16.53.ebuild create mode 100644 dev-python/botocore/botocore-1.19.53.ebuild delete mode 100644 dev-python/cffi-python2/cffi-python2-1.14.0-r3.ebuild create mode 100644 dev-python/cffi-python2/cffi-python2-1.14.0-r4.ebuild delete mode 100644 dev-python/cryptography-python2/cryptography-python2-2.9-r2.ebuild create mode 100644 dev-python/cryptography-python2/cryptography-python2-2.9-r3.ebuild delete mode 100644 dev-python/cython-python2/cython-python2-0.29.21-r1.ebuild create mode 100644 dev-python/cython-python2/cython-python2-0.29.21-r2.ebuild create mode 100644 dev-python/hypothesis/hypothesis-6.0.1.ebuild delete mode 100644 dev-python/sentry-sdk/sentry-sdk-0.19.4.ebuild create mode 100644 dev-python/tld/files/tld-0.12.5-names_cli_test.patch create mode 100644 dev-python/tld/tld-0.12.5.ebuild create mode 100644 dev-python/tox/tox-3.21.1.ebuild create mode 100644 dev-python/validators/Manifest create mode 100644 dev-python/validators/metadata.xml create mode 100644 dev-python/validators/validators-0.18.2.ebuild create mode 100644 dev-python/virtualenv/virtualenv-20.3.1.ebuild (limited to 'dev-python') diff --git a/dev-python/Faker/Faker-5.5.1.ebuild b/dev-python/Faker/Faker-5.5.1.ebuild new file mode 100644 index 000000000000..dff1b71bc2b7 --- /dev/null +++ b/dev-python/Faker/Faker-5.5.1.ebuild @@ -0,0 +1,28 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="a Python package that generates fake data for you" +HOMEPAGE="https://github.com/joke2k/faker" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=">=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}] + >=dev-python/text-unidecode-1.3[${PYTHON_USEDEP}]" +DEPEND="" +BDEPEND="test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/validators[${PYTHON_USEDEP}] + )" + +# Specific test dependency for one country post code tests +PATCHES=( "${FILESDIR}"/${PN}-5.5.1-ukposttest.patch ) + +distutils_enable_tests pytest diff --git a/dev-python/Faker/Manifest b/dev-python/Faker/Manifest new file mode 100644 index 000000000000..a1955ece9999 --- /dev/null +++ b/dev-python/Faker/Manifest @@ -0,0 +1 @@ +DIST Faker-5.5.1.tar.gz 1045964 BLAKE2B d0e06b0994fec1b1fbbfbc8cabb12f9a3666894304c673a8e7cc27bb52a7bf66bef8d110665b459a1c43e2b5f0d93e59f793f00279b123ff25c36ba4b4ed2cac SHA512 58d240801d72bbb884d1788931621e4ae9fa4e3ea749af90d9703fe99af23c38c86902970574838135398305877e8d196d18dc14eeb71cfe9c9c6390fbf511cb diff --git a/dev-python/Faker/files/Faker-5.5.1-ukposttest.patch b/dev-python/Faker/files/Faker-5.5.1-ukposttest.patch new file mode 100644 index 000000000000..5ff925613ac3 --- /dev/null +++ b/dev-python/Faker/files/Faker-5.5.1-ukposttest.patch @@ -0,0 +1,33 @@ +diff -Naur Faker-5.5.1.orig/tests/providers/test_address.py Faker-5.5.1/tests/providers/test_address.py +--- Faker-5.5.1.orig/tests/providers/test_address.py 2021-01-07 17:08:37.000000000 +0100 ++++ Faker-5.5.1/tests/providers/test_address.py 2021-01-12 22:07:13.748206737 +0100 +@@ -4,8 +4,6 @@ + + import pytest + +-from ukpostcodeparser.parser import parse_uk_postcode +- + from faker.providers.address.cs_CZ import Provider as CsCzAddressProvider + from faker.providers.address.da_DK import Provider as DaDkAddressProvider + from faker.providers.address.de_AT import Provider as DeAtAddressProvider +@@ -375,20 +373,6 @@ + assert re.fullmatch(r'(?:Apt\.|Suite) \d{3}', secondary_address) + + +-class TestEnGb: +- """Test en_GB address provider methods""" +- +- def test_postcode(self, faker, num_samples): +- for _ in range(num_samples): +- assert isinstance(parse_uk_postcode(faker.postcode()), tuple) +- +- def test_county(self, faker, num_samples): +- for _ in range(num_samples): +- county = faker.county() +- assert isinstance(county, str) +- assert county in EnGbAddressProvider.counties +- +- + class TestEnUS: + """Test en_US address provider methods""" + diff --git a/dev-python/Faker/metadata.xml b/dev-python/Faker/metadata.xml new file mode 100644 index 000000000000..c5a4813431a8 --- /dev/null +++ b/dev-python/Faker/metadata.xml @@ -0,0 +1,17 @@ + + + + + voyageur@gentoo.org + Bernard Cafarelli + + + python@gentoo.org + Python + + + Faker + joke2k/faker + + gentoo-staging + diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index a7939a12b561..a6dc7e3de373 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -4,3 +4,4 @@ DIST boto3-1.16.43.tar.gz 342444 BLAKE2B 1a367fa252eab6738533c7bec2bc370dcc206f2 DIST boto3-1.16.50.tar.gz 342744 BLAKE2B a6581acbdb07f2d8ce21ddf384b471d281d58910366dee0669f0f726118eabd52de8a4fe129915b9044bd484950155c32fa4f4941e1ef6ce55249213ba29f2f3 SHA512 de483be833917a2c478c0fe651ffe4143dc6c742e259711a955be41a8b76197353b295526695ca800bb860b95e0378dc461119bfa163c4be0faa3b6c2ccfc097 DIST boto3-1.16.51.tar.gz 342794 BLAKE2B e344c4a2c6b1c43e0f2f9207541a7e00963829f9398cb36ab8a90544a486a638d2f88552fde5b006388692463de6c93fec6b16a64e43874fc173f82af3d8272c SHA512 5bd66801121aff3526d742dd79b48b1d502b76c0319183660d22532a5abb31b6faf616ddb2af774519e8e5eb89616be85e478325497ed6af8635e02786d0c78f DIST boto3-1.16.52.tar.gz 342838 BLAKE2B 62ab3b2bd72369e08d514fb712eb6653c247e774fbfb579f1293ec1a42752d7321011cf75a054cd625846e72b1b5b6490b1d8bd48f5a2ed818fcf6ac060c0857 SHA512 6a80ee0181f5def2595e7a2d07e7a29e32c23b2d91908338c43fc4794be3d69504cdf8cec7372cdca09004dddb45ae49772404f59a222af4e3eb0bb869cdaf98 +DIST boto3-1.16.53.tar.gz 342896 BLAKE2B 28f3fde4e029944d839c9bb46f8d0e0603dc1dc890cd157ade2687a5566b00ae77ef19c0835341cf92d12b8fca2d5290508456f1938789aa2689ac7a5673550e SHA512 f73cc6b78fdeedd25c7976ab1df681dce438bfe40f03cf74a3bbdb1d0b54b4203d650cd72263325fd9f1dbbb60445dfeb619c070debf711da7ab696eacd5a464 diff --git a/dev-python/boto3/boto3-1.16.53.ebuild b/dev-python/boto3/boto3-1.16.53.ebuild new file mode 100644 index 000000000000..2df16964cdb0 --- /dev/null +++ b/dev-python/boto3/boto3-1.16.53.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=bdepend +inherit distutils-r1 + +DESCRIPTION="The AWS SDK for Python" +HOMEPAGE="https://github.com/boto/boto3" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/boto3" + inherit git-r3 + BOTOCORE_PV=${PV} +else + SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" + + # botocore is x.(y+3).z + BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)" +fi + +RDEPEND=" + >=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}] + >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}] + >=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs/source \ + 'dev-python/guzzle_sphinx_theme' +distutils_enable_tests nose + +python_prepare_all() { + # don't lock versions to narrow ranges + sed -e '/botocore/ d' \ + -e '/jmespath/ d' \ + -e '/s3transfer/ d' \ + -i setup.py || die + + # prevent an infinite loop + rm tests/functional/docs/test_smoke.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + nosetests -v tests/unit/ tests/functional/ || die "test failed under ${EPYTHON}" +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index e022a4edec31..e262e6f50b07 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -4,3 +4,4 @@ DIST botocore-1.19.43.tar.gz 7374325 BLAKE2B 7def5221bee4774a6b8a33e6499e499588f DIST botocore-1.19.50.tar.gz 7382888 BLAKE2B 7de2ef7a7d051427191b13cdd47d3ebd9b4de505e3e17aa7dfb42de9a5eebffa2f06317a559631d219acc4380cc68c7dcfa1d6b0dc9cb123b2fa0315dd81df4e SHA512 7d1a8ff53e22fc265d8ac6492c0607f8948c9aa5862abaded93c605c3a3e4e98e535308e5ec1500a480636e03dbc3d849ec2b1dbf0efb22dffa841ce1cb551f9 DIST botocore-1.19.51.tar.gz 7385977 BLAKE2B 505dd818f001b11f248582ec0f24bb7aac2e0d9bd343670d23eeb7ec14420bb7b97835a737de9464ffe5d76a43d311feee0e19860b35fddfc8398da4d00739b3 SHA512 03209809f75a5916df03d312fb877a3e129a8677ebd4e7785bbf8311a55823fe6c8faa62c78908fe0d003dd1695e0593a961d73c98dec2a8a7260ce53d6603cf DIST botocore-1.19.52.tar.gz 7386245 BLAKE2B 53e21b0c3e39bb3c7219e785b79a167e082f7de7a6c54b2c0e5c53f565c41f76042a9ccd1e2c7ae2e68e19ac2c43d9ce104f1ecfd6c606dead2533a319c969af SHA512 deb827631ffbed9980adc47f05e96d800dc2c65f67a156bbe29e3cd34e612169fc4169e173d06fb9fe42c92ddb1e5041dbd02ad838b80f82657b5bd851aa8fba +DIST botocore-1.19.53.tar.gz 7387325 BLAKE2B 3432c9d71f7a021184c2ac99be9213015951d1bba445788dcb388a518b62a96a4d3871577d5e97f4f86f7b0830a009155667b05a960b1d06642599e3d4d484e4 SHA512 ffe1da3076e656c36f4c59c12fa9f466e63b6bbc0365f7ecb78a6dc6941eb3748d676188c2b0e5a2d23d21e5cb03daf2893aa04561e183dc931070fae77eea9f diff --git a/dev-python/botocore/botocore-1.19.53.ebuild b/dev-python/botocore/botocore-1.19.53.ebuild new file mode 100644 index 000000000000..9d681f87244c --- /dev/null +++ b/dev-python/botocore/botocore-1.19.53.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Low-level, data-driven core of boto 3" +HOMEPAGE="https://github.com/boto/botocore" +LICENSE="Apache-2.0" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/boto/botocore" + inherit git-r3 +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" +fi + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] + dev-python/jmespath[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch" +) + +distutils_enable_sphinx docs/source \ + 'dev-python/guzzle_sphinx_theme' +distutils_enable_tests nose + +src_prepare() { + # unpin deps + sed -i -e "s:>=.*':':" setup.py || die + # very unstable + sed -i -e 's:test_stress_test_token_bucket:_&:' \ + tests/functional/retries/test_bucket.py || die + distutils-r1_src_prepare +} + +python_test() { + # note: suites need to be run separately as one of the unit tests + # seems to be leaking mocks and breaking a few functional tests + nosetests -v tests/unit || + die "unit tests failed under ${EPYTHON}" + nosetests -v tests/functional || + die "functional tests failed under ${EPYTHON}" +} diff --git a/dev-python/cffi-python2/cffi-python2-1.14.0-r3.ebuild b/dev-python/cffi-python2/cffi-python2-1.14.0-r3.ebuild deleted file mode 100644 index 74e4795f6e0d..000000000000 --- a/dev-python/cffi-python2/cffi-python2-1.14.0-r3.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -# DO NOT ADD pypy to PYTHON_COMPAT -# pypy bundles a modified version of cffi. Use python_gen_cond_dep instead. -PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) - -DISTUTILS_USE_SETUPTOOLS=manual -inherit distutils-r1 toolchain-funcs -MY_PN=cffi -MY_P=$MY_PN-$PV - -DESCRIPTION="Foreign Function Interface for Python calling C code" -HOMEPAGE="https://cffi.readthedocs.io/ https://pypi.org/project/cffi/" -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" - -LICENSE="MIT" -SLOT="0/${PV}" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="test" -RESTRICT="test" - -DEPEND="dev-libs/libffi:=" -RDEPEND="${DEPEND} - !dev-python/cffi[python_targets_python2_7] - dev-python/pycparser-python2[${PYTHON_USEDEP}]" -BDEPEND="${RDEPEND} - dev-python/setuptools-python2[${PYTHON_USEDEP}] - virtual/pkgconfig" - -distutils_enable_sphinx doc/source - -PATCHES=( - "${FILESDIR}"/cffi-0.14.0-g-line.patch -) - -S="${WORKDIR}/${MY_PN}-${PV}" - -src_configure() { - tc-export PKG_CONFIG -} - - -python_install_all() { - distutils-r1_python_install_all - rm -r ${D}/usr/share -} diff --git a/dev-python/cffi-python2/cffi-python2-1.14.0-r4.ebuild b/dev-python/cffi-python2/cffi-python2-1.14.0-r4.ebuild new file mode 100644 index 000000000000..74e4795f6e0d --- /dev/null +++ b/dev-python/cffi-python2/cffi-python2-1.14.0-r4.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# DO NOT ADD pypy to PYTHON_COMPAT +# pypy bundles a modified version of cffi. Use python_gen_cond_dep instead. +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) + +DISTUTILS_USE_SETUPTOOLS=manual +inherit distutils-r1 toolchain-funcs +MY_PN=cffi +MY_P=$MY_PN-$PV + +DESCRIPTION="Foreign Function Interface for Python calling C code" +HOMEPAGE="https://cffi.readthedocs.io/ https://pypi.org/project/cffi/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" +RESTRICT="test" + +DEPEND="dev-libs/libffi:=" +RDEPEND="${DEPEND} + !dev-python/cffi[python_targets_python2_7] + dev-python/pycparser-python2[${PYTHON_USEDEP}]" +BDEPEND="${RDEPEND} + dev-python/setuptools-python2[${PYTHON_USEDEP}] + virtual/pkgconfig" + +distutils_enable_sphinx doc/source + +PATCHES=( + "${FILESDIR}"/cffi-0.14.0-g-line.patch +) + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_configure() { + tc-export PKG_CONFIG +} + + +python_install_all() { + distutils-r1_python_install_all + rm -r ${D}/usr/share +} diff --git a/dev-python/cryptography-python2/cryptography-python2-2.9-r2.ebuild b/dev-python/cryptography-python2/cryptography-python2-2.9-r2.ebuild deleted file mode 100644 index e15c3fd17812..000000000000 --- a/dev-python/cryptography-python2/cryptography-python2-2.9-r2.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) -PYTHON_REQ_USE="threads(+)" - -DISTUTILS_USE_SETUPTOOLS=manual -inherit distutils-r1 flag-o-matic -MY_PN=cryptography -MY_P=$MY_PN-$PV - -VEC_P=cryptography_vectors-${PV} -DESCRIPTION="Library providing cryptographic recipes and primitives" -HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.org/project/cryptography/" -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz - test? ( mirror://pypi/c/cryptography_vectors/${VEC_P}.tar.gz )" - -LICENSE="|| ( Apache-2.0 BSD )" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="libressl idna test" -RESTRICT="test" - -# the openssl 1.0.2l-r1 needs to be updated again :( -# It'd theb be able to go into the || section again -#=dev-libs/openssl-1.0.2l-r1:0 -# the following is the original section, disallowing bindist entirely -#!libressl? ( >=dev-libs/openssl-1.0.2:0=[-bindist(-)] ) -RDEPEND=" - !dev-python/cryptography[python_targets_python2_7] - !libressl? ( >=dev-libs/openssl-1.0.2o-r6:0= ) - libressl? ( >=dev-libs/libressl-2.8:0= ) - idna? ( >=dev-python/idna-2.1[${PYTHON_USEDEP}] ) - dev-python/setuptools-python2[${PYTHON_USEDEP}] - >=dev-python/six-python2-1.4.1[${PYTHON_USEDEP}] - dev-python/enum34[${PYTHON_USEDEP}] - dev-python/ipaddress[${PYTHON_USEDEP}] - >=dev-python/cffi-python2-1.8:=[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND} - >=dev-python/setuptools-python2-1.0[${PYTHON_USEDEP}]" - -S="${WORKDIR}/${MY_PN}-${PV}" - -DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst ) - -python_configure_all() { - append-cflags $(test-flags-CC -pthread) -} - -python_install_all() { - distutils-r1_python_install_all - rm -r ${D}/usr/share -} diff --git a/dev-python/cryptography-python2/cryptography-python2-2.9-r3.ebuild b/dev-python/cryptography-python2/cryptography-python2-2.9-r3.ebuild new file mode 100644 index 000000000000..771ef7951c10 --- /dev/null +++ b/dev-python/cryptography-python2/cryptography-python2-2.9-r3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +PYTHON_REQ_USE="threads(+)" + +DISTUTILS_USE_SETUPTOOLS=manual +inherit distutils-r1 flag-o-matic +MY_PN=cryptography +MY_P=$MY_PN-$PV + +VEC_P=cryptography_vectors-${PV} +DESCRIPTION="Library providing cryptographic recipes and primitives" +HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.org/project/cryptography/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz + test? ( mirror://pypi/c/cryptography_vectors/${VEC_P}.tar.gz )" + +LICENSE="|| ( Apache-2.0 BSD )" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="libressl idna test" +RESTRICT="test" + +# the openssl 1.0.2l-r1 needs to be updated again :( +# It'd theb be able to go into the || section again +#=dev-libs/openssl-1.0.2l-r1:0 +# the following is the original section, disallowing bindist entirely +#!libressl? ( >=dev-libs/openssl-1.0.2:0=[-bindist(-)] ) +RDEPEND=" + !dev-python/cryptography[python_targets_python2_7] + !libressl? ( >=dev-libs/openssl-1.0.2o-r6:0= ) + libressl? ( >=dev-libs/libressl-2.8:0= ) + idna? ( >=dev-python/idna-2.1[${PYTHON_USEDEP}] ) + dev-python/setuptools-python2[${PYTHON_USEDEP}] + >=dev-python/six-python2-1.4.1[${PYTHON_USEDEP}] + dev-python/enum34[${PYTHON_USEDEP}] + dev-python/ipaddress[${PYTHON_USEDEP}] + >=dev-python/cffi-python2-1.8:=[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_PN}-${PV}" + +DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst ) + +python_configure_all() { + append-cflags $(test-flags-CC -pthread) +} + +python_install_all() { + distutils-r1_python_install_all + rm -r ${D}/usr/share +} diff --git a/dev-python/cython-python2/cython-python2-0.29.21-r1.ebuild b/dev-python/cython-python2/cython-python2-0.29.21-r1.ebuild deleted file mode 100644 index 655494d9f63a..000000000000 --- a/dev-python/cython-python2/cython-python2-0.29.21-r1.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) -PYTHON_REQ_USE="threads(+)" - -DISTUTILS_USE_SETUPTOOLS=manual -inherit distutils-r1 toolchain-funcs elisp-common - -MY_PN=cython -MY_P=$MY_PN-$PV - -DESCRIPTION="A Python to C compiler" -HOMEPAGE="https://cython.org https://pypi.org/project/Cython/ - https://github.com/cython/cython" -SRC_URI="https://github.com/cython/cython/archive/${PV}.tar.gz -> ${MY_P}.gh.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" -IUSE="emacs" -RESTRICT="test" - -RDEPEND=" - emacs? ( >=app-editors/emacs-23.1:* ) -" -BDEPEND=" - dev-python/setuptools-python2[${PYTHON_USEDEP}] - ${RDEPEND}" - -PATCHES=( - "${FILESDIR}/cython-0.29.14-sphinx-update.patch" -) - -S="${WORKDIR}/${MY_PN}-${PV}" - -SITEFILE=50cython-gentoo.el - -python_compile() { - # Python gets confused when it is in sys.path before build. - local -x PYTHONPATH= - - distutils-r1_python_compile -} - -python_compile_all() { - use emacs && elisp-compile Tools/cython-mode.el -} - -python_test() { - tc-export CC - # https://github.com/cython/cython/issues/1911 - local -x CFLAGS="${CFLAGS} -fno-strict-overflow" - "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ - || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) - distutils-r1_python_install_all - - if use emacs; then - elisp-install ${PN} Tools/cython-mode.* - elisp-site-file-install "${FILESDIR}/${SITEFILE}" - fi - rm -r ${D}/usr/share - rm -r ${D}/usr/bin -} - -pkg_postinst() { - use emacs && elisp-site-regen -} - -pkg_postrm() { - use emacs && elisp-site-regen -} diff --git a/dev-python/cython-python2/cython-python2-0.29.21-r2.ebuild b/dev-python/cython-python2/cython-python2-0.29.21-r2.ebuild new file mode 100644 index 000000000000..a80cedc13829 --- /dev/null +++ b/dev-python/cython-python2/cython-python2-0.29.21-r2.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) +PYTHON_REQ_USE="threads(+)" + +DISTUTILS_USE_SETUPTOOLS=manual +inherit distutils-r1 toolchain-funcs elisp-common + +MY_PN=cython +MY_P=$MY_PN-$PV + +DESCRIPTION="A Python to C compiler" +HOMEPAGE="https://cython.org https://pypi.org/project/Cython/ + https://github.com/cython/cython" +SRC_URI="https://github.com/cython/cython/archive/${PV}.tar.gz -> ${MY_P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" +IUSE="emacs" +RESTRICT="test" + +RDEPEND=" + !dev-python/cython[python_targets_python2_7] + emacs? ( >=app-editors/emacs-23.1:* ) +" +BDEPEND=" + dev-python/setuptools-python2[${PYTHON_USEDEP}] + ${RDEPEND}" + +PATCHES=( + "${FILESDIR}/cython-0.29.14-sphinx-update.patch" +) + +S="${WORKDIR}/${MY_PN}-${PV}" + +SITEFILE=50cython-gentoo.el + +python_compile() { + # Python gets confused when it is in sys.path before build. + local -x PYTHONPATH= + + distutils-r1_python_compile +} + +python_compile_all() { + use emacs && elisp-compile Tools/cython-mode.el +} + +python_test() { + tc-export CC + # https://github.com/cython/cython/issues/1911 + local -x CFLAGS="${CFLAGS} -fno-strict-overflow" + "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ + || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) + distutils-r1_python_install_all + + if use emacs; then + elisp-install ${PN} Tools/cython-mode.* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + rm -r ${D}/usr/share + rm -r ${D}/usr/bin +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 679ae988a777..2ad79b75d758 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -5,3 +5,4 @@ DIST hypothesis-python-5.47.0.tar.gz 9101964 BLAKE2B 7f57eebb6f27bf57373f2560612 DIST hypothesis-python-5.48.0.tar.gz 9102665 BLAKE2B 985957be8e13ada8830bc9c8c3941d8ecec0ef3d3684a177aa4d9cc10c1d57972ddef9f5b35194197ede2d1e5932299a9a99f04eabe6dd8789a786300d1b5608 SHA512 b4d46db6aa9c3dc59f38e209b702580ce9fa0d8771792943cbe28fcca4ea434c23a6f49b9889cb28339d7282e529f1c947a7768c38d726b5e993a2ba3c029e00 DIST hypothesis-python-5.49.0.tar.gz 9103591 BLAKE2B 158cbc38f6f2407d437656a7b94b5826193d427e06eca59d91b3fe85667282ec3392d72e7bbdf2bd952a495871a86814275883e2dcbc80758fcb3e68936d6d20 SHA512 96b7f98e7d87f82dac52a7b2de2bc0c29507cee05ee9a93f838e090e45a9f484ca75db1ab83ab52361b27e4e0f2747914ec09324fc188f6100c3397b1596778c DIST hypothesis-python-6.0.0.tar.gz 9103769 BLAKE2B 91ce33c4370530611f1c14abdaf8760a4e40b314ee01bf9536e0ee6b618f1191b0173cf8f65f78fb31ccb23331d5c12779703f94fa85b4d648d9b879762bd8b0 SHA512 c06d95fd889a0560325435787344a5d57041269e5ea4945dac4517ccf04b0b2aa58ae06058937640b208c5433fc0ff3d81c958baca5a5d9100a8f058aeccf41e +DIST hypothesis-python-6.0.1.tar.gz 9104122 BLAKE2B c4702a2c94fb5ecfc44543b70995150090949067ca986f5671a936d5da651e2e1ed072457ed1238ae04549709019722f7501ff7c2a37c46da3d25b43fa416b08 SHA512 3981a40ba61ca38140582f46b1ebb1ac2fc0816e8210c37ddc91249515d035534208c6ba926f367607bbd79792383eb166c1f4710a8a5ba5e04876383ac44644 diff --git a/dev-python/hypothesis/hypothesis-6.0.1.ebuild b/dev-python/hypothesis/hypothesis-6.0.1.ebuild new file mode 100644 index 000000000000..9c1c85cb43dc --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.0.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 eutils multiprocessing optfeature + +DESCRIPTION="A library for property based testing" +HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" +SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" +S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="cli test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] + cli? ( + $(python_gen_cond_dep ' + dev-python/black[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + ' python3_{6..9}) + ) +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + + + + + voyageur@gentoo.org + Bernard Cafarelli + + + python@gentoo.org + Python + + + validators + kvesteri/validators + + gentoo-staging + diff --git a/dev-python/validators/validators-0.18.2.ebuild b/dev-python/validators/validators-0.18.2.ebuild new file mode 100644 index 000000000000..c49e00b48575 --- /dev/null +++ b/dev-python/validators/validators-0.18.2.ebuild @@ -0,0 +1,21 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="Python Data Validation for Humans" +HOMEPAGE="https://github.com/kvesteri/validators" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=">=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] + >=dev-python/six-1.4.0[${PYTHON_USEDEP}]" +DEPEND="" + +distutils_enable_tests pytest diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest index 764cce290c85..34c02a68feaa 100644 --- a/dev-python/virtualenv/Manifest +++ b/dev-python/virtualenv/Manifest @@ -1,3 +1,4 @@ DIST virtualenv-16.7.10.tar.gz 5116776 BLAKE2B 42f0a4b4330850b504f8febd991ef6ecdcbb0821efdd94ca324a8cc34a68a760a8a98de97f0cb2384d8e6cbb0ce8f261995c6433886444e29b75ba0ce09ca12c SHA512 f06d7c354ce1910f04dbcbe1a77e60392653bbe4f638bafbe9284454db2c0e5d63cf9159201d0916fc01aaba91d45fb733b63096c38517fcd83fd00ed8b26d28 DIST virtualenv-20.2.1.tar.gz 8286055 BLAKE2B da77c51b352e979f05515107df49101a70f97da01862ae92aff0e185065edf1d6d517ee68057f1f2efe5ee999dd9dec24c0f2967b1f10130b446e83e478ccbd1 SHA512 e7877a9766bc47f47a07219258201ad8457ca587a04d61119a0516da43016dda4b5cfeaf725dd0b06f1f896ac8af0f3d7a2ceed3d3f35ac7a4b6ecc607c84118 DIST virtualenv-20.3.0.tar.gz 9074217 BLAKE2B a5a00e39e31beff84e28e66d1cf6693804861ec0a3c0d0ee5c042e39a8edf894e89d6e78093fe1a4fecaf8b43bceff82e47a1ef7b8a92a1d2bc58d61411575b9 SHA512 5703a934d373d88670092febf26782f65303c65de93cffdd1a2ca06d6f2de4868378421f3ad96e3857eb99d0b60e7a77b0a2dbcf10561918efcbadb29a4ebf3b +DIST virtualenv-20.3.1.tar.gz 9077527 BLAKE2B 9932c75ffd42c2448a3f5dc49aa8b31f7cd169cc671e225a97fa75fabc3339728d0b280abec9616c11fc869dc696bfd17da05bf911c6f8a14947d710ade86897 SHA512 ee95e851e9e3597fd1691086d1d4dc72a41d6a143e9644be208cadbc1dfe7c8e562cd506a657ba1f77161d8d80a9f6f648b345e6533265b0e989c7ad39cc7680 diff --git a/dev-python/virtualenv/virtualenv-20.3.1.ebuild b/dev-python/virtualenv/virtualenv-20.3.1.ebuild new file mode 100644 index 000000000000..7a01fa9ad8dc --- /dev/null +++ b/dev-python/virtualenv/virtualenv-20.3.1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +DISTUTILS_USE_SETUPTOOLS=manual + +inherit distutils-r1 + +DESCRIPTION="Virtual Python Environment builder" +HOMEPAGE=" + https://virtualenv.pypa.io/en/stable/ + https://pypi.org/project/virtualenv/ + https://github.com/pypa/virtualenv/ +" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/appdirs-1.4.3[${PYTHON_USEDEP}] + >=dev-python/distlib-0.3.1[${PYTHON_USEDEP}] + >=dev-python/filelock-3[${PYTHON_USEDEP}] + >=dev-python/setuptools-41[${PYTHON_USEDEP}] + >=dev-python/six-1.9.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/importlib_metadata-0.12[${PYTHON_USEDEP}] + ' python3_{6,7} pypy3) + $(python_gen_cond_dep ' + >=dev-python/importlib_resources-1.0[${PYTHON_USEDEP}] + ' python3_6 pypy3)" +# coverage is used somehow magically in virtualenv, maybe it actually +# tests something useful +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + $(python_gen_cond_dep ' + dev-python/coverage[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + >=dev-python/pip-20.0.2[${PYTHON_USEDEP}] + >=dev-python/pytest-5[${PYTHON_USEDEP}] + >=dev-python/pytest-freezegun-0.4.1[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-2.0.0[${PYTHON_USEDEP}] + >=dev-python/pytest-timeout-1.3.4[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + >=dev-python/packaging-20.0[${PYTHON_USEDEP}] + ' 'python3*') + )" + +distutils_enable_sphinx docs \ + dev-python/sphinx_rtd_theme \ + dev-python/towncrier + +src_configure() { + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} +} + +python_test() { + local deselect=( + tests/unit/activation/test_xonsh.py + tests/unit/seed/embed/test_bootstrap_link_via_app_data.py::test_seed_link_via_app_data + tests/unit/create/test_creator.py::test_cross_major + ) + [[ ${EPYTHON} == pypy3 ]] && deselect+=( + 'tests/unit/create/test_creator.py::test_create_no_seed[root-pypy3-posix-copies-isolated]' + 'tests/unit/create/test_creator.py::test_create_no_seed[root-pypy3-posix-copies-global]' + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-pypy3-posix-copies-isolated]' + 'tests/unit/create/test_creator.py::test_create_no_seed[venv-pypy3-posix-copies-global]' + 'tests/unit/create/test_creator.py::test_zip_importer_can_import_setuptools' + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.9-64-bin-]' + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7.9--bin-]' + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7-64-bin-]' + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3.7--bin-]' + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3-64-bin-]' + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[PyPy-3--bin-]' + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.9-64-bin-]' + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7.9--bin-]' + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7-64-bin-]' + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3.7--bin-]' + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3-64-bin-]' + 'tests/unit/discovery/py_info/test_py_info_exe_based_of.py::test_discover_ok[python-3--bin-]' + ) + + distutils_install_for_testing --via-root + pytest -vv ${deselect[@]/#/--deselect } || + die "Tests fail with ${EPYTHON}" +} + +pkg_postinst() { + elog "Please note that while virtualenv package no longer supports" + elog "Python 2.7, you can still create py2.7 virtualenvs via:" + elog " $ virtualenv -p 2.7 ..." +} -- cgit v1.3.1