diff options
Diffstat (limited to 'dev-python')
26 files changed, 543 insertions, 48 deletions
diff --git a/dev-python/berkeleydb/berkeleydb-18.1.4.ebuild b/dev-python/berkeleydb/berkeleydb-18.1.4.ebuild index d21c1fc5dc52..5017f8ad67e9 100644 --- a/dev-python/berkeleydb/berkeleydb-18.1.4.ebuild +++ b/dev-python/berkeleydb/berkeleydb-18.1.4.ebuild @@ -17,7 +17,7 @@ SRC_URI="https://dev.gentoo.org/~arthurzam/distfiles/dev-python/${PN}/${P}.tar.x LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~riscv ~x86" RDEPEND=" || ( diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index 78678de8fa13..c462ea866dd9 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -4,3 +4,4 @@ DIST boto3-1.18.41.tar.gz 412328 BLAKE2B 134ec70addcb9748d255b86d9e12dd380094a6a DIST boto3-1.18.42.tar.gz 412699 BLAKE2B d03c4afe357def827e9169ced8b17f92caf79b8291edd5045629e1b8ee697014764caf3135910d9a0862380a94fbaabd1863535c0aad21fd1eca2b0d3e306ac2 SHA512 aae080862a3b30e23407cde6ced8a48522421be40f9eb192647f6ed2693ce6655576dd0705a998469274ba9ef74d24d51c31003798fc4f0856c417491aeab30b DIST boto3-1.18.43.tar.gz 413685 BLAKE2B 1733a75e17fabdd9941874fd7dfec735cde8702e4df07e5f3c293a9cd83207ae26f7adfc7caeb4913d2fc0d114c4738870b93053ce3e2485f9b4bc3286dabad1 SHA512 5191276feff196503cbd21a44bfd205737ed2c150071037d76198b164c56549b34f36266768f3e5346add393d6c25ad13daf6f6daf74217841d27e305c20c3f1 DIST boto3-1.18.44.tar.gz 413928 BLAKE2B 4cfa75b2dd99f70af521b4da6537cc527f2ab80352b6fb29460ef8759761536023ddb567ef5050d9fa43327542112494b48264bae73bbb95e701ae997e37787c SHA512 cbf142259bf84d0d8a1ba7f2e00d4dff2f66d3adf8fc838d7f3228ce5cc837337907e5351cdafa68fdf6497ce3c7db4543b1254cd6471a81a1ece47f713b1cfe +DIST boto3-1.18.45.tar.gz 419575 BLAKE2B 27896cfc3bd11c13d21bc272b2648917e1f99be5cbb88fd7772388660846dc587d65f21ad22223a310ed1cb264b2a67f8abc3e176df9c7b26a8bab9c4484a386 SHA512 673d727d4b354fa0c790418569832db369215537159abe5343149b63705f3e9f7d9e8f660d26b174b4f2661411afef51b296ebcaef62a6746b7b7853c596216f diff --git a/dev-python/boto3/boto3-1.18.45.ebuild b/dev-python/boto3/boto3-1.18.45.ebuild new file mode 100644 index 000000000000..bee358e1c595 --- /dev/null +++ b/dev-python/boto3/boto3-1.18.45.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +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 ~ppc ~ppc64 ~sparc ~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 7a7160249721..66ac74536351 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -4,3 +4,4 @@ DIST botocore-1.21.41.tar.gz 8152451 BLAKE2B e236a8f0f64bd18c138dc168c74cefe7af5 DIST botocore-1.21.42.tar.gz 8156403 BLAKE2B 199d1eeae7b51fc59b8ca6ed3ea331178e94354841144f0055f02a9cd3d67e2bf52c358a7902090bc555c96e6876dcda1b4fe9b9c5c090ce07901af60b4ed116 SHA512 5be1b82f99ea310077bef3abbca6542a1787db38d5f2004107ff2c4b51a57e39e859116daf9451b23368347e05cded84a401476ca6e3fcd13683e4fc8ceb8554 DIST botocore-1.21.43.tar.gz 8167256 BLAKE2B 525f0d1e7cacd34d81800abf5a120cdaff2a5ba91dfe7e7405d54d8b1768b45df4b1d36b287ab1db42ad68f17f1f2bfcd5c71c64a270824c69128fafea8ec113 SHA512 709f1792f855bb4178dd2d1e79f7b476e5b695a84684d9a5e6e57a36bd8f881f28cc4322a2e296c3935fad544d6adb4ede15a7cd532c7e5671350f0d96bee105 DIST botocore-1.21.44.tar.gz 8168012 BLAKE2B c1fc1a2cb71c88365b18f578cde18633a7969b7d12c8162762fdc1ad9395ebf859a9d144870a751a1760f93bffd255bb8969b1fde812f9bf1d95e9973b61b202 SHA512 66b4c3ede4b23260a61309de7afcef2c5436516b3399c52438bae50b8714e3d8b0c86b271e0ac8f1214738ecee3e1677fa6ca7315a1bfaae5a49f2aa650a6806 +DIST botocore-1.21.45.tar.gz 8170610 BLAKE2B e55cc819188ae61c1427a3a7e3ff008d85c8590e37873940a2749fb7b07431f5ce828e403f294c53ccd7b7c6fa8ce82265773a5e2c1ca85b00449d77557aed7b SHA512 54d7a450777bba7db5633b5591c446533444f3d12704deaf4d039603c5bbf8c3cb5c0fa88cddaf58df21f3dc2fb1fdf9b90cc63e0ef5967f535b761b7c136d6d diff --git a/dev-python/botocore/botocore-1.21.45.ebuild b/dev-python/botocore/botocore-1.21.45.ebuild new file mode 100644 index 000000000000..5684261bd4b3 --- /dev/null +++ b/dev-python/botocore/botocore-1.21.45.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~ppc ~ppc64 ~sparc ~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/dask/Manifest b/dev-python/dask/Manifest index 74fca4f87558..bea81d880f61 100644 --- a/dev-python/dask/Manifest +++ b/dev-python/dask/Manifest @@ -1,2 +1,3 @@ DIST dask-2021.8.1.tar.gz 3786161 BLAKE2B cb47b900e4769113e28e1cea70cb65008debb25431c05792666ca1d9aef9143061d1b0c2ce825ff1a22312c4cc615a2878591fc93236521811c19a35e70446b1 SHA512 aff7b92b66ab5d8858eb28d416c3661e64400a8ddcc9135b74b1bf3cad195a4fc55a00365c5602cb0b66ef8506e73c0f6bd2d3972ce8744d2e77095cdf040d11 DIST dask-2021.9.0.tar.gz 3792016 BLAKE2B f2538c9df5783f087f555945234b4d31c5f02a539eaf14bffdc05e4d3f62d5ef309289e216434e477a728837e9556b2f50a0aadf8a943380496168c62577c356 SHA512 b821c38faf9cdf6574eab8014d4acb95f37cc260c9c3ad2c19fbdf24c3ed9fa5c9cfa35fdaf53f7b640b3c8a86eb6b60c2e5e9bcb7760870023451c6c383545f +DIST dask-2021.9.1.tar.gz 3794819 BLAKE2B c3ed5050581f41c4ea82ad9d1d233205f105434e5e6dcc654ba2e999b8cf105033d58ecf045d2063dabcb701cb2af6f092ecfd8435d24e5949ed2d39b54ae19e SHA512 20beca3f68c2e21d54c941049a1f352e19fcce7b5f7ecf84abf60cfb9979551a3e83938ca5439b662d35c0b64b26d726f6fea85641e737d0060c56a2e879755e diff --git a/dev-python/dask/dask-2021.9.1.ebuild b/dev-python/dask/dask-2021.9.1.ebuild new file mode 100644 index 000000000000..5d74c92ae986 --- /dev/null +++ b/dev-python/dask/dask-2021.9.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="Task scheduling and blocked algorithms for parallel processing" +HOMEPAGE="https://dask.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/cloudpickle-0.2.2[${PYTHON_USEDEP}] + >=dev-python/fsspec-0.6.0[${PYTHON_USEDEP}] + >=dev-python/numpy-1.15.1[${PYTHON_USEDEP}] + >=dev-python/pandas-0.25.0[${PYTHON_USEDEP}] + >=dev-python/packaging-20.0[${PYTHON_USEDEP}] + >=dev-python/partd-0.3.10[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + >=dev-python/toolz-0.8.2[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/toolz[${PYTHON_USEDEP}] + test? ( + dev-python/moto[${PYTHON_USEDEP}] + dev-python/numexpr[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + epytest -p no:flaky -m "not network" +} diff --git a/dev-python/gevent/Manifest b/dev-python/gevent/Manifest index cbc3cd64ece7..c55adeb83200 100644 --- a/dev-python/gevent/Manifest +++ b/dev-python/gevent/Manifest @@ -1 +1,2 @@ DIST gevent-21.1.2.tar.gz 5943652 BLAKE2B ef85e9941a8e46370437a34728c012f9d8976b5680b22bf9b13ab35d7417019ac0e85fac5cfc8632972e38a2f70028a00ba3fe9f8be11aa2ff64e364052da594 SHA512 1ee2b748a97fa40f67ad2c3b83c6b9f48dbfaae9f2b4f1c118919cfd642c1ca27de0e33a00d950f003f90131354b56a4868ce3051864dbe2ea9b7f22eeafc1eb +DIST gevent-21.8.0.tar.gz 6162938 BLAKE2B f24770cdbf229d4a4ebe7e6c102c43ab0c89a52389ada40c8abaf032eada323333ca9ac965c65d335d96d69c97cdc239e193dd5a38076c81a2f3c80daa13b339 SHA512 dae95f986530e79b07a0006f6fb4cbd3911ac0bf2e58c4896ee5fa6d2e2a9ed5785c346958ee23cd57c2dcafb0a34c585b1f6375a29fd653e061a382482fc9fb diff --git a/dev-python/gevent/gevent-21.8.0.ebuild b/dev-python/gevent/gevent-21.8.0.ebuild new file mode 100644 index 000000000000..45796eb4d6c5 --- /dev/null +++ b/dev-python/gevent/gevent-21.8.0.ebuild @@ -0,0 +1,88 @@ +# 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="ssl(+),threads(+)" + +inherit distutils-r1 flag-o-matic + +DESCRIPTION="Coroutine-based network library" +HOMEPAGE="https://www.gevent.org/ https://pypi.org/project/gevent/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="doc examples test" +RESTRICT="!test? ( test )" + +DEPEND=" + >=dev-libs/libev-4.31:= + dev-libs/libuv:= + >=net-dns/c-ares-1.12:= +" +RDEPEND="${DEPEND} + virtual/python-greenlet[${PYTHON_USEDEP}] + dev-python/zope-event[${PYTHON_USEDEP}] + dev-python/zope-interface[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + )" + +distutils_enable_sphinx doc + +# Tests take long and fail terribly a few times. +# It also seems that they require network access. +#RESTRICT="test" + +python_prepare_all() { + export LIBEV_EMBED="false" + export CARES_EMBED="false" + export EMBED="false" + + distutils-r1_python_prepare_all +} + +python_configure_all() { + append-flags -fno-strict-aliasing +} + +python_test() { + cd src/gevent/tests || die + # TODO: figure out how to make them work and not hang +# GEVENT_RESOLVER=ares \ +# "${EPYTHON}" -m gevent.tests \ +# -uall,-network \ +# --config known_failures.py \ +# --ignore tests_that_dont_use_resolver.txt || die +# GEVENT_RESOLVER=dnspython \ +# "${EPYTHON}" -m gevent.tests \ +# -uall,-network \ +# --config known_failures.py \ +# --ignore tests_that_dont_use_resolver.txt || die +# GEVENT_RESOLVER=thread \ +# "${EPYTHON}" -m gevent.tests \ +# --verbose \ +# -uall,-network \ +# --config known_failures.py \ +# --ignore tests_that_dont_use_resolver.txt || die + GEVENT_FILE=thread \ + "${EPYTHON}" -m gevent.tests \ + --verbose \ + -uall,-network \ + --config known_failures.py \ + test__*subprocess*.py || die +} + +python_install_all() { + local DOCS=( AUTHORS README.rst ) + use examples && dodoc -r examples + + distutils-r1_python_install_all +} diff --git a/dev-python/geventhttpclient/geventhttpclient-1.5.1.ebuild b/dev-python/geventhttpclient/geventhttpclient-1.5.1.ebuild index b2ffd61faf0c..eae2901716a4 100644 --- a/dev-python/geventhttpclient/geventhttpclient-1.5.1.ebuild +++ b/dev-python/geventhttpclient/geventhttpclient-1.5.1.ebuild @@ -18,7 +18,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~pp RDEPEND=" app-arch/brotli[python,${PYTHON_USEDEP}] dev-python/certifi[${PYTHON_USEDEP}] - dev-python/gevent[events,${PYTHON_USEDEP}] + dev-python/gevent[events(+),${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] " BDEPEND=" diff --git a/dev-python/huawei-lte-api/huawei-lte-api-1.5.2.ebuild b/dev-python/huawei-lte-api/huawei-lte-api-1.5.2.ebuild index a862193a8c64..748b4d515860 100644 --- a/dev-python/huawei-lte-api/huawei-lte-api-1.5.2.ebuild +++ b/dev-python/huawei-lte-api/huawei-lte-api-1.5.2.ebuild @@ -20,9 +20,6 @@ RDEPEND="dev-python/pycryptodome[${PYTHON_USEDEP}] dev-python/xmltodict[${PYTHON_USEDEP}]" python_prepare_all() { - # https://github.com/Salamek/huawei-lte-api/issues/86 - sed "s:'pytest-runner'::" -i setup.py || die - # make cryptodome-friendly find -name '*.py' -exec \ sed -i -e 's:Cryptodome:Crypto:g' {} + || die diff --git a/dev-python/pikepdf/Manifest b/dev-python/pikepdf/Manifest index ca1cf6c983cb..d9ca80b0d11e 100644 --- a/dev-python/pikepdf/Manifest +++ b/dev-python/pikepdf/Manifest @@ -1 +1,2 @@ DIST pikepdf-2.16.1.tar.gz 2312177 BLAKE2B a7695ecc71621c1e64ab919e76dabd3a94ff16d401861fe50f29f00832dda8be01f3e67c811756ef89573345b49ec6c880635309f859624b9df42cf6eff7b43b SHA512 d2c73a0a69c6cf0ed22dc2dc949187464abd4194a5d917e5681de033d6a8ce4c089efd49eb110c9fa11f9dead292aa6ab7ed71a01f7cbaadc51d1f37a773c936 +DIST pikepdf-3.1.0.tar.gz 2334496 BLAKE2B f92385a9317e88b00586f6900b4ef2a296e6960e8a587d2b6bf7f12e5354d9de48b537cb5cdd220187860c852e0ee538d533902311d70c7d44e6fe700fc10ca8 SHA512 c3ef18f287ba873d6e35114137228028a81af8ba4d59ffe5c486716b298757fe6f5b5d3d67dcc4230ed10543849a8d6370e43d99527d7cfd1decd4a84b59781f diff --git a/dev-python/pikepdf/pikepdf-3.1.0.ebuild b/dev-python/pikepdf/pikepdf-3.1.0.ebuild new file mode 100644 index 000000000000..2f4e00da349b --- /dev/null +++ b/dev-python/pikepdf/pikepdf-3.1.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +MY_P=${P/_p/.post} +DESCRIPTION="Python library to work with pdf files based on qpdf" +HOMEPAGE="https://pypi.org/project/pikepdf/ https://github.com/pikepdf/pikepdf" +SRC_URI=" + https://github.com/${PN}/${PN}/archive/v${PV/_p/.post}.tar.gz + -> ${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=">=app-text/qpdf-10.3.1:0=" +RDEPEND="${DEPEND} + >=dev-python/pillow-7[${PYTHON_USEDEP}] + >=dev-python/lxml-4.0[${PYTHON_USEDEP}] + >=dev-python/pybind11-2.7.1[${PYTHON_USEDEP}]" +BDEPEND=" + >=dev-python/pybind11-2.7.1[${PYTHON_USEDEP}] + >=dev-python/setuptools_scm-4.1[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + dev-python/setuptools_scm_git_archive[${PYTHON_USEDEP}] + test? ( + >=dev-python/attrs-20.2.0[${PYTHON_USEDEP}] + >=dev-python/hypothesis-5[${PYTHON_USEDEP}] + >=dev-python/pillow-5.0.0[${PYTHON_USEDEP},jpeg,lcms,tiff] + >=dev-python/psutil-5[${PYTHON_USEDEP}] + >=dev-python/pytest-6[${PYTHON_USEDEP}] + >=dev-python/pytest-timeout-1.4.2[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}] + >=dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}] + )" + +#distutils_enable_sphinx docs \ +# dev-python/ipython \ +# dev-python/matplotlib \ +# dev-python/sphinx_rtd_theme +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/-n auto/d' pyproject.toml || die + distutils-r1_src_prepare +} diff --git a/dev-python/podman-py/Manifest b/dev-python/podman-py/Manifest index ab2ad9fb16d0..8847f35b0fbc 100644 --- a/dev-python/podman-py/Manifest +++ b/dev-python/podman-py/Manifest @@ -1 +1,2 @@ DIST podman-py-3.2.0.tar.gz 165514 BLAKE2B 7e25d160b98e45cc147069249d850b3a3d6dac5227942d90ed99b8313befd9db04a6423015ae56959a53eeeb49958d9067eb6fb7127ee55bf50ebfcea617a220 SHA512 8ef165847de5fecd81e7b5564baeaa0298efd4d2e6f12e1dfe958eed77f945d9375d90ba93a8ebab4b090b228d451e96ce49d08288dc3daae1255a05127b25c7 +DIST podman-py-3.2.1.tar.gz 181095 BLAKE2B 5075a37d3ef20004424536bc1f9e6e08c842248fcb8d8235ebc354e832e78125fb19bd0001f7fd237ebc642e348368da90b634f0db8c84e23ef77e8cf99b71ad SHA512 656a5e61d9809e2866a071ff5b4792fb71fbe0f8cc05467b498718b74898acc39a970ba64fc08ffe70d9c34a9caeabc3d8ea07dcce856fec308b6ebd268b2fb0 diff --git a/dev-python/podman-py/podman-py-3.2.1.ebuild b/dev-python/podman-py/podman-py-3.2.1.ebuild new file mode 100644 index 000000000000..a575d42f81a0 --- /dev/null +++ b/dev-python/podman-py/podman-py-3.2.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="A library to interact with a Podman server" +HOMEPAGE=" + https://github.com/containers/podman-py/ + https://pypi.org/project/podman/" +SRC_URI=" + https://github.com/containers/podman-py/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/pyxdg-0.26[${PYTHON_USEDEP}] + >=dev-python/requests-2.24[${PYTHON_USEDEP}] + >=dev-python/toml-0.10.2[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.24.2[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + dev-python/requests-mock[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # TODO + podman/tests/unit/test_volumesmanager.py::VolumesManagerTestCase::test_get_404 + ) + + # integration tests require a workable podman server, + # and it doesn't seem to work in ebuild env + epytest podman/tests/unit +} diff --git a/dev-python/pydecomp/metadata.xml b/dev-python/pydecomp/metadata.xml index 14736cb10799..bfca2774e2cb 100644 --- a/dev-python/pydecomp/metadata.xml +++ b/dev-python/pydecomp/metadata.xml @@ -11,6 +11,8 @@ routines. It can easily be extended with custom compression, decompression, and contents definitions. </longdescription> - + <upstream> + <bugs-to>https://github.com/dol-sen/pyDeComp/issues</bugs-to> + </upstream> <origin>gentoo-staging</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/pydecomp/pydecomp-0.3-r1.ebuild b/dev-python/pydecomp/pydecomp-0.3-r1.ebuild index 2875e9d9caec..51bf1b5f93a2 100644 --- a/dev-python/pydecomp/pydecomp-0.3-r1.ebuild +++ b/dev-python/pydecomp/pydecomp-0.3-r1.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 PYTHON_COMPAT=( python3_{6,7,8,9,10} ) DISTUTILS_USE_SETUPTOOLS=no -inherit distutils-r1 python-r1 +inherit distutils-r1 if [[ ${PV} == "9999" ]] ; then EGIT_BRANCH="master" @@ -23,15 +23,3 @@ HOMEPAGE="https://github.com/dol-sen/pyDeComp" LICENSE="BSD" SLOT="0" -IUSE="" - -python_install_all() { - distutils-r1_python_install_all -} - -pkg_postinst() { - einfo - einfo "Please file any enhancement requests, or bugs" - einfo "at https://github.com/dol-sen/pyDeComp/issues" - einfo "I am also on IRC @ #gentoo-ci of the Libera.Chat network" -} diff --git a/dev-python/pydecomp/pydecomp-9999.ebuild b/dev-python/pydecomp/pydecomp-9999.ebuild index 66538c0db2b0..9bce7cd2b157 100644 --- a/dev-python/pydecomp/pydecomp-9999.ebuild +++ b/dev-python/pydecomp/pydecomp-9999.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 PYTHON_COMPAT=( python3_{6,7,8,9,10} ) DISTUTILS_USE_SETUPTOOLS=no -inherit distutils-r1 python-r1 +inherit distutils-r1 if [[ ${PV} == "9999" ]] ; then EGIT_BRANCH="master" @@ -14,7 +14,7 @@ if [[ ${PV} == "9999" ]] ; then inherit git-r3 else SRC_URI="https://dev.gentoo.org/~dolsen/releases/${PN}/pyDeComp-${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" S="${WORKDIR}/pyDeComp-${PV}" fi @@ -23,22 +23,3 @@ HOMEPAGE="https://github.com/dol-sen/pyDeComp" LICENSE="BSD" SLOT="0" -IUSE="" - -python_install_all() { - distutils-r1_python_install_all -} - -pkg_postinst() { - einfo - einfo "This is new software." - einfo "The API's it installs should be considered unstable" - einfo "and are subject to change." - einfo - einfo "Please file any enhancement requests, or bugs" - einfo "at https://github.com/dol-sen/pyDeComp/issues" - einfo "I am also on IRC @ #gentoo-ci of the Libera.Chat network" - einfo - ewarn "There may be some python 3 compatibility issues still." - ewarn "Please help debug/fix/report them in github or bugzilla." -} diff --git a/dev-python/pygobject/Manifest b/dev-python/pygobject/Manifest index 20597c1fe1ec..cccbe5e376b3 100644 --- a/dev-python/pygobject/Manifest +++ b/dev-python/pygobject/Manifest @@ -1 +1,2 @@ DIST pygobject-3.40.1.tar.xz 556104 BLAKE2B e6a092bee68121d9ef82f41f21c9811f384b8578c48de445f707f1b0de124cf38d899d34b8f4269a154ebd4e323afdfa7afef5c0c5cc5dc451b2cd68b30da04b SHA512 a8350f43ea99c93aa66a23102d4ee2ca3c7f8ec2c8bcf5cd142dd097b4fb38167f1713efff3584aa323c34656c911fb940e462c83c02b107e4aad93d005022f7 +DIST pygobject-3.42.0.tar.xz 557060 BLAKE2B 25c0634dcb713f4059d19ff2efdd67004e1343f49982123686f4df71fc2678583244dab7a22160f42d5361c3e5c6e38bcd8ccaeeafb3e1d885e5d5febaa9dde1 SHA512 2f3e9187cb8dd7ccbf139a58ea348732fc7cb95dbf4bee2ba8f78003a7540d90c0b29153d93f50bf613c2d43f0de0ec8971c61c358d48552e42ce17775a178dd diff --git a/dev-python/pygobject/files/pygobject-3.42.0-dynamicimporter-py310.patch b/dev-python/pygobject/files/pygobject-3.42.0-dynamicimporter-py310.patch new file mode 100644 index 000000000000..cf292ffbf7c6 --- /dev/null +++ b/dev-python/pygobject/files/pygobject-3.42.0-dynamicimporter-py310.patch @@ -0,0 +1,61 @@ +From dea457c0754550e210ab3cca9da8be1ae52d1d31 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz> +Date: Tue, 18 May 2021 12:31:51 +0200 +Subject: [PATCH] Implement DynamicImporter.find_spec() + +On Python 3.10, the code raised an ImportWarning: + + ImportWarning: DynamicImporter.find_spec() not found; falling back to find_module() + +See https://docs.python.org/3.10/whatsnew/3.10.html#deprecated + +> Starting in this release, there will be a concerted effort to begin cleaning +> up old import semantics that were kept for Python 2.7 compatibility. +> Specifically, find_loader()/find_module() (superseded by find_spec()), +> load_module() (superseded by exec_module()), module_repr() +> (which the import system takes care of for you), +> the __package__ attribute (superseded by __spec__.parent), +> the __loader__ attribute (superseded by __spec__.loader), +> and the __cached__ attribute (superseded by __spec__.cached) +> will slowly be removed (as well as other classes and methods in importlib). +> ImportWarning and/or DeprecationWarning will be raised as appropriate to help +> identify code which needs updating during this transition. + +Fixes https://gitlab.gnome.org/GNOME/pygobject/-/issues/473 +--- + gi/importer.py | 15 ++++++++++----- + 1 file changed, 10 insertions(+), 5 deletions(-) + +diff --git a/gi/importer.py b/gi/importer.py +index 32967974..63788776 100644 +--- a/gi/importer.py ++++ b/gi/importer.py +@@ -107,15 +107,20 @@ class DynamicImporter(object): + def __init__(self, path): + self.path = path + +- def find_module(self, fullname, path=None): ++ def _find_module_check(self, fullname): + if not fullname.startswith(self.path): +- return ++ return False + + path, namespace = fullname.rsplit('.', 1) +- if path != self.path: +- return ++ return path == self.path ++ ++ def find_spec(self, fullname, path=None, target=None): ++ if self._find_module_check(fullname): ++ return importlib.util.spec_from_loader(fullname, self) + +- return self ++ def find_module(self, fullname, path=None): ++ if self._find_module_check(fullname): ++ return self + + def load_module(self, fullname): + if fullname in sys.modules: +-- +2.32.0 + diff --git a/dev-python/pygobject/pygobject-3.42.0.ebuild b/dev-python/pygobject/pygobject-3.42.0.ebuild new file mode 100644 index 000000000000..c938253bdac5 --- /dev/null +++ b/dev-python/pygobject/pygobject-3.42.0.ebuild @@ -0,0 +1,78 @@ +# 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 gnome.org meson python-r1 virtualx xdg + +DESCRIPTION="Python bindings for GObject Introspection" +HOMEPAGE="https://pygobject.readthedocs.io/" + +LICENSE="LGPL-2.1+" +SLOT="3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="+cairo examples test" +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + >=dev-libs/glib-2.56:2 + >=dev-libs/gobject-introspection-1.56:= + dev-libs/libffi:= + cairo? ( + >=dev-python/pycairo-1.16.0[${PYTHON_USEDEP}] + x11-libs/cairo[glib] ) +" +DEPEND="${RDEPEND} + test? ( + dev-libs/atk[introspection] + dev-python/pytest[${PYTHON_USEDEP}] + x11-libs/gdk-pixbuf:2[introspection,jpeg] + x11-libs/gtk+:3[introspection] + x11-libs/pango[introspection] + ) +" +BDEPEND=" + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${P}-dynamicimporter-py310.patch +) + +src_configure() { + configuring() { + meson_src_configure \ + $(meson_feature cairo pycairo) \ + $(meson_use test tests) \ + -Dpython="${EPYTHON}" + } + + python_foreach_impl configuring +} + +src_compile() { + python_foreach_impl meson_src_compile +} + +src_test() { + local -x GIO_USE_VFS="local" # prevents odd issues with deleting ${T}/.gvfs + local -x GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related failures in chroots, bug #449484 + + testing() { + local -x XDG_CACHE_HOME="${T}/${EPYTHON}" + meson_src_test || die "test failed for ${EPYTHON}" + } + virtx python_foreach_impl testing +} + +src_install() { + installing() { + meson_src_install + python_optimize + } + python_foreach_impl installing + use examples && dodoc -r examples +} diff --git a/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild b/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild index 72f92902f51f..6c8357849554 100644 --- a/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild +++ b/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild @@ -19,14 +19,18 @@ BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]" distutils_enable_tests pytest +src_prepare() { + sed -e 's/runpytest_subprocess(/&"-p","no:xprocess",/' -i tests/test_pytest_mock.py || die + distutils-r1_src_prepare +} + python_test() { - local deselect=() if has_version dev-python/mock; then - deselect+=( + local EPYTEST_DESELECT=( tests/test_pytest_mock.py::test_standalone_mock ) fi distutils_install_for_testing - epytest --assert=plain ${deselect[@]/#/--deselect } + epytest --assert=plain } diff --git a/dev-python/pytest-xdist/pytest-xdist-2.4.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-2.4.0.ebuild index 67fe6ea35f20..a811d2a38bb1 100644 --- a/dev-python/pytest-xdist/pytest-xdist-2.4.0.ebuild +++ b/dev-python/pytest-xdist/pytest-xdist-2.4.0.ebuild @@ -33,9 +33,9 @@ BDEPEND=" distutils_enable_tests --install pytest python_test() { - # disable autoloading pytest-asyncio in nested pytest calls + # disable autoloading plugins in nested pytest calls local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - # since we disabled autoloading, force loading pytest-trio + # since we disabled autoloading, force loading necessary plugins local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail,pytest_forked distutils_install_for_testing diff --git a/dev-python/rdflib/rdflib-6.0.1.ebuild b/dev-python/rdflib/rdflib-6.0.1.ebuild index b66302a64589..43bc0b24a99f 100644 --- a/dev-python/rdflib/rdflib-6.0.1.ebuild +++ b/dev-python/rdflib/rdflib-6.0.1.ebuild @@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~riscv ~x86" IUSE="examples sqlite" RDEPEND=" diff --git a/dev-python/stestr/Manifest b/dev-python/stestr/Manifest index fca596b5bf1f..def344399bf1 100644 --- a/dev-python/stestr/Manifest +++ b/dev-python/stestr/Manifest @@ -1,2 +1,3 @@ DIST stestr-2.1.0.tar.gz 103501 BLAKE2B 6b000b8e3d0a27a18f19510dd8d5de8641223c18ad22a3f90b73619aa41bbe1a51bcedba604ec448282fa41e2ae93b61fdd0e72e603a39730a59400fc15ef007 SHA512 a99d0659da0ca2b86703529df9ef6d135578bd8374a2afcbd10bd96f24f5e6dd1dacd5929d96a083881f1db2a930b039d9045348a0298d84d2480c6c9a75d1f7 DIST stestr-3.2.0.tar.gz 118000 BLAKE2B 901654b53fdc9e5ab287b77b0a26ce531e3a167b2f5d0aa0765de170341bac8ebfbc4efcae39f672ca6dc6f7518913cb5e56d87faaef35c0b06287652c06edb1 SHA512 4f5e41c92518104b06f5b9717d59c214a8d87efe47fee199a602e71efd64e29c98711ffcf3b88cd00209946d0ab123c7ec5aa842e1d54bc65d83c8d70fa4898c +DIST stestr-3.2.1.tar.gz 118139 BLAKE2B dedb63767adfab26d837ce92762dcc44a482b1772aecbc31d12beb22f2c3c08368475cd110de7376f4df7fa8ce03c5b8e3b04436296ad4bd11c2fc3a4243695b SHA512 43187ca0d81e3b31e16ed60a1db561dc49c34f679594d11cad8cb0e658bf790af0b3d606bf99233a5767e2511675d3aedb6a476046d2f5483ffab05eaae393ed diff --git a/dev-python/stestr/stestr-3.2.1.ebuild b/dev-python/stestr/stestr-3.2.1.ebuild new file mode 100644 index 000000000000..3c8c2720e6b0 --- /dev/null +++ b/dev-python/stestr/stestr-3.2.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="A parallel Python test runner built around subunit" +HOMEPAGE="https://github.com/mtreinish/stestr" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] + dev-python/future[${PYTHON_USEDEP}] + >=dev-python/cliff-2.8.0[${PYTHON_USEDEP}] + >=dev-python/subunit-1.4.0[${PYTHON_USEDEP}] + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] + >=dev-python/pyyaml-3.10.0[${PYTHON_USEDEP}] + >=dev-python/voluptuous-0.8.9[${PYTHON_USEDEP}]" +BDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] + test? ( + >=dev-python/ddt-1.0.1[${PYTHON_USEDEP}] + )" + +python_test() { + distutils_install_for_testing + stestr init || die + stestr run || die "Tests failed with ${EPYTHON}" +} |
