diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-01-12 13:40:12 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-01-12 13:40:12 +0000 |
| commit | 0b00c63502240caf67b17715b317bbf574a0efb9 (patch) | |
| tree | bee09db9695b4d8d86d9aebe8906f0d56e63d252 /dev-python | |
| parent | b05206d929248a4ed5165d6895a75a4a6487ee3f (diff) | |
| download | baldeagleos-repo-0b00c63502240caf67b17715b317bbf574a0efb9.tar.gz baldeagleos-repo-0b00c63502240caf67b17715b317bbf574a0efb9.tar.xz baldeagleos-repo-0b00c63502240caf67b17715b317bbf574a0efb9.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/PySDL2/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/PySDL2/PySDL2-0.9.10.ebuild | 55 | ||||
| -rw-r--r-- | dev-python/boto3/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/boto3/boto3-1.20.33.ebuild | 59 | ||||
| -rw-r--r-- | dev-python/botocore/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/botocore/botocore-1.23.33.ebuild | 65 | ||||
| -rw-r--r-- | dev-python/fsspec/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/fsspec/fsspec-2022.01.0.ebuild | 48 | ||||
| -rw-r--r-- | dev-python/gmpy/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/gmpy/files/gmpy-2.1.0_beta5-failed-tests.patch | 132 | ||||
| -rw-r--r-- | dev-python/gmpy/files/gmpy-2.1.0_beta5-pyhash-nan.patch | 17 | ||||
| -rw-r--r-- | dev-python/gmpy/gmpy-2.1.0.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/gmpy/gmpy-2.1.0_beta5.ebuild | 45 | ||||
| -rw-r--r-- | dev-python/josepy/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/josepy/josepy-1.12.0.ebuild | 30 | ||||
| -rw-r--r-- | dev-python/nbclassic/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/nbclassic/nbclassic-0.3.5.ebuild | 43 | ||||
| -rw-r--r-- | dev-python/nuitka/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/nuitka/nuitka-0.6.19.1.ebuild | 48 |
19 files changed, 356 insertions, 196 deletions
diff --git a/dev-python/PySDL2/Manifest b/dev-python/PySDL2/Manifest index d7c14151b7ff..fbbe1cb19202 100644 --- a/dev-python/PySDL2/Manifest +++ b/dev-python/PySDL2/Manifest @@ -1 +1,2 @@ +DIST PySDL2-0.9.10.tar.gz 5228778 BLAKE2B 1aac6ac3a33dd5cb56aad7e9fdcfe5ec62f7b406b9779aa04f92ec4f051cbe5f03596de06aa2d5688724c811c86959edefe40dab1e39980a8410c6b09c10c5ab SHA512 86517734d356ba7685914ce6e4583c8131bc2e84bf2318f985119407d39794878aeb8fdb84464e1e35c3b4cc1569777239dedb16f4669169f9f0302dacd8689e DIST PySDL2-0.9.9.tar.gz 743302 BLAKE2B 1e9e0eeea48b838227d3fe6ea93311d445b1d3a15588f4b83d075d18306b419ba3512826e44c5e4ecc2aec59ad44da73372ec740ebf6106271fd0b77175b88d7 SHA512 52b469735b1229392ea2f73b2dfcf1e75cedf7582a488461be9b06bc072f82a5c8c559d345a0c3668829c0f8bb2996005d538465ed7d2a45fb8480001fd0ccce diff --git a/dev-python/PySDL2/PySDL2-0.9.10.ebuild b/dev-python/PySDL2/PySDL2-0.9.10.ebuild new file mode 100644 index 000000000000..26145c9f75d0 --- /dev/null +++ b/dev-python/PySDL2/PySDL2-0.9.10.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 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="Python (ctypes) bindings for SDL2 libraries" +HOMEPAGE="https://github.com/marcusva/py-sdl2 https://pypi.org/project/PySDL2/" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="|| ( public-domain CC0-1.0 ZLIB )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Optional deps: +# - dev-python/numpy, +# - dev-python/pillow, +# - media-libs/sdl2-* (loaded dynamically via ctypes). +# +# If a reverse dependency needs the specific module, it should +# explicitly depend on the optional module in question. You also +# probably need to explicitly require some media-libs/libsdl2 flags. +RDEPEND="media-libs/libsdl2" + +# Require all of SDL2 libraries and at least the most common subsystems +# for better test coverage. +DEPEND=" + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + media-libs/libsdl2[joystick,sound,video] + media-libs/sdl2-gfx + media-libs/sdl2-image[gif,jpeg,png,tiff,webp] + || ( + media-libs/sdl2-mixer[flac] + media-libs/sdl2-mixer[midi] + media-libs/sdl2-mixer[mod] + media-libs/sdl2-mixer[mp3] + media-libs/sdl2-mixer[opus] + ) + media-libs/sdl2-ttf + )" + +distutils_enable_tests pytest + +src_test() { + # from .travis.yml + local -x SDL_VIDEODRIVER=dummy + local -x SDL_AUDIODRIVER=dummy + local -x SDL_RENDER_DRIVER=software + + distutils-r1_src_test +} diff --git a/dev-python/boto3/Manifest b/dev-python/boto3/Manifest index aa550e9bc93f..1b1af704f3ae 100644 --- a/dev-python/boto3/Manifest +++ b/dev-python/boto3/Manifest @@ -6,4 +6,5 @@ DIST boto3-1.20.26.tar.gz 458382 BLAKE2B a2123120c07bc8e53004f6c76f6631f3363d5d8 DIST boto3-1.20.29.tar.gz 457663 BLAKE2B 8bb10de51a0250c3bf18b339ca6d9aa54985ebb0ff860862ced57ca1f0455f4c95834a689530e3bad043711735c22fee41e2e860602d7024bb8128ecaee7aa85 SHA512 c19e24a70d68919a2953a1f8060b519782a422183385276e0a439da2150fb20bf24e89153ecd9a134ee0fd631921569739aebf226815ca9c63244c8f2bc3c59a DIST boto3-1.20.31.tar.gz 458553 BLAKE2B 396acd8bbc47f76a0ba65da4b83f141f253690370f6cd36fcfad8b4ba1017889bb2c4c63bbcc8e3f817307cca666593072becde30b5739f38386f764a9f2c876 SHA512 0772959c735a6002431f171b6476398a1e1096301c20b5429504ed9a9bd6e3a2b6e95392504b3ea49ef942ab6c5210a0d26a0cdde6be52bb88d642ce776576b9 DIST boto3-1.20.32.tar.gz 459036 BLAKE2B 21aaba2f5f5db65edc3570e44082cf394429407c0431bdfc19866e530b48358909ab730ecb5b871dcbb5f4c087af43f53474a7dca6ce9ca84e78ba480f5cc819 SHA512 a50f0724f4c6ab8b0fc0b329909ff35126bbdc9c73da5927dd1259565b2e43e87c718bbf8b2dd5433e75b4d35b8094d3fc122163febbbe66b6175ecfeb81fad9 +DIST boto3-1.20.33.tar.gz 459654 BLAKE2B bf2090e6af9cad5f4e9e5178d30e109c63c403137f9656c22358bb672da7e0ca2e9f36585b5721f2a7bbb2d3d3027fb3942e055d3db78ede0b03f5b6a2e6ad78 SHA512 877c8e59686cd7ac940aa7fb1f2adc75a89e4ce5c74e7a999bebe80e80819c6f909ee8f9acca1c85a6a11f3b7a8ba39a41221ec54a8b99c412da9208a791f4b3 DIST boto3-1.20.5.tar.gz 439166 BLAKE2B c140e15e497e6cdf6b4b77bb99e0a0f5ac01d5b5793f8bfb210b52bbc09e39e6fe06a957951375e0795210dc1c3b2a0afd2f498bc88e449d9e6846f2b357f016 SHA512 2823466e4851684253d4ce42a8c34e5cbdad6d04c823040fe2cebdf0cffb14d5d3f40e28d57ebec14533fab04ba74f27c25f078ddb8791b8f52d0424e11b39fc diff --git a/dev-python/boto3/boto3-1.20.33.ebuild b/dev-python/boto3/boto3-1.20.33.ebuild new file mode 100644 index 000000000000..01dccd8375ab --- /dev/null +++ b/dev-python/boto3/boto3-1.20.33.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 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 ~riscv ~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 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() { + epytest tests/{functional,unit} +} diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest index a62d58a63558..7ace5549cf08 100644 --- a/dev-python/botocore/Manifest +++ b/dev-python/botocore/Manifest @@ -6,4 +6,5 @@ DIST botocore-1.23.26.tar.gz 8688841 BLAKE2B eec8481bef3096d7173281138e072364fb2 DIST botocore-1.23.29.tar.gz 8705067 BLAKE2B b5c2358a263f93b4808a2527b7ce8a1bbc36dcd44ebf5d987bdc39713d494cdca8dc7499081f54a03467c5b7e998897d651672b586c2430da99ac67e92c8c3c4 SHA512 e5d282c69a4180f3d8e0a496a703df36ccc79cf23a63549167267b59ee44dcd06b5e6a7aa0234728467b0787517687f5b5e75db3b9a1e9c35776902b772f409d DIST botocore-1.23.31.tar.gz 8706949 BLAKE2B 2e31bc09173a93806fe045e5217defcf17b624d6e9ff543add0eb9183c99faac40c14a8b7d71a2ec71b5983df572cadd2d098155c8c9f5abeceef80c17c4c35b SHA512 7440740c05b8f009955b6627b82f8f955d907d529923457b19f1a251b701fc7cba2dd19a77eee1fce220745d93f19f4c42f146772ecd46f3ea0c93f63047086e DIST botocore-1.23.32.tar.gz 8710235 BLAKE2B 278189ae1ee9887e62092344543b6431425640c90c243161cc34448f5b4ed9cce624042bd21d445150f09e695608361633554d535aaaf1850b5987111a43657d SHA512 f33c9818d3985a0334d5c2cf2f9ec9aa34834a73dfc73f8e9298e59432141f6792acecf0380cb8d607cdd12156f182ee130952390d8f0e808cca12659317b2e3 +DIST botocore-1.23.33.tar.gz 8712535 BLAKE2B 97064bfe24db14e49ff37b515549a2294ed2fbba82f36cf4d5281db27add007c8524058cb208bcf168add9e739bb2d51e7980295938ac6ff6ff603ffd0cfccee SHA512 7373a9cac5efb12898ac1665b74a5eb3693d5e5defd55bc2972bc70cbfcdf69672a8cb4b8d0a6b2bfbc59e789fedea09014ac47ba9ef6af8cc038471330850f0 DIST botocore-1.23.5.tar.gz 8374467 BLAKE2B 467092e7d8aa5ccb756132669049865445a47205913964c1c944b20caaf100b1efdd1bf3af9c5416ff079b487e6d4d08ffe6208e2b352d09655cc5be21c88739 SHA512 6afca19b724f9019f21e5993ce970d605b95d31c1a4e969ec1b4080510a5a120b3fa0cfd5ade973a9203bd6b7983a3dbca2f7a03108a9167392efd60d5e2fe9b diff --git a/dev-python/botocore/botocore-1.23.33.ebuild b/dev-python/botocore/botocore-1.23.33.ebuild new file mode 100644 index 000000000000..34dcbcdf2d0b --- /dev/null +++ b/dev-python/botocore/botocore-1.23.33.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 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 ~riscv ~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/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 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 + ) + + distutils_install_for_testing --via-venv + epytest tests/{functional,unit} +} diff --git a/dev-python/fsspec/Manifest b/dev-python/fsspec/Manifest index d737bd2c6452..634b51cb64a4 100644 --- a/dev-python/fsspec/Manifest +++ b/dev-python/fsspec/Manifest @@ -1 +1,2 @@ DIST filesystem_spec-2021.11.1.tar.gz 325020 BLAKE2B a5d1a483bb446a6241e34d4d6f505b46657d837209ff259c6638843205b606a4f6823b9b2510c88fea2e4adec01aabd36df1ceb188444b8786b4acb4e34e33f1 SHA512 a7985e46d7ac989908a8d5bfdb47baa49d84e220fe16774db029d25408cf9f3d956ab468bb351fc956ca388b8e7d0054151fa33e380d50f0e1d8303bbed15890 +DIST filesystem_spec-2022.01.0.tar.gz 325470 BLAKE2B 1a6dccad133a449ba9b78516f968586a0f300e97150a6aa887f2f65fafe6e2bae708620ef185789024a7248877405d736839292011f3db2221c119fb80bbb5ac SHA512 50e36c9aded9ee9824694bad563b8e92ee564c6fb6fc30d3a51b8b2e8b4a1e5f605fdbaff00eefb354b0201cce4bced0ed95b48817c5ef15ad1f09965d311ac0 diff --git a/dev-python/fsspec/fsspec-2022.01.0.ebuild b/dev-python/fsspec/fsspec-2022.01.0.ebuild new file mode 100644 index 000000000000..4f6f47a62ac6 --- /dev/null +++ b/dev-python/fsspec/fsspec-2022.01.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 2020-2022 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=filesystem_spec-${PV} +DESCRIPTION="A specification that python filesystems should adhere to" +HOMEPAGE="https://github.com/fsspec/filesystem_spec/ + https://pypi.org/project/fsspec/" +SRC_URI=" + https://github.com/fsspec/filesystem_spec/archive/${PV}.tar.gz + -> ${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +BDEPEND=" + dev-python/versioneer[${PYTHON_USEDEP}] + test? ( + dev-python/aiohttp[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-vcs/git + )" + +distutils_enable_tests pytest + +src_test() { + git config --global user.email "you@example.com" || die + git config --global user.name "Your Name" || die + distutils-r1_src_test +} + +EPYTEST_DESELECT=( + fsspec/tests/test_spec.py::test_find +) + +EPYTEST_IGNORE=( + # sftp and smb require server started via docker + fsspec/implementations/tests/test_dbfs.py + fsspec/implementations/tests/test_sftp.py + fsspec/implementations/tests/test_smb.py +) diff --git a/dev-python/gmpy/Manifest b/dev-python/gmpy/Manifest index 011257bc41ed..19a0ff522567 100644 --- a/dev-python/gmpy/Manifest +++ b/dev-python/gmpy/Manifest @@ -1,4 +1,3 @@ DIST gmpy2-2.1.0.tar.gz 258571 BLAKE2B 942786c9a2e1220ecad15e97c26cbea0b93c7719e5081f6defe7b71d43be0c4ce259355eb34fa013a0b90679022535a271f26425c615e65103d3a2705b27ec8e SHA512 0d62354a1446708548b8dfdc6d7f8000151eb5901251f87f935144f615fd586726617c7a2bd05b91dc3e2a0cfc8797cd81d60afb8c705da153b537345eaddb34 -DIST gmpy2-2.1.0b5.tar.gz 264742 BLAKE2B 1dd6dc66f9ec8cb2738f449112aa44feb40ba983f6da5f7a0760016e79ffed19037d77d47c0c0b816f9088725207e50ba3bd423349ed4c744ff03059c4c6a19a SHA512 7dc647642d7b61af77258881a7b91ab967dd11a86ba88ff5b7fd41cd4c999d2bb4cfe586511e79cc5f21f0f00d0823bbd2620d69df051c8cead15090423a657a DIST gmpy2-2.1.1.tar.gz 258607 BLAKE2B 3c070d101066fb0ba5da61b8c1eacf6bbd334aed987161091f31bccc1e836430cb844e0fdcb5017718341761f54c0fc3290e37ace28a5c4fc07930a194e77256 SHA512 37a08b546476f1b49cdfdb04b3a6d4da266615f789eb03896d5e2dd326c91f0fb9523504414b0de30e7265840e2ef77362a5ff011906952100c8b1da4d88d709 DIST gmpy2-2.1.2.tar.gz 258445 BLAKE2B 5fd89478bb7c48c317a7af74fd872e5a9c1141f8f23c110aba7298d1a325caa13e24f1a2e601d6b3c6f6af30d60505f9161a03def16df59dddabe611fb600ef4 SHA512 abfeb0d8a155235e3aa797ca7b34ab6947f0714273e9d381167a9f6273bad34689e1985c139080b146e072b5bfbb4fa2b937566a14f4b94cc09ed21b3f2082b7 diff --git a/dev-python/gmpy/files/gmpy-2.1.0_beta5-failed-tests.patch b/dev-python/gmpy/files/gmpy-2.1.0_beta5-failed-tests.patch deleted file mode 100644 index 38a98579409a..000000000000 --- a/dev-python/gmpy/files/gmpy-2.1.0_beta5-failed-tests.patch +++ /dev/null @@ -1,132 +0,0 @@ -diff --git a/src/gmpy2_mpz.c b/src/gmpy2_mpz.c -index e5087fa..66a297a 100644 ---- a/src/gmpy2_mpz.c -+++ b/src/gmpy2_mpz.c -@@ -69,7 +69,7 @@ static PyNumberMethods GMPy_MPZ_number_methods = - (binaryfunc) GMPy_MPZ_ISub_Slot, /* nb_inplace_subtract */ - (binaryfunc) GMPy_MPZ_IMul_Slot, /* nb_inplace_multiply */ - (binaryfunc) GMPy_MPZ_IRem_Slot, /* nb_inplace_remainder */ -- (ternaryfunc) GMPy_MPZ_IPow_Slot, /* nb_inplace_power */ -+ 0, /* nb_inplace_power */ - (binaryfunc) GMPy_MPZ_ILshift_Slot, /* nb_inplace_lshift */ - (binaryfunc) GMPy_MPZ_IRshift_Slot, /* nb_inplace_rshift */ - 0, /* nb_inplace_and */ -@@ -113,7 +113,7 @@ static PyNumberMethods GMPy_MPZ_number_methods = - (binaryfunc) GMPy_MPZ_IMul_Slot, /* nb_inplace_multiply */ - 0, /* nb_inplace_divide */ - (binaryfunc) GMPy_MPZ_IRem_Slot, /* nb_inplace_remainder */ -- (ternaryfunc) GMPy_MPZ_IPow_Slot, /* nb_inplace_power */ -+ 0, /* nb_inplace_power */ - (binaryfunc) GMPy_MPZ_ILshift_Slot, /* nb_inplace_lshift */ - (binaryfunc) GMPy_MPZ_IRshift_Slot, /* nb_inplace_rshift */ - 0, /* nb_inplace_and */ -@@ -229,4 +229,3 @@ static PyTypeObject MPZ_Type = - GMPy_MPZ_NewInit, /* tp_new */ - 0, /* tp_free */ - }; -- -diff --git a/src/gmpy2_pow.c b/src/gmpy2_pow.c -index ddcb43a..cf96470 100644 ---- a/src/gmpy2_pow.c -+++ b/src/gmpy2_pow.c -@@ -98,8 +98,11 @@ GMPy_Integer_Pow(PyObject *b, PyObject *e, PyObject *m, CTXT_Object *context) - unsigned long el; - - if (mpz_sgn(tempe->z) < 0) { -- VALUE_ERROR("pow() exponent cannot be negative"); -- goto err; -+ Py_DECREF((PyObject*)result); -+ Py_DECREF((PyObject*)tempb); -+ Py_DECREF((PyObject*)tempe); -+ -+ return GMPy_Real_Pow(b, e, m, context); - } - - /* Catch -1, 0, 1 getting raised to large exponents. */ -diff --git a/src/gmpy2_xmpz_inplace.c b/src/gmpy2_xmpz_inplace.c -index bbcd977..e5bbf09 100644 ---- a/src/gmpy2_xmpz_inplace.c -+++ b/src/gmpy2_xmpz_inplace.c -@@ -271,14 +271,14 @@ GMPy_XMPZ_IPow_Slot(PyObject *self, PyObject *other, PyObject *mod) - mp_bitcnt_t exp; - - exp = mp_bitcnt_t_From_Integer(other); -- if (exp == (mp_bitcnt_t)(-1) && PyErr_Occurred()) { -- PyErr_Clear(); -- Py_RETURN_NOTIMPLEMENTED; -- } -+ if (exp == (mp_bitcnt_t)(-1) && PyErr_Occurred()) -+ return NULL; - - mpz_pow_ui(MPZ(self), MPZ(self), exp); - Py_INCREF((PyObject*)self); - return (PyObject*)self; -+ -+ Py_RETURN_NOTIMPLEMENTED; - } - - /* Inplace xmpz and. -@@ -346,4 +346,3 @@ GMPy_XMPZ_IIor_Slot(PyObject *self, PyObject *other) - - Py_RETURN_NOTIMPLEMENTED; - } -- -diff --git a/test/test_gmpy2_mpz_inplace.txt b/test/test_gmpy2_mpz_inplace.txt -index e7a8b96..147118c 100644 ---- a/test/test_gmpy2_mpz_inplace.txt -+++ b/test/test_gmpy2_mpz_inplace.txt -@@ -147,18 +147,16 @@ Test ipow operator - mpz(25) - >>> x **= xmpz(2); x - mpz(625) -->>> x **= -2 --Traceback (most recent call last): -- File "<stdin>", line 1, in <module> --TypeError: unsupported operand type(s) for ** or pow(): 'mpz' and 'int' -+>>> x **= -2; x -+mpfr('2.5600000000000001e-06') -+>>> x = mpz(625) - >>> x **= 2; x - mpz(390625) -->>> x **= mpfr(2) --Traceback (most recent call last): -- File "<stdin>", line 1, in <module> --TypeError: unsupported operand type(s) for ** or pow(): 'mpz' and 'mpfr' -->>> 1 --1 -+>>> x **= mpfr(2); x -+mpfr('152587890625.0') -+>>> x = mpz(390625) -+>>> x **= mpfr(-2); x -+mpfr('6.5535999999999999e-12') - - Test iand operator - ------------------ -diff --git a/test/test_gmpy2_pow.txt b/test/test_gmpy2_pow.txt -index 89bd876..d5b1f45 100644 ---- a/test/test_gmpy2_pow.txt -+++ b/test/test_gmpy2_pow.txt -@@ -15,9 +15,7 @@ mpz(25) - >>> ctx.pow(z1, z2) - mpz(25) - >>> z1 ** -z2 --Traceback (most recent call last): -- File "<stdin>", line 1, in <module> --ValueError: pow() exponent cannot be negative -+mpfr('0.040000000000000001') - >>> z1 ** 0 - mpz(1) - >>> mpz(0) ** 32 -diff --git a/test/test_gmpy2_xmpz_inplace.txt b/test/test_gmpy2_xmpz_inplace.txt -index 94f86b7..c02f966 100644 ---- a/test/test_gmpy2_xmpz_inplace.txt -+++ b/test/test_gmpy2_xmpz_inplace.txt -@@ -135,7 +135,7 @@ xmpz(625) - >>> x **= -2 - Traceback (most recent call last): - File "<stdin>", line 1, in <module> --TypeError: unsupported operand type(s) for ** or pow(): 'xmpz' and 'int' -+ValueError: a non-negative value is required - >>> x **= 2; x - xmpz(390625) - >>> x **= mpfr(2) diff --git a/dev-python/gmpy/files/gmpy-2.1.0_beta5-pyhash-nan.patch b/dev-python/gmpy/files/gmpy-2.1.0_beta5-pyhash-nan.patch deleted file mode 100644 index 9f59a6096fcd..000000000000 --- a/dev-python/gmpy/files/gmpy-2.1.0_beta5-pyhash-nan.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/src/gmpy2_hash.c b/src/gmpy2_hash.c -index f276a42..1d2bfd1 100644 ---- a/src/gmpy2_hash.c -+++ b/src/gmpy2_hash.c -@@ -147,7 +147,12 @@ _mpfr_hash(mpfr_t f) - } - } - else { -+#if PY_VERSION_HEX >= 0x030A00A0 -+ // Python 3.10 -+ return _Py_HashPointer(f); -+#else - return _PyHASH_NAN; -+#endif - } - } - diff --git a/dev-python/gmpy/gmpy-2.1.0.ebuild b/dev-python/gmpy/gmpy-2.1.0.ebuild index c208d08132b4..6545dfed6df4 100644 --- a/dev-python/gmpy/gmpy-2.1.0.ebuild +++ b/dev-python/gmpy/gmpy-2.1.0.ebuild @@ -16,7 +16,7 @@ S="${WORKDIR}"/${MY_P} LICENSE="LGPL-3+" SLOT="2" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" RDEPEND=" >=dev-libs/mpc-1.0.2:= diff --git a/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild b/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild deleted file mode 100644 index 209151384b40..000000000000 --- a/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# 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 - -MY_PN="${PN}2" -MY_P="${MY_PN}-${PV/_beta/b}" - -DESCRIPTION="Python bindings for GMP, MPC, MPFR and MPIR libraries" -HOMEPAGE="https://github.com/aleaxit/gmpy" -SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz" -S="${WORKDIR}"/${MY_P} - -LICENSE="LGPL-3+" -SLOT="2" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" - -RDEPEND=" - >=dev-libs/mpc-1.0.2:= - >=dev-libs/mpfr-3.1.2:= - dev-libs/gmp:0= -" -DEPEND="${RDEPEND}" - -PATCHES=( - # In python 3.10 _PyHASH_NAN was removed and its usage replaced with _Py_HashPointer - # see https://github.com/python/cpython/blob/3.10/Python/pyhash.c - # https://github.com/aleaxit/gmpy/pull/297 - "${FILESDIR}"/${P}-pyhash-nan.patch - # The tests program asks for input when running, disable that - "${FILESDIR}"/${P}-test-input.patch - # Based on this commit: - # https://github.com/aleaxit/gmpy/commit/db7ce2ef46fab84e7b9c32b05725e9b02e8cf206 - "${FILESDIR}"/${P}-failed-tests.patch -) - -distutils_enable_sphinx docs - -python_test() { - cd test || die - "${EPYTHON}" runtests.py || die "tests failed under ${EPYTHON}" -} diff --git a/dev-python/josepy/Manifest b/dev-python/josepy/Manifest index 722fd8a368ff..faa4d4dcde8b 100644 --- a/dev-python/josepy/Manifest +++ b/dev-python/josepy/Manifest @@ -1 +1,2 @@ DIST josepy-1.11.0.tar.gz 59198 BLAKE2B 862030d501f1c2316ef30800fda7dbf7dd36b9e49434605b3dc7c329d4ff2d405fc8483ae8a8a1346af60a1e80c018af4f0c17a3d5d00881da03c3eff561c81b SHA512 06aed9534434a94f7b922270221aaa85feb4ba9d836460303ecb7fea1c5679d557a6dad6d32bbd1a05ccc4855318fb56752ebea91498bb8c36884cf7b3d01859 +DIST josepy-1.12.0.tar.gz 59205 BLAKE2B 3ead71c2eb60a9bcc45615f85435f616bf6fe16c75d7e34ae5bd0f418b5b71b6ea03388198a371765e497aa29419efd9fbb2615d4546a5a8a9704acf7c9a70dd SHA512 7a5257d4a75feed65ff3abfd472e8f1c9cc81b62e27365d776d0f25e1efd94ae46374060ea463b9f04fe5e9577672bf2ab8dc8d6371cb8d01a4765921930e01b diff --git a/dev-python/josepy/josepy-1.12.0.ebuild b/dev-python/josepy/josepy-1.12.0.ebuild new file mode 100644 index 000000000000..c7dff206c82a --- /dev/null +++ b/dev-python/josepy/josepy-1.12.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="JOSE protocol implementation in Python" +HOMEPAGE="https://github.com/certbot/josepy" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/cryptography-0.8[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_prepare_all() { + # Remove coverage/flake8 options + sed -i -e '/^addopts =/d' -e '/^flake8-ignore/d' pytest.ini || die + distutils-r1_python_prepare_all +} diff --git a/dev-python/nbclassic/Manifest b/dev-python/nbclassic/Manifest index 0baa70ee5d41..3507c7f03168 100644 --- a/dev-python/nbclassic/Manifest +++ b/dev-python/nbclassic/Manifest @@ -1,2 +1,3 @@ DIST nbclassic-0.3.3.tar.gz 21924 BLAKE2B 382d41c2eeb6ffc9588b80c0bc84e7e8b581fc36f2628d46577ca0a6956c50086a7b9a3bccb1c318fc60169a0367c8c5e1c6bba56b0a35fa063768f8fa580d52 SHA512 74b765c842351b2a93e92850193db7d3ef1a0b11c0c25a9adb2d1b8f7a6f88ae083cc700cda004d874340443632e738a24d26349d661613a707ad6cc42abd709 DIST nbclassic-0.3.4.tar.gz 22308 BLAKE2B e5adddbd89f22ea1391149d97484f34c3f4d1a7601e471859834a06f5294868bbb23e96a536e792599f5743b68cb72bb91c88ba1e79d4fb4dc0f1ad6ee78041f SHA512 fe18a3523f7cf6bb411fe2e78f6bd0313e18a8a63a51649c99bdfc11365e2d775b8e6b879da1326c5389ab1a69e52a267cafa905348fead74b24a1d5d65e8646 +DIST nbclassic-0.3.5.tar.gz 22668 BLAKE2B d7e74e1274294e9d0d8888d0ccb2718fd02d73eca22d29b3b944a1886f4b7dfd8c7ee893239856790f0b7e84e3c9102c27fa12cd06be8a4015b0197e3516d41a SHA512 a3b5b0b4f11be93adee4f8669127de0b1a5c9d38fedefbb924b7b446db9f0e7e0987b17f62f7d831d7a2dd87de605a2300973735a4d2b8cefbbcbab8403a3d1c diff --git a/dev-python/nbclassic/nbclassic-0.3.5.ebuild b/dev-python/nbclassic/nbclassic-0.3.5.ebuild new file mode 100644 index 000000000000..71f48f426d89 --- /dev/null +++ b/dev-python/nbclassic/nbclassic-0.3.5.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 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="Jupyter Notebook as a Jupyter Server Extension" +HOMEPAGE="https://jupyter.org/" +SRC_URI="https://github.com/jupyterlab/nbclassic/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/jupyter_server[${PYTHON_USEDEP}] + <dev-python/notebook-7[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/pytest-console-scripts[${PYTHON_USEDEP}] + dev-python/pytest-tornasync[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # Defining 'pytest_plugins' in a non-top-level conftest is no longer supported: + mv ${PN}/conftest.py . || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + # move /usr/etc stuff to /etc + mv "${ED}/usr/etc" "${ED}/etc" || die +} diff --git a/dev-python/nuitka/Manifest b/dev-python/nuitka/Manifest index ffea249d730f..5dd240e83c66 100644 --- a/dev-python/nuitka/Manifest +++ b/dev-python/nuitka/Manifest @@ -7,4 +7,5 @@ DIST Nuitka-0.6.18.4.tar.gz 3690751 BLAKE2B 209a7b0d981f9ba777c53b80708e7f5b09e6 DIST Nuitka-0.6.18.5.tar.gz 3692319 BLAKE2B f60d1516cad1f82c75d63164d93072e6841f092e71bdfadfc713ef4d10838d33c786094f8e326c413bd63cdd561ac6af7a265344cafa9ab45eece630e4e0ce24 SHA512 4dcccf492b0858482b62736478aec0566f11fc8c548ca478b6055b12d694ca1736f495e11c6e4240281fbb11685f043393a1db839dae590dee821a98b4712c87 DIST Nuitka-0.6.18.6.tar.gz 3674413 BLAKE2B 68f163071ff451a91bcdd9b556ea3732c3c3997df61addb190a39d40c3a25ce266596e45f5e618369a8db913ee45746a63b9eff675671afc77df8d5247bc3a18 SHA512 e0324f03cd1a5dcae50a54d3a9ffba11db6b10044d855e18a5678ce3469620014be087f1e93f7654c5e9117dacd39970f28284424f91f7a2d5ffd72fda9f3f92 DIST Nuitka-0.6.18.tar.gz 3687825 BLAKE2B f2c5655c610083065cc205c0a92ff9c57edfc87a479592f435c3dd194e2d6d71ff0ee9866bc97f222b3936190a4420e7d69cf9413b5b2a5e9439448dda82004f SHA512 df4c81d890ce9c5dc24e648f65137d4bb91dcb92917859976a3400ace6c297f985cee4932b50cb3c2aedb2eaa806be7529a98a75a32fe3f59ec718ed3281003b +DIST Nuitka-0.6.19.1.tar.gz 3727050 BLAKE2B 70cde9f6c7254cc229dc534736c1445f9fc813a1463705e0116021107c6b6909c9ac1e35bf7b0b452cd6b6d23b2c4e4103e8427c44d6d3c3273f7f70ad5daeee SHA512 83c5a6c2c547f139cd947c804f646b37f0fbaaa44a53b1cc42366170f91de138d63b5eeb2fa2e37ba9a24cb34c1faeb8e86c09cb08e829aa6d3607931c2eebbf DIST Nuitka-0.6.19.tar.gz 3739123 BLAKE2B c2e9a6417ff65927c3246849d614fdebb8bcf323b6496dae81f7cef3ab86a22ad21d3fe3eb19c74ea7f228310e3b1b985cea56201efe71c1b0d8ff64998973c0 SHA512 2d8f8c0d95f6d85c7969879ddbe2375ae190bfc1466a21c442e9e109ed7759ecf0bdcc2f29ec8fed5462df52e1b1e69a0e10574d8e7f52b1dfef7f7ae9626c75 diff --git a/dev-python/nuitka/nuitka-0.6.19.1.ebuild b/dev-python/nuitka/nuitka-0.6.19.1.ebuild new file mode 100644 index 000000000000..2c7af01367e2 --- /dev/null +++ b/dev-python/nuitka/nuitka-0.6.19.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 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 flag-o-matic optfeature + +DESCRIPTION="Python to native compiler" +HOMEPAGE="https://www.nuitka.net" +SRC_URI="https://nuitka.net/releases/${P^}.tar.gz" +S="${WORKDIR}/${P^}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-util/scons[${PYTHON_USEDEP}]" +BDEPEND=" + ${RDEPEND} + test? ( dev-util/ccache ) +" + +DOCS=( Changelog.pdf Developer_Manual.pdf README.pdf ) + +distutils-r1_src_prepare() { + # remove vendored version of SCons that is Python2 only + # this should be removed when upstream removes support for Python2 + rm -vR "${S}/${PN}/build/inline_copy/lib/scons-2.3.2/SCons" || die + eapply_user +} + +python_install() { + distutils-r1_python_install + python_optimize + doman doc/nuitka3.1 doc/nuitka3-run.1 +} + +python_test() { + append-ldflags -Wl,--no-warn-search-mismatch + ./tests/basics/run_all.py search || die +} + +pkg_postinst() { + optfeature "support for stand-alone executables" app-admin/chrpath +} |
