diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-05-22 13:22:50 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-05-22 13:22:50 +0000 |
| commit | 4381a25db125aae08fc6d5d9ceeb18a6310d09c2 (patch) | |
| tree | dcc3a3557d98ffcdd51efd04828c14361d98dc45 /dev-python | |
| parent | 057b68c5c19e8d37c60a16663b9da97542e7432a (diff) | |
| download | baldeagleos-repo-4381a25db125aae08fc6d5d9ceeb18a6310d09c2.tar.gz baldeagleos-repo-4381a25db125aae08fc6d5d9ceeb18a6310d09c2.tar.xz baldeagleos-repo-4381a25db125aae08fc6d5d9ceeb18a6310d09c2.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
64 files changed, 784 insertions, 94 deletions
diff --git a/dev-python/ansible-compat/Manifest b/dev-python/ansible-compat/Manifest index 00a8554ba071..3383b893df0c 100644 --- a/dev-python/ansible-compat/Manifest +++ b/dev-python/ansible-compat/Manifest @@ -4,3 +4,4 @@ DIST ansible-compat-4.0.0.tar.gz 62675 BLAKE2B 9c384a25729c2c1f72e806b4df6172e18 DIST ansible-compat-4.0.1.tar.gz 63728 BLAKE2B 51b6956059394e1e29d416113f6a924032cc6435780265c2595f1b0776477727c865c74afa25fc2527777a5d8ea74aead086293934cdc099966b875a96c5789f SHA512 a2edc46a472e6f99cd0231e453742780c5ae8713768bfda4218ae3d6979c38779ba8c5ec491813550a6b3242ef04e5de2c916c9538fcf5b018e7500fdf18bc4d DIST ansible-compat-4.0.2.tar.gz 63771 BLAKE2B bcf66825c52de63172f7d36b696e136cc203201743e482d1aa78033664de49120a1304c6397e28dc56205fbe1b5f382f86852bc735cd879151df1db3ebaa1c1b SHA512 6332e12dc123bea6307a5306bb44357507e8c60f5699e8a09a39f9cfe44c649cfd8150b3a4687b47bc62bd95a7bdc4801cac01e10870df451f23ac2e278414e5 DIST ansible-compat-4.0.4.tar.gz 65116 BLAKE2B 3f96e052cb9ba0352884fe1cfeacf9a1e5a7bbee715d08c054df49112966751067eb08f32b0598a8559e200fa9c3a619b58b854699342b6185bd9579bc75cbf2 SHA512 b13bc3d7a29b2caebfddb7a2311bfb8ad94062019238ed5a8a22fe9de1c00d25426694755cdbf289094db7fdfd88248fcf3e17e9aef9601046ef33c25d6894e6 +DIST ansible-compat-4.0.5.tar.gz 65711 BLAKE2B f40e87012dba936ba8b6f204559484ff089034123da4c355f997d7cec857efc64adcd0a4ec9abe021a428f61c692b13a3e3146f78a1896689c61764286e03719 SHA512 c08bbbcbef7e49001009cbd691dc226626f1392dfc5a5be89166da0be91c8d5794a2e6a158b11787320a1dcbe24c85eedee28596b0fc27d0a3c2a499286f5efc diff --git a/dev-python/ansible-compat/ansible-compat-4.0.2.ebuild b/dev-python/ansible-compat/ansible-compat-4.0.2.ebuild index bbea175e5664..a7845cd7c34b 100644 --- a/dev-python/ansible-compat/ansible-compat-4.0.2.ebuild +++ b/dev-python/ansible-compat/ansible-compat-4.0.2.ebuild @@ -17,7 +17,7 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~riscv" +KEYWORDS="amd64 ~riscv" RDEPEND=" >=app-admin/ansible-core-2.12[${PYTHON_USEDEP}] diff --git a/dev-python/ansible-compat/ansible-compat-4.0.5.ebuild b/dev-python/ansible-compat/ansible-compat-4.0.5.ebuild new file mode 100644 index 000000000000..bbea175e5664 --- /dev/null +++ b/dev-python/ansible-compat/ansible-compat-4.0.5.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Contains functions that facilitate working with various versions of Ansible" +HOMEPAGE=" + https://pypi.org/project/ansible-compat/ + https://github.com/ansible/ansible-compat/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~riscv" + +RDEPEND=" + >=app-admin/ansible-core-2.12[${PYTHON_USEDEP}] + >=dev-python/jsonschema-4.6.0[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + >=dev-python/subprocess-tee-0.4.1[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools-scm-7.0.0[${PYTHON_USEDEP}] + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-plus[${PYTHON_USEDEP}] + ) +" + +# All these tests attempt to connect to galaxy.ansible.com +EPYTEST_DESELECT=( + test/test_runtime.py::test_install_collection + test/test_runtime.py::test_install_collection_dest + test/test_runtime.py::test_prepare_environment_with_collections + test/test_runtime.py::test_prerun_reqs_v1 + test/test_runtime.py::test_prerun_reqs_v2 + test/test_runtime.py::test_require_collection_no_cache_dir + test/test_runtime.py::test_require_collection_wrong_version + test/test_runtime.py::test_require_collection + test/test_runtime.py::test_upgrade_collection + test/test_runtime_example.py::test_runtime +) + +distutils_enable_tests pytest diff --git a/dev-python/antlr4-python3-runtime/Manifest b/dev-python/antlr4-python3-runtime/Manifest index c12e2d983bdb..d6986f79b86b 100644 --- a/dev-python/antlr4-python3-runtime/Manifest +++ b/dev-python/antlr4-python3-runtime/Manifest @@ -1 +1,2 @@ DIST antlr-4.12.0.gh.tar.gz 4408352 BLAKE2B 9a7ba9149c459e5b6a7eec750d1623f10be4aa119479d93dbf7f3955176013ac3e56d3a95399460ed5170cf2bf01fff586852a84d2cb86fe04e89846211e39cd SHA512 2217509e8766ceee7b9e5fdee3a9972b1f42fb442bdf3e3c0a8027f88bc49508386adb5ea8a02c982ef2176e2b5e60669746a387ec426682d7f43bca28aa4b6f +DIST antlr4-4.13.0.gh.tar.gz 4317288 BLAKE2B 7971b12a3d3fe50f50b9888a4de9cb7fdc28140c95a29fe00538a48da3434ec1c38643e7a1eb19457e0363b7e57747f5597081af59f653f7108f26f6515d8f35 SHA512 947ecca28712aa4dd98d7b7e0753e91881e55642f7951ca65a576b94db87440767a1b93d08e82db69ad527ee28bf89f0b2f9c0aaa604a999a7e48c163764ee12 diff --git a/dev-python/antlr4-python3-runtime/antlr4-python3-runtime-4.13.0.ebuild b/dev-python/antlr4-python3-runtime/antlr4-python3-runtime-4.13.0.ebuild new file mode 100644 index 000000000000..31dcc7c87016 --- /dev/null +++ b/dev-python/antlr4-python3-runtime/antlr4-python3-runtime-4.13.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 + +MY_P=antlr4-${PV} +DESCRIPTION="Python 3 runtime for ANTLR" +HOMEPAGE=" + https://www.antlr.org/ + https://github.com/antlr/antlr4/ + https://pypi.org/project/antlr4-python3-runtime/ +" +SRC_URI=" + https://github.com/antlr/antlr4/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S="${WORKDIR}/${MY_P}/runtime/Python3" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +python_test() { + "${EPYTHON}" tests/run.py -v || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/asyncpg/asyncpg-0.26.0.ebuild b/dev-python/asyncpg/asyncpg-0.26.0.ebuild index 3ff4d663da2d..aab248ad3574 100644 --- a/dev-python/asyncpg/asyncpg-0.26.0.ebuild +++ b/dev-python/asyncpg/asyncpg-0.26.0.ebuild @@ -5,11 +5,10 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) # doesn't build with pypy3 DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="A fast PostgreSQL Database Client Library for Python/asyncio" HOMEPAGE="https://github.com/MagicStack/asyncpg" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" diff --git a/dev-python/azure-storage-blob/azure-storage-blob-12.14.1.ebuild b/dev-python/azure-storage-blob/azure-storage-blob-12.14.1.ebuild index 14da37ddb101..10b7e8ca4c26 100644 --- a/dev-python/azure-storage-blob/azure-storage-blob-12.14.1.ebuild +++ b/dev-python/azure-storage-blob/azure-storage-blob-12.14.1.ebuild @@ -5,14 +5,15 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 +PYPI_NO_NORMALIZE=1 +inherit distutils-r1 pypi DESCRIPTION="Microsoft Azure Blob Storage Client Library for Python" HOMEPAGE=" https://pypi.org/project/azure-storage-blob/ https://github.com/Azure/azure-sdk-for-python " -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" +SRC_URI="$(pypi_sdist_url --no-normalize ${PN} ${PV} .zip)" LICENSE="MIT" SLOT="0" diff --git a/dev-python/browserstack-local-python/browserstack-local-python-1.2.3.ebuild b/dev-python/browserstack-local-python/browserstack-local-python-1.2.3.ebuild index 955bc8508e15..790e4a30b546 100644 --- a/dev-python/browserstack-local-python/browserstack-local-python-1.2.3.ebuild +++ b/dev-python/browserstack-local-python/browserstack-local-python-1.2.3.ebuild @@ -3,19 +3,17 @@ EAPI=8 -MYP="${P/-python/}" -MYPN="${PN/-python/}" +PYPI_PN="${PN/-python/}" +PYPI_NO_NORMALIZE=1 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="Python bindings for BrowserStack Local" HOMEPAGE=" https://github.com/browserstack/browserstack-local-python https://pypi.org/project/browserstack-local/ " -SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz" -S="${WORKDIR}/${MYP}" KEYWORDS="~amd64" LICENSE="MIT" SLOT="0" diff --git a/dev-python/cx-oracle/cx-oracle-8.3.0.ebuild b/dev-python/cx-oracle/cx-oracle-8.3.0.ebuild index 90f1fcf8562f..ab3093084b77 100644 --- a/dev-python/cx-oracle/cx-oracle-8.3.0.ebuild +++ b/dev-python/cx-oracle/cx-oracle-8.3.0.ebuild @@ -4,18 +4,16 @@ EAPI="8" PYTHON_COMPAT=( python3_{7,8,9,10,11} ) +PYPI_PN="cx_Oracle" +PYPI_NO_NORMALIZE=1 -inherit distutils-r1 - -MY_PN="cx_Oracle" -MY_P=${MY_PN}-${PV} +inherit distutils-r1 pypi DESCRIPTION="Python interface to Oracle" HOMEPAGE=" https://oracle.github.io/python-cx_Oracle/ https://pypi.org/project/cx-Oracle/ " -SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" LICENSE="BSD" SLOT="0" @@ -29,8 +27,6 @@ RESTRICT="test" DEPEND="dev-db/oracle-instantclient" RDEPEND="${DEPEND}" -S=${WORKDIR}/${MY_P} - python_prepare_all() { # do not install LICENSE and README to /usr/ sed -i -e '/data_files/d' setup.py || die diff --git a/dev-python/decopatch/decopatch-1.4.9.ebuild b/dev-python/decopatch/decopatch-1.4.9.ebuild index 4512c93df720..cc40a744cc7d 100644 --- a/dev-python/decopatch/decopatch-1.4.9.ebuild +++ b/dev-python/decopatch/decopatch-1.4.9.ebuild @@ -9,11 +9,10 @@ DISTUTILS_USE_PEP517=setuptools DOCS_BUILDER="mkdocs" DOCS_DEPEND="dev-python/mkdocs-material" -inherit distutils-r1 docs +inherit distutils-r1 docs pypi DESCRIPTION="Create decorators easily in python" HOMEPAGE="https://pypi.org/project/decopatch/ https://github.com/smarie/python-decopatch" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" diff --git a/dev-python/dominate/Manifest b/dev-python/dominate/Manifest index e0680178456e..508ba019fffe 100644 --- a/dev-python/dominate/Manifest +++ b/dev-python/dominate/Manifest @@ -1 +1,2 @@ DIST dominate-2.7.0.tar.gz 36351 BLAKE2B aae802626a9e7f6b6f45f39a5b2cd6a6846ca42617e9a5ac5fe8e4a871e8ecfb89124e079313838c6f098ea5107a904d230808eda29cb05293e18ef4bdaa2504 SHA512 8ecca393548bd7c39b5d1800fee94634a60e4e12db44e16df316c9e0f5f04dc6c91e11fbe242d3c6dade3a5e09bec7e3becbfd4f8eaa58f9a8fc7ee15ac3bf31 +DIST dominate-2.8.0.tar.gz 37089 BLAKE2B 651ff9ee21c4f5331ef990acfead146f816fc45309740220f68714c3accf7b98661a31400fe050c6b2119525749e9a132f8764d60b72661f7abf5246ebdb5835 SHA512 91b392af8e081dcf0df9f09aabe2cb4d8147bb07a398c5f9f06443fc2664d881afa372c8d4d0583b21e9f9bf687d1d14601e96a33a8ae6e099e1e039821f97df diff --git a/dev-python/dominate/dominate-2.8.0.ebuild b/dev-python/dominate/dominate-2.8.0.ebuild new file mode 100644 index 000000000000..611bbf3eff9f --- /dev/null +++ b/dev-python/dominate/dominate-2.8.0.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Library for creating and manipulating HTML documents using an elegant DOM API" +HOMEPAGE=" + https://github.com/Knio/dominate/ + https://pypi.org/project/dominate/ +" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +distutils_enable_tests pytest diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest index bb1bc5b54445..9afeb8c0269e 100644 --- a/dev-python/fakeredis/Manifest +++ b/dev-python/fakeredis/Manifest @@ -4,4 +4,5 @@ DIST fakeredis-2.11.1.tar.gz 94897 BLAKE2B 18798d30eccfbedd70d13fc4a9883d2ab4b06 DIST fakeredis-2.11.2.tar.gz 95532 BLAKE2B 5edda6d3573bd589c8144664dbf115f257b68f59f002d92766b4c9ce1a9adcefe727812835d01d4efa42676056e9c050175c423cca166f1063e4ee1a6784ee94 SHA512 a5f0428949f3527fc189ecf4744f2f2310fcb114fdeb718299608defe7dfaeee9720d84debaa1e0e0eeeff11f6426e72452b3e7e772690aa48336996ae5a8716 DIST fakeredis-2.12.0.tar.gz 95952 BLAKE2B 87e27851e2c68c07871990e3b1e73c2c614a902a4e086753308f2abcf01cfe08532c1c04136ebb1fa5aa36ff8b36616fefe70ab3b59860d15e89be5af83d1a9d SHA512 a4c1eb27cb846a769ed5fd10966df77064d0598f7b556c36c0ea48cd298c261f222601a0071652ec279b03e04537aac211710edf1597f6d57a48ca3a53e9a7aa DIST fakeredis-2.12.1.tar.gz 97486 BLAKE2B 5207d9b946eb5720083b045e29b960cc2eb3ab5ed7b633f00106d0777186cfb02ecc10607d24a67d7b2eded35915e6710a4880f560e49fbca470c487ec0a2b87 SHA512 99e4e0bf7a4be9cc9dc96eecfe2fd1f106664bab2eff4f575468933809cf306c36237ebc9d86efdd9c0823e05a08d466f35a7e43359602b47c582ab16d7bb7ef +DIST fakeredis-2.13.0.tar.gz 98084 BLAKE2B c147332f2575be7f63aef48199920480d550efbadeee9de255b17cb9c7d6791a059ee3d4bdc500ecf44dcc22de6fdd11d170daf3e19de8e910833b1de12232c6 SHA512 30335e456f7ac2498fc175f9fd154a766064a05e6eb996df9d533412525a3d4279c9359ac5e43a2b9ec9bb1d653639aa10d4e1765a4e4c1bc84f764fa1efdb42 DIST fakeredis-py-2.10.2.gh.tar.gz 159702 BLAKE2B ec385c01af9e32705435148c1c61d74c14d7b22a60b6a3466f1831f557bfe997af6ee96429cfdba00a1328db3cabe1579d65411e7c2b9972e5421963cd66815b SHA512 2a3a87dcbe136465ff0465585562a5b8b0bc73504f491d3ec9c6e959b6cffaa3edbaa1c2e5199138f7a49dfdec3c3da6a2ae338228a8fe21c670a82c062c544a diff --git a/dev-python/fakeredis/fakeredis-2.13.0.ebuild b/dev-python/fakeredis/fakeredis-2.13.0.ebuild new file mode 100644 index 000000000000..c5a052a0d4a2 --- /dev/null +++ b/dev-python/fakeredis/fakeredis-2.13.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Fake implementation of redis API for testing purposes" +HOMEPAGE=" + https://github.com/cunla/fakeredis-py/ + https://pypi.org/project/fakeredis/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + >=dev-python/redis-4.2[${PYTHON_USEDEP}] + <dev-python/sortedcontainers-3[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-db/redis + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # also lupa + test/test_aioredis2.py::test_failed_script_error + # TODO + "test/test_fakeredis.py::test_set_get_nx[StrictRedis]" + "test/test_fakeredis.py::test_lpop_count[StrictRedis]" + "test/test_fakeredis.py::test_rpop_count[StrictRedis]" + "test/test_fakeredis.py::test_zadd_minus_zero[StrictRedis]" + "test/test_mixins/test_pubsub_commands.py::test_pubsub_channels[StrictRedis]" + test/test_mixins/test_set_commands.py::test_smismember_wrong_type + ) + local EPYTEST_IGNORE=( + # these tests fail a lot... + test/test_hypothesis.py + ) + local args=( + # tests requiring lupa (lua support) + -k 'not test_eval and not test_lua and not test_script' + ) + epytest "${args[@]}" +} + +src_test() { + local redis_pid="${T}"/redis.pid + local redis_port=6379 + + einfo "Spawning Redis" + einfo "NOTE: Port ${redis_port} must be free" + "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server" + daemonize yes + pidfile ${redis_pid} + port ${redis_port} + bind 127.0.0.1 + EOF + + # Run the tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${redis_pid}")" || die +} diff --git a/dev-python/fastjsonschema/Manifest b/dev-python/fastjsonschema/Manifest index 1d41f24ea5cf..0052e0e8a78f 100644 --- a/dev-python/fastjsonschema/Manifest +++ b/dev-python/fastjsonschema/Manifest @@ -1 +1,2 @@ +DIST fastjsonschema-2.17.0.tar.gz 370871 BLAKE2B 9d5f16dba7c8519d5bb4853188ba982e06b39a2c1689963ef3aec39e2d48cccbba7ba9ab93cf1b54a06f4e8107917acdb31b076f44b7baf9e9a432256a2f2844 SHA512 ee19945c489b9d4fd23a0a348ec13f321705e93e1367c04003c41b86abd92da2ac73ca6dcd46a9eba0b8b72e8ba899a00939d8a56059fd04eac4300e20589551 DIST python-fastjsonschema-2.16.3.gh.tar.gz 392011 BLAKE2B 04990592a2bf6e1309bf725361ef7c2e253c4765c5b9d60805c5e6189f14885a3b0bae98945c2fe228adc335ca8c8c0a243b283b24fa447238d6415d439288e2 SHA512 2e26f31f9c6966e77f70b8ca584e672d554219b6bbb4811e3ac8dff1c693b2638ef08b8b9011e0db6f739be02e2f41a35d15bcfc42a9cb06ddb4521e51f37d8a diff --git a/dev-python/fastjsonschema/fastjsonschema-2.17.0.ebuild b/dev-python/fastjsonschema/fastjsonschema-2.17.0.ebuild new file mode 100644 index 000000000000..9a16ce7b1b94 --- /dev/null +++ b/dev-python/fastjsonschema/fastjsonschema-2.17.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Fast JSON schema validator for Python" +HOMEPAGE=" + https://github.com/horejsek/python-fastjsonschema/ + https://pypi.org/project/fastjsonschema/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +distutils_enable_tests pytest + +EPYTEST_IGNORE=( + tests/benchmarks +) + +src_prepare() { + distutils-r1_src_prepare + # stray directory? + # https://github.com/horejsek/python-fastjsonschema/issues/173 + rm -r tests/examples/lengths || die +} diff --git a/dev-python/googletrans/googletrans-4.0.0_rc1.ebuild b/dev-python/googletrans/googletrans-4.0.0_rc1.ebuild index 06ce269006dc..720c5285ee07 100644 --- a/dev-python/googletrans/googletrans-4.0.0_rc1.ebuild +++ b/dev-python/googletrans/googletrans-4.0.0_rc1.ebuild @@ -3,12 +3,12 @@ EAPI=8 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 pypi MY_PV=${PV/_/} DESCRIPTION="Free Google Translate API for Python. Translates totally free of charge." HOMEPAGE="https://pypi.org/project/googletrans/ https://github.com/ssut/py-googletrans" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${PN}-${MY_PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="$(pypi_sdist_url --no-normalize ${PN} ${MY_PV}) -> ${P}.tar.gz" S="${WORKDIR}/${PN}-${MY_PV}" LICENSE="MIT" diff --git a/dev-python/grpc-stubs/Manifest b/dev-python/grpc-stubs/Manifest new file mode 100644 index 000000000000..1e5e0b65abe2 --- /dev/null +++ b/dev-python/grpc-stubs/Manifest @@ -0,0 +1 @@ +DIST grpc-stubs-1.53.0.2.gh.tar.gz 14607 BLAKE2B a18f17d1fe31133f7bafb4728b1748537db11b5d11f7da9364fb595c86afcfb47199d069e7eb3e05b89b92757b1080dfd443d0ee2006e85e49c75e5ad188e41a SHA512 ea8343231d12a34927bab56ddfdad69233c4e09502cd072db9ed21ec79726a600e9dc31a0b3ecbae47ea5f4357ddb0840e022fb385f6e1296665406254c59fba diff --git a/dev-python/grpc-stubs/grpc-stubs-1.53.0.2.ebuild b/dev-python/grpc-stubs/grpc-stubs-1.53.0.2.ebuild new file mode 100644 index 000000000000..1b9fbdd65946 --- /dev/null +++ b/dev-python/grpc-stubs/grpc-stubs-1.53.0.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_11 ) +inherit distutils-r1 + +DESCRIPTION="gRPC typing stubs for Python" +HOMEPAGE=" + https://pypi.org/project/grpc-stubs/ + https://github.com/shabbyrobe/grpc-stubs/ +" + +SRC_URI="https://github.com/shabbyrobe/grpc-stubs/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/grpcio[${PYTHON_USEDEP}] + dev-python/protobuf-python[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mypy[${PYTHON_USEDEP}] + dev-python/pytest-mypy-plugins[${PYTHON_USEDEP}] + dev-python/types-protobuf[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + epytest --mypy-ini-file=setup.cfg +} diff --git a/dev-python/grpc-stubs/metadata.xml b/dev-python/grpc-stubs/metadata.xml new file mode 100644 index 000000000000..baa1a46259e9 --- /dev/null +++ b/dev-python/grpc-stubs/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>watermanpaint@posteo.net</email> + <name>Lucio Sauer</name> + </maintainer> + + <origin>gentoo-guru-overlay</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/i3ipc/i3ipc-2.2.1.ebuild b/dev-python/i3ipc/i3ipc-2.2.1.ebuild index 4ec7f4dc8a99..fc6e22aeb669 100644 --- a/dev-python/i3ipc/i3ipc-2.2.1.ebuild +++ b/dev-python/i3ipc/i3ipc-2.2.1.ebuild @@ -5,11 +5,10 @@ EAPI=7 PYTHON_COMPAT=( python3_{7,8,9,10,11} ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="An improved Python library to control i3wm and sway." HOMEPAGE="https://github.com/altdesktop/i3ipc-python" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" diff --git a/dev-python/insipid-sphinx-theme/insipid-sphinx-theme-0.4.0.ebuild b/dev-python/insipid-sphinx-theme/insipid-sphinx-theme-0.4.0.ebuild index e389de97ef5e..6f2e4095cc60 100644 --- a/dev-python/insipid-sphinx-theme/insipid-sphinx-theme-0.4.0.ebuild +++ b/dev-python/insipid-sphinx-theme/insipid-sphinx-theme-0.4.0.ebuild @@ -4,15 +4,15 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="An insipid Sphinx theme" HOMEPAGE=" https://pypi.org/project/insipid-sphinx-theme/ https://github.com/mgeier/insipid-sphinx-theme " -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD-2" SLOT="0" diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index e9da2ac43cac..a11d7c268c91 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1,3 +1 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db -EBUILD langdetect-1.0.9.ebuild 493 BLAKE2B 0df8bce19bc80f79f8e76bcef5a4c2caf333365fe0cb9a3c076b7858bceded5a3e58921474f866a2709dd657b7ed330c1ec4a7f9d7bab0fcf1bc92d77cabc32d SHA512 ea2a1adcb133ac5fc951ba1aa90ef1ce3dfcc424e59727591763d4875aa044a74188be2d15fd89c6b2e83ed6ea04ec3d9851ed584ae79d2c2c127bde7d994b48 -MISC metadata.xml 457 BLAKE2B 630128a3e982b6d60cc7b9f74c79fcb5ee47a71a02c73a50af9da8cedb6fad8e20a7f74b881e5b25c6483b92c9edbd56552cd38b2d9cbfa8b3eb4530facea969 SHA512 674f4f5cd809c6c77bc14e0f5687fa972bef14bdfa0b3343c5d66b7163eef1906eb87d060c8288732f825de71dce291ad0b841a5f2f0dd230f957b5687e45d45 diff --git a/dev-python/langdetect/metadata.xml b/dev-python/langdetect/metadata.xml index 020e07f2a3dd..ddb5b0f1787e 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,11 +2,9 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>marcin.deranek@slonko.net</email> - <name>Marcin Deranek</name> + <email>cyber+gentoo@sysrq.in</email> + <name>Anna</name> </maintainer> - <upstream> - <bugs-to>https://github.com/Mimino666/langdetect/issues</bugs-to> - </upstream> - <origin>slonko-overlay</origin> + + <origin>gentoo-guru-overlay</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/mastodon-py/mastodon-py-1.8.0.ebuild b/dev-python/mastodon-py/mastodon-py-1.8.0.ebuild index b9beddb14daf..1c92b616ac4d 100644 --- a/dev-python/mastodon-py/mastodon-py-1.8.0.ebuild +++ b/dev-python/mastodon-py/mastodon-py-1.8.0.ebuild @@ -5,7 +5,9 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{10..11} ) -inherit distutils-r1 optfeature +PYPI_NO_NORMALIZE=1 +PYPI_PN="Mastodon.py" +inherit distutils-r1 optfeature pypi MY_PN="Mastodon.py" MY_P="${MY_PN}-${PV}" @@ -14,8 +16,6 @@ HOMEPAGE=" https://pypi.org/project/Mastodon.py/ https://github.com/halcy/Mastodon.py " -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" LICENSE="MIT" SLOT="0" diff --git a/dev-python/moto/Manifest b/dev-python/moto/Manifest index 59272832b470..84ddff8d60ba 100644 --- a/dev-python/moto/Manifest +++ b/dev-python/moto/Manifest @@ -1,3 +1,4 @@ +DIST moto-4.1.10.tar.gz 3553976 BLAKE2B 1b6eb1a8defe5cf8cab0bb2419c469dd2251dbbd76597103cd8185ac0488210ec2d4b18268f72bfec4139f82f7f1b10936de7c2f8f9e766f5bb98b6b26164160 SHA512 c45955ead56746f42613defe683c05f787c20222914b0f44503b538c5937d32e3ffe21b25271e5ef614a628e51451451d04806de2167c83c6503bde2a2d9cbee DIST moto-4.1.6.tar.gz 3470215 BLAKE2B 78f9c54128ba71fc5e3ba622be0596490bc82df0a17fa80d9f11bf135bdc91d9698cc29445b5765e6057e80f221c016ca8999186201b83b5f929f5831c417f60 SHA512 fb2dc73a66326216a4c5338660dab844de9a46e6626e0ef68bccb3573a3eba693b30b89961b019a4b7a51207ab11335e73cbdf523c75d91a5a9625a1bc409e61 DIST moto-4.1.7.tar.gz 3506753 BLAKE2B 76e38629f1a772816bfa647b90e89e3c4533cd36fa5a8a26e026229dd1dd8bf1cea404f99c85784a6eefa9173aecff7b88ba1ca7b3f890407c2ad7ef29106fac SHA512 3b20d2a535654cee22c909e19eb492e3b4b8fd382d26367c12cee00128dc4d1ea5228ccc97d40a01c5c2707ff3ca1039644268c47c525c79a9b68fc7ee78541c DIST moto-4.1.8.tar.gz 3520127 BLAKE2B 623d97dbec357227ea401ac98f694eaaa129fcb47f6b160a22bf95f8d52facf9bb3917e00409990a7e447e70de5a94df9f234c3ed615081573169f3976169f3d SHA512 9c3e9825d1e8d09e278f8bbeb11719c4bee756f9e95b2edbe82b4ffbd3acb93008f6ffdc582eb46619104d0b839428b5e8078ef0e341a3b73f0bc61a7ebf806f diff --git a/dev-python/moto/moto-4.1.10.ebuild b/dev-python/moto/moto-4.1.10.ebuild new file mode 100644 index 000000000000..517b7e9209de --- /dev/null +++ b/dev-python/moto/moto-4.1.10.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Mock library for boto" +HOMEPAGE=" + https://github.com/getmoto/moto/ + https://pypi.org/project/moto/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/aws-xray-sdk-0.93[${PYTHON_USEDEP}] + >=dev-python/cfn-lint-0.40.0[${PYTHON_USEDEP}] + >=dev-python/cryptography-3.3.1[${PYTHON_USEDEP}] + dev-python/cookies[${PYTHON_USEDEP}] + >=dev-python/docker-py-3.0.0[${PYTHON_USEDEP}] + >=dev-python/idna-2.5[${PYTHON_USEDEP}] + >=dev-python/jinja-2.10.1[${PYTHON_USEDEP}] + >=dev-python/jsondiff-1.1.2[${PYTHON_USEDEP}] + dev-python/boto3[${PYTHON_USEDEP}] + dev-python/botocore[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/flask-cors[${PYTHON_USEDEP}] + dev-python/more-itertools[${PYTHON_USEDEP}] + >=dev-python/pyparsing-3.0.7[${PYTHON_USEDEP}] + >=dev-python/openapi-spec-validator-0.2.8[${PYTHON_USEDEP}] + dev-python/pyaml[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/python-jose[${PYTHON_USEDEP}] + dev-python/python-sshpubkeys[${PYTHON_USEDEP}] + >=dev-python/responses-0.9.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.5[${PYTHON_USEDEP}] + dev-python/xmltodict[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + dev-python/zipp[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + >=dev-python/sure-1.4.11[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # TODO + tests/test_firehose/test_firehose_put.py::test_put_record_http_destination + tests/test_firehose/test_firehose_put.py::test_put_record_batch_http_destination + tests/test_swf/responses/test_decision_tasks.py::test_respond_decision_task_completed_with_schedule_activity_task_boto3 + tests/test_swf/responses/test_timeouts.py::test_activity_task_heartbeat_timeout_boto3 + tests/test_swf/responses/test_timeouts.py::test_decision_task_start_to_close_timeout_boto3 + tests/test_swf/responses/test_timeouts.py::test_workflow_execution_start_to_close_timeout_boto3 + # broken code (local variable used referenced before definition) + tests/test_appsync/test_appsync_schema.py + tests/test_appsync/test_server.py::test_appsync_list_tags_for_resource + # Needs network (or docker?) but not marked as such, bug #807031 + # TODO: report upstream + tests/test_batch/test_batch_jobs.py::test_terminate_job + tests/test_batch/test_batch_jobs.py::test_cancel_pending_job + tests/test_batch/test_batch_jobs.py::test_cancel_running_job + tests/test_batch/test_batch_jobs.py::test_dependencies + tests/test_batch/test_batch_jobs.py::test_container_overrides + tests/test_cloudformation/test_cloudformation_custom_resources.py::test_create_custom_lambda_resource__verify_cfnresponse_failed + + tests/test_cloudformation/test_cloudformation_stack_integration.py::test_lambda_function + tests/test_core/test_docker.py::test_docker_is_running_and_available + tests/test_events/test_events_lambdatriggers_integration.py::test_creating_bucket__invokes_lambda + tests/test_sqs/test_integration.py::test_invoke_function_from_sqs_exception + tests/test_sqs/test_sqs_integration.py::test_invoke_function_from_sqs_exception + tests/test_s3/test_server.py::test_s3_server_post_to_bucket_redirect + tests/test_s3/test_multiple_accounts_server.py::TestAccountIdResolution::test_with_custom_request_header + "tests/test_s3/test_s3_lambda_integration.py::test_objectcreated_put__invokes_lambda[match_events0-ObjectCreated:Put]" + "tests/test_s3/test_s3_lambda_integration.py::test_objectcreated_put__invokes_lambda[match_events1-ObjectCreated:Put]" + "tests/test_s3/test_s3_lambda_integration.py::test_objectcreated_put__invokes_lambda[match_events3-ObjectCreated:Put]" + # TODO + tests/test_batch/test_batch_jobs.py::test_failed_dependencies + tests/test_batch/test_batch_jobs.py::test_failed_job + tests/test_batch_simple/test_batch_jobs.py::test_submit_job_by_name + tests/test_core/test_environ_patching.py::test_aws_keys_can_be_none + tests/test_core/test_mock_all.py::test_context_manager + tests/test_sqs/test_sqs_integration.py::test_invoke_function_from_sqs_queue + tests/test_sqs/test_sqs_integration.py::test_invoke_function_from_sqs_fifo_queue + # require py_partiql_parser + tests/test_s3/test_s3_select.py + tests/test_dynamodb/test_dynamodb_statements.py + # broken by new urllib3 + tests/test_moto_api/recorder/test_recorder.py::TestRecorder::test_s3_upload_data + tests/test_moto_api/recorder/test_recorder.py::TestRecorder::test_s3_upload_file_using_requests + tests/test_s3/test_s3.py::test_upload_from_file_to_presigned_url + tests/test_s3/test_s3.py::test_put_chunked_with_v4_signature_in_body + tests/test_s3/test_s3.py::test_presigned_put_url_with_approved_headers + tests/test_s3/test_s3.py::test_presigned_put_url_with_custom_headers + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + # note: pytest-xdist causes random test failures + epytest -m 'not network' +} diff --git a/dev-python/msrest/msrest-0.7.1.ebuild b/dev-python/msrest/msrest-0.7.1.ebuild index 385e27c5624c..6d446e27ecd3 100644 --- a/dev-python/msrest/msrest-0.7.1.ebuild +++ b/dev-python/msrest/msrest-0.7.1.ebuild @@ -6,11 +6,11 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) PYTHON_REQ_USE="xml(+)" DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 optfeature +inherit distutils-r1 optfeature pypi DESCRIPTION="AutoRest swagger generator Python client runtime" HOMEPAGE="https://github.com/Azure/msrest-for-python" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" +SRC_URI="$(pypi_sdist_url ${PN} ${PV} .zip)" LICENSE="MIT" SLOT="0" diff --git a/dev-python/opentype-sanitizer/opentype-sanitizer-9.0.0.ebuild b/dev-python/opentype-sanitizer/opentype-sanitizer-9.0.0.ebuild index 00eeb2c0ee40..1646da604f67 100644 --- a/dev-python/opentype-sanitizer/opentype-sanitizer-9.0.0.ebuild +++ b/dev-python/opentype-sanitizer/opentype-sanitizer-9.0.0.ebuild @@ -19,12 +19,14 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" -DEPEND=" +RDEPEND=" app-arch/lz4:= media-libs/woff2 sys-libs/zlib:= " -RDEPEND="${DEPEND}" +DEPEND="${RDEPEND} + dev-cpp/gtest +" BDEPEND="dev-util/meson" distutils_enable_tests pytest diff --git a/dev-python/os-api-ref/os-api-ref-2.3.0.ebuild b/dev-python/os-api-ref/os-api-ref-2.3.0.ebuild index 543b67c10ea8..e681ba81e7e8 100644 --- a/dev-python/os-api-ref/os-api-ref-2.3.0.ebuild +++ b/dev-python/os-api-ref/os-api-ref-2.3.0.ebuild @@ -5,15 +5,15 @@ EAPI=8 EPYTEST_DESELECT=( os_api_ref/tests/test_microversions.py::TestMicroversions::test_parameters_table ) PYTHON_COMPAT=( python3_{7,8,9,10,11} ) +PYPI_NO_NORMALIZE=1 -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="Sphinx Extensions to support API reference sites in OpenStack" HOMEPAGE=" https://opendev.org/openstack/os-api-ref https://pypi.org/project/os-api-ref/ " -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" diff --git a/dev-python/pydispatcher/pydispatcher-2.0.7.ebuild b/dev-python/pydispatcher/pydispatcher-2.0.7.ebuild index 5668f0552ea5..2e457308917a 100644 --- a/dev-python/pydispatcher/pydispatcher-2.0.7.ebuild +++ b/dev-python/pydispatcher/pydispatcher-2.0.7.ebuild @@ -5,13 +5,12 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 +PYPI_PN="PyDispatcher" +PYPI_NO_NORMALIZE=1 +inherit distutils-r1 pypi DESCRIPTION="Multi-producer-multi-consumer signal dispatching mechanism" HOMEPAGE="https://github.com/mcfletch/pydispatcher" -MY_P=PyDispatcher -SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_P}/${MY_P}-${PV}.tar.gz" -S=${WORKDIR}/${MY_P}-${PV} LICENSE="BSD" SLOT="0" diff --git a/dev-python/pymeeus/pymeeus-0.5.11.ebuild b/dev-python/pymeeus/pymeeus-0.5.11.ebuild index b3d33912695e..579b563563d0 100644 --- a/dev-python/pymeeus/pymeeus-0.5.11.ebuild +++ b/dev-python/pymeeus/pymeeus-0.5.11.ebuild @@ -5,7 +5,9 @@ EAPI=8 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 +PYPI_PN="PyMeeus" +PYPI_NO_NORMALIZE=1 +inherit distutils-r1 pypi MY_PN="PyMeeus" MY_P="${MY_PN}-${PV}" @@ -14,8 +16,6 @@ HOMEPAGE=" https://pypi.org/project/PyMeeus/ https://github.com/architest/pymeeus " -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" LICENSE="LGPL-3" SLOT="0" diff --git a/dev-python/pymeeus/pymeeus-0.5.12.ebuild b/dev-python/pymeeus/pymeeus-0.5.12.ebuild index b3d33912695e..23127af68a7f 100644 --- a/dev-python/pymeeus/pymeeus-0.5.12.ebuild +++ b/dev-python/pymeeus/pymeeus-0.5.12.ebuild @@ -5,17 +5,15 @@ EAPI=8 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 +PYPI_PN="PyMeeus" +PYPI_NO_NORMALIZE=1 +inherit distutils-r1 pypi -MY_PN="PyMeeus" -MY_P="${MY_PN}-${PV}" DESCRIPTION="Python implementation of Jean Meeus astronomical routines" HOMEPAGE=" https://pypi.org/project/PyMeeus/ https://github.com/architest/pymeeus " -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" LICENSE="LGPL-3" SLOT="0" diff --git a/dev-python/pypdf/Manifest b/dev-python/pypdf/Manifest index baa0775f15b9..924c00dc2ffb 100644 --- a/dev-python/pypdf/Manifest +++ b/dev-python/pypdf/Manifest @@ -1,6 +1,7 @@ DIST pypdf-3.7.1.gh.tar.gz 7508532 BLAKE2B 917eb7a825781f966d6b268cf3471935b9d245de5465acd428f87cc387a01bf1739d1cddb504498e4e7505a098508a1e12d686ad21ef73960f11bcddd4acca57 SHA512 5834a5738860c341e231a0ba79d9ffbc14d1f683bc781793d962fb8303aac5e6ec825492cd2e470d47fdd166576c5c4be64bbb7a03f7f79b160d456667ce8f15 DIST pypdf-3.8.0.gh.tar.gz 7509837 BLAKE2B 2acf12b5c43799252641f2c7d0ebd24c1f1eb02b655b0c458eef1049b660452967ff613e17b2eb70330d67677860b58b0f8f99d3af2c2794c4aacb30646b3244 SHA512 a4f33c8f940303958221a48ffbf088c363d7cf9360d5c9d27829b5703735216c32af63262313a25598c3479c4584999a23ac6bf77daa701042ef65314194dab3 DIST pypdf-3.8.1.gh.tar.gz 7516880 BLAKE2B 87d8cd66c7efcf9624205da904290fe82f51eeb9b521903ec564467755cc9a824ab0660a41d0cbd4a1ada2e20b4b35e16ce3a73a9933aea9fc5e0f315e613709 SHA512 8b78ccc210b8f34b9556cf69cac8f2af207de9a42840a0b4c822c0ab2c0b2d468c5c20a14704d3f54c6b57bcc451c3f0b7ff54b8149616b539cb07be57482e58 +DIST pypdf-3.9.0.gh.tar.gz 7516907 BLAKE2B 12c0a13ee1ca897966bcd2f6a93b50ef1ead8d471ac9543544988a9c03c26a135a91c07b443d3a7b89fd38c302f5c2323994407fdadc23638832ca07eb7571fb SHA512 da9489bfd7c91c497852ce71050548d99fbca8118575c5eec85d55611fdafbe471c1cf7c4c8ef0e46165a89771e557c868f133af325d4672ba897fffffd43c02 DIST pypdf-sample-files-0c3b1d3879c5cd7d913b3d931fa33b37529d7346.gh.tar.gz 9028862 BLAKE2B 7c72b76724e7b0fb4069c3151c13342d66cc451f398f6826b09dfb5b57e2d2b625118de1f431b5759466c4e6afb5d0c8682c4c28ec2f3b700a6cc39787ec6ecd SHA512 342562a711673030eb729135f27c241f5f37305b0d6f30f555667881e921089b801a3376330d840b16d4a3683d0b6f07824d05e4d208d32a3771ca83a0b7f22d DIST pypdf-sample-files-69b31cff6b183a42f9081709ef9bee4047976f56.gh.tar.gz 9044391 BLAKE2B 9a9bcfbacabf3c80073a440f54736728cba4ea92d1a817ce98bcaf9375340d95e453f45207f53ac878ef5c13bc4ca7d0d4488b79f205f396e960ed042680ca01 SHA512 32b4572d60a0aadba02485f11c84712c1f5f0a75f7acd6fb27f1df00cb2a8ae338a1001e6519f66c248efbd129aba1a2ad568e930ce90bd542c8dc58f383386a DIST pypdf-sample-files-d3d250321b01ca1194e16a814d24508897862fe8.gh.tar.gz 9030851 BLAKE2B 63e5778763315aff0753e5a0f06cd55432a494efea921c73e765567aee63223af3f3d81436e22d089008bc38c917e10eb5da7988abd458fd3f3488e8faeed70e SHA512 a8e77982ad78aeb58db7a5a722c9e072d7c55bca7290f448ba388b70256137fc6b9919c8079d8b548407c88b8befe7caeeb65217eb52b6d9bbadfaf652d89e0a diff --git a/dev-python/pypdf/pypdf-3.9.0.ebuild b/dev-python/pypdf/pypdf-3.9.0.ebuild new file mode 100644 index 000000000000..c3e628bb375b --- /dev/null +++ b/dev-python/pypdf/pypdf-3.9.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 + +SAMPLE_COMMIT=69b31cff6b183a42f9081709ef9bee4047976f56 +DESCRIPTION="Python library to work with PDF files" +HOMEPAGE=" + https://pypi.org/project/pypdf/ + https://github.com/py-pdf/pypdf/ +" +SRC_URI=" + https://github.com/py-pdf/pypdf/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + test? ( + https://github.com/py-pdf/sample-files/archive/${SAMPLE_COMMIT}.tar.gz + -> ${PN}-sample-files-${SAMPLE_COMMIT}.gh.tar.gz + ) +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +BDEPEND=" + dev-python/pillow[${PYTHON_USEDEP}] + test? ( + dev-python/pycryptodome[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # rely on -Werror + tests/test_utils.py::test_deprecate_no_replacement + tests/test_workflows.py::test_orientations +) + +src_unpack() { + default + if use test; then + mv "sample-files-${SAMPLE_COMMIT}"/* "${S}"/sample-files/ || die + fi +} + +python_test() { + epytest -o addopts= -m "not enable_socket" +} diff --git a/dev-python/pytest-cases/pytest-cases-3.6.13.ebuild b/dev-python/pytest-cases/pytest-cases-3.6.13.ebuild index f38ffa7b4221..514163671dcf 100644 --- a/dev-python/pytest-cases/pytest-cases-3.6.13.ebuild +++ b/dev-python/pytest-cases/pytest-cases-3.6.13.ebuild @@ -5,15 +5,15 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 DOCS_BUILDER="mkdocs" DOCS_DEPEND="dev-python/mkdocs-material" -inherit distutils-r1 docs +inherit distutils-r1 docs pypi DESCRIPTION="Separate test code from test cases in pytest" HOMEPAGE="https://pypi.org/project/pytest-cases/ https://github.com/smarie/python-pytest-cases" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" diff --git a/dev-python/pytest-click/pytest-click-1.1.0.ebuild b/dev-python/pytest-click/pytest-click-1.1.0.ebuild index f3261a741ff7..d4ff8b4a1abf 100644 --- a/dev-python/pytest-click/pytest-click-1.1.0.ebuild +++ b/dev-python/pytest-click/pytest-click-1.1.0.ebuild @@ -5,17 +5,13 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 pypi -MY_PN="${PN//-/_}" -MY_P="${MY_PN}-${PV}" DESCRIPTION="Pytest plugin for Click" HOMEPAGE=" https://pypi.org/project/pytest-click/ https://github.com/Stranger6667/pytest-click " -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" LICENSE="MIT" SLOT="0" diff --git a/dev-python/pytest-mypy-plugins/Manifest b/dev-python/pytest-mypy-plugins/Manifest new file mode 100644 index 000000000000..1e72cbeeb64a --- /dev/null +++ b/dev-python/pytest-mypy-plugins/Manifest @@ -0,0 +1 @@ +DIST pytest-mypy-plugins-1.11.1.gh.tar.gz 18201 BLAKE2B a21b089321a3d632225e0ac6aa921b23bba111dcc5234c2ada32522b7659533970a9bd19bb432d3304b0291e32ba067ab75c549c4552ca742835155ab8e711b1 SHA512 ac7a0973aba070c80480681f2910d40c7e510c906f8030413ba5c94f50131df19036c7183bfad3f211d6d375661753b9d4ff2a73b3bd7af06d0f442e94af3f64 diff --git a/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-1.11.1-deprecated-chevron-to-jinja.patch b/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-1.11.1-deprecated-chevron-to-jinja.patch new file mode 100644 index 000000000000..ae2885893b6d --- /dev/null +++ b/dev-python/pytest-mypy-plugins/files/pytest-mypy-plugins-1.11.1-deprecated-chevron-to-jinja.patch @@ -0,0 +1,45 @@ +Chevron, an engine for the Mustache templating language, has been unmaintained +since 2021 and is not part of ::gentoo. The Jinja and Mustache templating +languages use the same syntax as far as this project is concerned. + +PR issued upstream by <watermanpaint@posteo.net>: +https://github.com/typeddjango/pytest-mypy-plugins/pull/117 +--- a/pytest_mypy_plugins/utils.py ++++ b/pytest_mypy_plugins/utils.py +@@ -11,10 +11,11 @@ from itertools import zip_longest + from pathlib import Path + from typing import Any, Callable, Dict, Iterator, List, Mapping, Optional, Tuple, Union + +-import chevron ++import jinja2 + import regex + from decorator import contextmanager + ++_rendering_env = jinja2.Environment() + + @contextmanager + def temp_environ() -> Iterator[None]: +@@ -351,9 +352,10 @@ def extract_output_matchers_from_out(out: str, params: Mapping[str, Any], regex: + return matchers + + +-def render_template(template: str, data: Mapping[str, Any]) -> str: +- return chevron.render(template=template, data={k: v if v is not None else "None" for k, v in data.items()}) + ++def render_template(template: str, data: Mapping[str, Any]) -> str: ++ template = _rendering_env.from_string(template) ++ return template.render({k: v if v is not None else "None" for k, v in data.items()}) + + def get_func_first_lnum(attr: Callable[..., None]) -> Optional[Tuple[int, List[str]]]: + lines, _ = inspect.getsourcelines(attr) +--- a/setup.py ++++ b/setup.py +@@ -8,7 +8,7 @@ dependencies = [ + "mypy>=0.970", + "decorator", + "pyyaml", +- "chevron", ++ "jinja2", + "regex", + "packaging", + ] diff --git a/dev-python/pytest-mypy-plugins/metadata.xml b/dev-python/pytest-mypy-plugins/metadata.xml new file mode 100644 index 000000000000..cc2c065b7b36 --- /dev/null +++ b/dev-python/pytest-mypy-plugins/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>watermanpaint@posteo.net</email> + <name>Lucio Sauer</name> + </maintainer> + <upstream> + <changelog>
 https://github.com/typeddjango/pytest-mypy-plugins/blob/master/CHANGELOG.md
 </changelog> + </upstream> + <origin>gentoo-guru-overlay</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-1.11.1.ebuild b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-1.11.1.ebuild new file mode 100644 index 000000000000..e42608e0ea45 --- /dev/null +++ b/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-1.11.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_11 ) +inherit distutils-r1 + +DESCRIPTION="pytest plugin for testing mypy types, stubs, plugins" +HOMEPAGE=" + https://pypi.org/project/pytest-mypy-plugins/ + https://github.com/typeddjango/pytest-mypy-plugins/ +" + +SRC_URI="https://github.com/typeddjango/pytest-mypy-plugins/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +PATCHES=( + "${FILESDIR}"/${P}-deprecated-chevron-to-jinja.patch +) + +DOCS="README* CHANGELOG*" + +RDEPEND=" + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/mypy[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest diff --git a/dev-python/pytest-testinfra/Manifest b/dev-python/pytest-testinfra/Manifest index 2821fbb33404..aae2c6529d7a 100644 --- a/dev-python/pytest-testinfra/Manifest +++ b/dev-python/pytest-testinfra/Manifest @@ -1,2 +1,3 @@ DIST pytest-testinfra-7.0.0.tar.gz 79296 BLAKE2B b0870cbf466627daff0ed6a3063c15c9b725fab4009fc24c3779b56765901e6b8d3a42fce429f1e42151b78d61f52c38955772e562c74d78c717a61a5fe74f04 SHA512 507d7a434c2eb159e2c36b1be3d447e386d3a4e614f2717ed8add456358f644c18f801db6774a4854e4ec7936643febd332aa4096ab26ae0080aceeff420c78e DIST pytest-testinfra-8.0.0.tar.gz 83448 BLAKE2B e1dcd7f685183ad0d1c79f3fe7542797f2c91839faf79e2b368c0e330aec22a420621859d419f7816b72df4aad9ac9d5ecc99d257804311d6b8b77c20b5b833b SHA512 ee8e8df7ba0422ea60d55149495a682b88a62646b6b601dd95a135a5d3a131d5cc57cb0f0cc0ff7166d004758619283480e52b8507cc2eedbc25c46a16da60b5 +DIST pytest-testinfra-8.1.0.tar.gz 84156 BLAKE2B 169ccd6afc4260f3dd42c8eff8112395adc7216cfd3e5f7abeb9b9d3db0cd766465dd94a5ca500d610db469f0e51298b6fc26f3c0ffd27f2fc215d859c99e52d SHA512 2f98cc15952c5607ecc1db76bae90aa9d299951cd1f4c5f8ba6085a7f4e6babac7f4ef4e44e089829f7382139164259007125f505c18129cc7135b840d709931 diff --git a/dev-python/pytest-testinfra/pytest-testinfra-8.1.0.ebuild b/dev-python/pytest-testinfra/pytest-testinfra-8.1.0.ebuild new file mode 100644 index 000000000000..ac3689c80baf --- /dev/null +++ b/dev-python/pytest-testinfra/pytest-testinfra-8.1.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Write unit tests in Python to test actual state of your servers" +HOMEPAGE=" + https://github.com/pytest-dev/pytest-testinfra/ + https://pypi.org/project/pytest-testinfra/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~riscv" + +RDEPEND=" + dev-python/pytest[${PYTHON_USEDEP}] +" +# Ansible is called via its CLI +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + app-admin/ansible + $(python_gen_cond_dep ' + app-admin/salt[${PYTHON_USEDEP}] + ' python3_10) + dev-python/paramiko[${PYTHON_USEDEP}] + dev-python/pywinrm[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local -x EPYTEST_DESELECT=() + + # This is the only test which actually fails if salt cannot be imported + if [[ ${EPYTHON} == python3.11 ]]; then + EPYTEST_DESELECT+=( + test/test_backends.py::test_backend_importables + ) + fi + + epytest +} + +pkg_postinst() { + elog "For the list of available connection back-ends and their dependencies," + elog "please consult https://testinfra.readthedocs.io/en/latest/backends.html" +} diff --git a/dev-python/python-http-client/Manifest b/dev-python/python-http-client/Manifest index f1c3006002cc..bb6b005a1e82 100644 --- a/dev-python/python-http-client/Manifest +++ b/dev-python/python-http-client/Manifest @@ -1 +1 @@ -DIST python-http-client-3.3.5.tar.gz 7852 BLAKE2B 6ebcd545b3dfe06e9daf4c0c373d91f9a8ecbf9dc411b579794bbbfa5047bb388ff2fa7d1ba04cf71c64a9af5b1da2283d8ed5b5b0a3dca49f4db5cd7f569d57 SHA512 54fe0d871be4d9743d5601c218d20c513a88eac8f91afa0222daf8d585819dabe3b9fdaf63e0810e46fe94dbf72185af7460f7c39ebf00312fd8eb7411a90f75 +DIST python_http_client-3.3.5.tar.gz 7852 BLAKE2B 6ebcd545b3dfe06e9daf4c0c373d91f9a8ecbf9dc411b579794bbbfa5047bb388ff2fa7d1ba04cf71c64a9af5b1da2283d8ed5b5b0a3dca49f4db5cd7f569d57 SHA512 54fe0d871be4d9743d5601c218d20c513a88eac8f91afa0222daf8d585819dabe3b9fdaf63e0810e46fe94dbf72185af7460f7c39ebf00312fd8eb7411a90f75 diff --git a/dev-python/python-http-client/python-http-client-3.3.5.ebuild b/dev-python/python-http-client/python-http-client-3.3.5.ebuild index 45f2bb59c85b..efe1d29aed29 100644 --- a/dev-python/python-http-client/python-http-client-3.3.5.ebuild +++ b/dev-python/python-http-client/python-http-client-3.3.5.ebuild @@ -5,14 +5,10 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="HTTP REST client, simplified for Python" HOMEPAGE="https://github.com/sendgrid/python-http-client https://pypi.org/project/python-http-client/" -MY_PN=${PN//-/_} -MY_P=${MY_PN}-${PV} -SRC_URI="mirror://pypi/${P:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz" -S=${WORKDIR}/${MY_PN}-${PV} LICENSE="MIT" SLOT="0" @@ -34,4 +30,3 @@ python_test() { } distutils_enable_tests pytest - diff --git a/dev-python/python-lsp-black/Manifest b/dev-python/python-lsp-black/Manifest index 1764ee4a7edc..76bec82b40e6 100644 --- a/dev-python/python-lsp-black/Manifest +++ b/dev-python/python-lsp-black/Manifest @@ -1 +1,2 @@ DIST python-lsp-black-1.2.1.gh.tar.gz 9355 BLAKE2B f9c70ff07d9dfa31e3af919143deb8a49f43269469e8c64525f514624f4db67636da8254dae5274685ba2d883c8ddfd6dd9cb99981a337d7837d4007f15af11c SHA512 289b8f3642ed806409671d25e32997fb473720d0abd642c58c07d8c894831fa00f56dbc39e7d0fc8d98cad7de9f95ebdb6a0f637b8b4bbcc2a0716690feb647e +DIST python-lsp-black-1.3.0.gh.tar.gz 9781 BLAKE2B d079d7a95dff682b86df23825796d2fa6e89d1aa3e66da1452e576fd1e96a4c298da181f53840fe5fcdcbbc8a0ca55aa53cbc4885a0178b6402365ef41a239be SHA512 9e3d081ac022854626c120128949ab5e58c44f9e76ddd566e3b80a697fbc02a96f62994f43195b02f899e770768d55d223984267133eedd6f642b70560d46c09 diff --git a/dev-python/python-lsp-black/python-lsp-black-1.3.0.ebuild b/dev-python/python-lsp-black/python-lsp-black-1.3.0.ebuild new file mode 100644 index 000000000000..9274bf63b458 --- /dev/null +++ b/dev-python/python-lsp-black/python-lsp-black-1.3.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 + +DESCRIPTION="Black plugin for the Python LSP Server" +HOMEPAGE=" + https://github.com/python-lsp/python-lsp-black/ + https://pypi.org/project/python-lsp-black/ +" +SRC_URI=" + https://github.com/python-lsp/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/python-lsp-server-1.4.0[${PYTHON_USEDEP}] + >=dev-python/black-22.3.0[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.10) + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/readability-lxml/readability-lxml-0.6.1.ebuild b/dev-python/readability-lxml/readability-lxml-0.6.1.ebuild index 3591d33b7f92..91caa24a5452 100644 --- a/dev-python/readability-lxml/readability-lxml-0.6.1.ebuild +++ b/dev-python/readability-lxml/readability-lxml-0.6.1.ebuild @@ -4,11 +4,11 @@ EAPI=7 PYTHON_COMPAT=( python3_{10..11} ) -inherit distutils-r1 +PYPI_NO_NORMALIZE=1 +inherit distutils-r1 pypi DESCRIPTION="fast html to text parser (article readability tool)" HOMEPAGE="https://github.com/buriy/python-readability" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" diff --git a/dev-python/sphinx-argparse-cli/sphinx-argparse-cli-1.9.0.ebuild b/dev-python/sphinx-argparse-cli/sphinx-argparse-cli-1.9.0.ebuild index 49730323055d..e50c1b26f64f 100644 --- a/dev-python/sphinx-argparse-cli/sphinx-argparse-cli-1.9.0.ebuild +++ b/dev-python/sphinx-argparse-cli/sphinx-argparse-cli-1.9.0.ebuild @@ -5,14 +5,10 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{10..11} ) # no pypy3 support -inherit distutils-r1 +inherit distutils-r1 pypi -MY_PN="${PN//-/_}" -MY_P="${MY_PN}-${PV}" DESCRIPTION="Render CLI arguments (sub-commands friendly) defined by argparse module" HOMEPAGE="https://github.com/tox-dev/sphinx-argparse-cli https://pypi.org/project/sphinx-argparse-cli/" -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" LICENSE="MIT" SLOT="0" diff --git a/dev-python/sphinx-click/sphinx-click-4.1.0.ebuild b/dev-python/sphinx-click/sphinx-click-4.1.0.ebuild index d7965cd76a91..396fbe6ef6be 100644 --- a/dev-python/sphinx-click/sphinx-click-4.1.0.ebuild +++ b/dev-python/sphinx-click/sphinx-click-4.1.0.ebuild @@ -3,16 +3,16 @@ EAPI=8 +PYPI_NO_NORMALIZE=1 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="Sphinx plugin to automatically document click-based applications" HOMEPAGE=" https://github.com/click-contrib/sphinx-click https://pypi.org/project/sphinx-click/ " -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" KEYWORDS="~amd64" diff --git a/dev-python/sphinx-sitemap/sphinx-sitemap-2.2.1.ebuild b/dev-python/sphinx-sitemap/sphinx-sitemap-2.2.1.ebuild index 2a18de5d2797..55e2ab754de1 100644 --- a/dev-python/sphinx-sitemap/sphinx-sitemap-2.2.1.ebuild +++ b/dev-python/sphinx-sitemap/sphinx-sitemap-2.2.1.ebuild @@ -5,14 +5,14 @@ EAPI=8 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 +PYPI_NO_NORMALIZE=1 +inherit distutils-r1 pypi DESCRIPTION="Sitemap generator for Sphinx" HOMEPAGE=" https://pypi.org/project/sphinx-sitemap/ https://github.com/jdillard/sphinx-sitemap " -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" diff --git a/dev-python/srt/srt-3.5.1.ebuild b/dev-python/srt/srt-3.5.1.ebuild index 4022e2af5bea..418abeea4359 100644 --- a/dev-python/srt/srt-3.5.1.ebuild +++ b/dev-python/srt/srt-3.5.1.ebuild @@ -5,11 +5,10 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="A tiny library for parsing, modifying, and composing SRT files" HOMEPAGE="https://github.com/cdown/srt" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" diff --git a/dev-python/stdlibs/stdlibs-2022.3.16.ebuild b/dev-python/stdlibs/stdlibs-2022.3.16.ebuild index 3b7c80def8c0..b763ab4a2ed8 100644 --- a/dev-python/stdlibs/stdlibs-2022.3.16.ebuild +++ b/dev-python/stdlibs/stdlibs-2022.3.16.ebuild @@ -6,11 +6,10 @@ EAPI=8 DISTUTILS_USE_PEP517=flit PYTHON_COMPAT=( python3_{10..11} ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="What's in the Python stdlib" HOMEPAGE="https://github.com/omnilib/stdlibs/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" diff --git a/dev-python/types-paramiko/types-paramiko-2.10.0.ebuild b/dev-python/types-paramiko/types-paramiko-2.10.0.ebuild index d940c4c70f36..7ee0e8bd43f8 100644 --- a/dev-python/types-paramiko/types-paramiko-2.10.0.ebuild +++ b/dev-python/types-paramiko/types-paramiko-2.10.0.ebuild @@ -3,16 +3,16 @@ EAPI=8 +PYPI_NO_NORMALIZE=1 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="Typing stubs for paramiko" HOMEPAGE=" https://pypi.org/project/types-paramiko/ https://github.com/python/typeshed/tree/master/stubs/paramiko " -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" SLOT="0" LICENSE="Apache-2.0" diff --git a/dev-python/types-protobuf/Manifest b/dev-python/types-protobuf/Manifest new file mode 100644 index 000000000000..42bbe22b4c9b --- /dev/null +++ b/dev-python/types-protobuf/Manifest @@ -0,0 +1 @@ +DIST types-protobuf-4.23.0.1.tar.gz 47077 BLAKE2B cf3ccfbbf06e9e549811bf7edfec7d5ced17ee2baa102b15a568ea57f3986447db074ad4c64bd3e5cb348ac41a69bfaa6b3e4dbe93394643cd75d8bfa47291d4 SHA512 914bdd95ce5777f00cd406e6e10e0094e3834e9e51868abdffb08b91894e2b896e4eaa6d3ba1a534e0b8f1231c3bef0afca89a4ab38c149d1d7ce4725bd70af6 diff --git a/dev-python/types-protobuf/metadata.xml b/dev-python/types-protobuf/metadata.xml new file mode 100644 index 000000000000..baa1a46259e9 --- /dev/null +++ b/dev-python/types-protobuf/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>watermanpaint@posteo.net</email> + <name>Lucio Sauer</name> + </maintainer> + + <origin>gentoo-guru-overlay</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/types-protobuf/types-protobuf-4.23.0.1.ebuild b/dev-python/types-protobuf/types-protobuf-4.23.0.1.ebuild new file mode 100644 index 000000000000..4a7cdee67670 --- /dev/null +++ b/dev-python/types-protobuf/types-protobuf-4.23.0.1.ebuild @@ -0,0 +1,18 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) +inherit distutils-r1 pypi + +DESCRIPTION="Typing stubs for protobuf" +HOMEPAGE=" + https://pypi.org/project/types-protobuf/ + https://github.com/python/typeshed/tree/master/stubs/protobuf/ +" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" diff --git a/dev-python/types-python-dateutil/types-python-dateutil-2.8.17.ebuild b/dev-python/types-python-dateutil/types-python-dateutil-2.8.17.ebuild index 48ac31b7e4bc..9808e0e3c957 100644 --- a/dev-python/types-python-dateutil/types-python-dateutil-2.8.17.ebuild +++ b/dev-python/types-python-dateutil/types-python-dateutil-2.8.17.ebuild @@ -3,16 +3,16 @@ EAPI=8 +PYPI_NO_NORMALIZE=1 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="Typing stubs for python-dateutil" HOMEPAGE=" https://pypi.org/project/types-python-dateutil/ https://github.com/python/typeshed/tree/master/stubs/python-dateutil " -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" SLOT="0" LICENSE="Apache-2.0" diff --git a/dev-python/types-pytz/types-pytz-2021.3.8.ebuild b/dev-python/types-pytz/types-pytz-2021.3.8.ebuild index 2d0aa20486b0..b7d074578374 100644 --- a/dev-python/types-pytz/types-pytz-2021.3.8.ebuild +++ b/dev-python/types-pytz/types-pytz-2021.3.8.ebuild @@ -3,16 +3,16 @@ EAPI=8 +PYPI_NO_NORMALIZE=1 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="Typing stubs for pytz" HOMEPAGE=" https://pypi.org/project/types-pytz/ https://github.com/python/typeshed/tree/master/stubs/pytz " -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" SLOT="0" LICENSE="Apache-2.0" diff --git a/dev-python/ufoNormalizer/ufoNormalizer-0.6.1.ebuild b/dev-python/ufoNormalizer/ufoNormalizer-0.6.1.ebuild index 0ecc2549b69a..387d1a1ba6f8 100644 --- a/dev-python/ufoNormalizer/ufoNormalizer-0.6.1.ebuild +++ b/dev-python/ufoNormalizer/ufoNormalizer-0.6.1.ebuild @@ -3,16 +3,13 @@ EAPI=8 -MY_PN="${PN,,}" -MY_P="${MY_PN}-${PV}" PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="A tool that will normalize the XML and other data inside of a UFO" HOMEPAGE="https://github.com/unified-font-object/ufoNormalizer" -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip" -S="${WORKDIR}/${MY_P}" +SRC_URI="$(pypi_sdist_url ${PN} ${PV} .zip)" SLOT="0" LICENSE="BSD" diff --git a/dev-python/websocket-client/Manifest b/dev-python/websocket-client/Manifest index d75037ef093d..c88d7387dcc0 100644 --- a/dev-python/websocket-client/Manifest +++ b/dev-python/websocket-client/Manifest @@ -1 +1,2 @@ DIST websocket-client-1.5.1.tar.gz 49942 BLAKE2B 7996798a5ff8c2eb1322fc7a9fa61d5cff99c71413293ce5b05f9af3581cff472350e79813ce3b393ce4fa4b7d19de956f0ad9ff6232c426be3c8adb8c91fb40 SHA512 9fce0c8de64e051b151c40a295a7f722ed7f95d19bd92ffd5cd9c64962821024e79b70d18ca7e30ca8b8707ba86be041134f13d7e2cf7bc4a4539eb22ba60895 +DIST websocket-client-1.5.2.tar.gz 50761 BLAKE2B 5b97ce1125a8ae2f95ea103a2436d8c3471bd88c9b6f631ed9cbc1e55bff3eb13e93f662f6892c65b0f035dca66f2b2a43230f228b4f174c56c0203f5e044b07 SHA512 0837dae6ea1096421482dc1882e522d9e9041d9777ef31517116592f7b537735d1d8e319e910481be4abaceda8f79855397e4dfce2c9e622d7e7b6e6577e404e diff --git a/dev-python/websocket-client/websocket-client-1.5.2.ebuild b/dev-python/websocket-client/websocket-client-1.5.2.ebuild new file mode 100644 index 000000000000..410b15670261 --- /dev/null +++ b/dev-python/websocket-client/websocket-client-1.5.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="WebSocket client for python with hybi13 support" +HOMEPAGE=" + https://github.com/websocket-client/websocket-client/ + https://pypi.org/project/websocket-client/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="examples" + +BDEPEND=" + test? ( + dev-python/python-socks[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest + +python_install_all() { + if use examples; then + docompress -x "/usr/share/doc/${PF}/examples" + dodoc -r examples + fi + distutils-r1_python_install_all +} diff --git a/dev-python/xlsxwriter/Manifest b/dev-python/xlsxwriter/Manifest index cac2c779a255..1b0a78fc26ea 100644 --- a/dev-python/xlsxwriter/Manifest +++ b/dev-python/xlsxwriter/Manifest @@ -1 +1,2 @@ DIST XlsxWriter-RELEASE_3.1.0.gh.tar.gz 36681465 BLAKE2B 13a9a03f49714136556c24b2e20bdac6366179a242fe4190abeec95859f572e47928f50543b8b8639662d8053f49d2fcc818ed3a74106d1773ff75c363024e13 SHA512 97ecc110bb5fd8b72ed66e9415ea6488a0d52505d93722b268258ecd299c21e872b4db2228dc6581da3e8b4ae93ca5252bff448c290de4232d4e5792aa8e43c4 +DIST XlsxWriter-RELEASE_3.1.1.gh.tar.gz 36691990 BLAKE2B 5341a2699fec7015003a602fca08483cff68cfa6f782c41d49f1801b4aab1a332048cb9ddb02fba0bb69a227cdcb22279e9fccf9b6808220724066e26886c0bc SHA512 c827bdaefd962864e09673b891ec267da89306f65ea29ccab1807af8ed89f22721d6ca296b7b83d4099bdeadf4508f576e6e618828ffc8abed1d38b3c84c6076 diff --git a/dev-python/xlsxwriter/xlsxwriter-3.1.1.ebuild b/dev-python/xlsxwriter/xlsxwriter-3.1.1.ebuild new file mode 100644 index 000000000000..5878ec751f37 --- /dev/null +++ b/dev-python/xlsxwriter/xlsxwriter-3.1.1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 + +TAG=RELEASE_${PV} +MY_P=XlsxWriter-${TAG} +DESCRIPTION="Python module for creating Excel XLSX files" +HOMEPAGE=" + https://github.com/jmcnamara/XlsxWriter/ + https://pypi.org/project/XlsxWriter/ +" +SRC_URI=" + https://github.com/jmcnamara/XlsxWriter/archive/${TAG}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +distutils_enable_tests pytest |
