diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-12-08 01:40:02 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-12-08 01:40:02 +0000 |
| commit | da82d90935bfd6e16c24c0306b89362d3daf65dc (patch) | |
| tree | 8f97869fcf5c3c20f29744228b108a5d17013af2 /dev-python | |
| parent | 656b259da3cf1dba74589debc6773b1f736a46b8 (diff) | |
| download | baldeagleos-repo-da82d90935bfd6e16c24c0306b89362d3daf65dc.tar.gz baldeagleos-repo-da82d90935bfd6e16c24c0306b89362d3daf65dc.tar.xz baldeagleos-repo-da82d90935bfd6e16c24c0306b89362d3daf65dc.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
23 files changed, 501 insertions, 5 deletions
diff --git a/dev-python/Faker/Faker-9.9.0.ebuild b/dev-python/Faker/Faker-10.0.0.ebuild index 1f1f09ada79c..1f1f09ada79c 100644 --- a/dev-python/Faker/Faker-9.9.0.ebuild +++ b/dev-python/Faker/Faker-10.0.0.ebuild diff --git a/dev-python/Faker/Manifest b/dev-python/Faker/Manifest index 518b2af26425..902644a98160 100644 --- a/dev-python/Faker/Manifest +++ b/dev-python/Faker/Manifest @@ -1,5 +1,5 @@ +DIST Faker-10.0.0.tar.gz 1198872 BLAKE2B 60e4f34a597ca11b0699c330f6cdb0f7f387bb6c54d769513f8e091d00242c7ba4e62fa6b3411ad313a4713e9311b729fb6068acfc4a02b66f07c66656677f33 SHA512 0c22b18d16815ee37d2ea79b4142100479c7b9b9f169817dc9e0fe39495f0646e8d61d704ddba7d36eefb6cb3fb744d179a57216abb15c15ee357c8b12b8b5a4 DIST Faker-9.8.1.tar.gz 1198229 BLAKE2B 8877a9da582fcd81b8b374c344343c9ba4a21d1cd0160694300030b2ace4b7b517fb8a62c1f0ffeacf3a950703b882ff5b484d54fdabc5b9c8b49658c45d421f SHA512 a93d625311358100c7a1dfe33dfda64b5890dd25e8d6e3dd095329ab2156c76abf3f00fe6b2c335316bbe3f42322adda2bcae3a9a312ddf4778d8143796667a0 DIST Faker-9.8.2.tar.gz 1198270 BLAKE2B 1a7ea02b43afe0ff494ee39dac4259e9eb67fa3230b9b5744a96b4913ac471ed3ccf29f91b2db02124dfefc232a9fae05ce7ddc6e9fd0cbf27bd94468a7702b6 SHA512 37a35a02ea81a871e77378ceecdd65a63c97dd82ba9aec04c2a8f7a827e5bdb264a6ed0927c534a67bf4b06886dcb2a98a188798fe7c860135deb8d6aa6e36e3 DIST Faker-9.8.3.tar.gz 1192380 BLAKE2B 90acea6d0d78307bc9e1e0d44ec2a1761f1039fdd0a3aad9ac495c139b87a055e8b43dc44bd7722aea52379506858548dbd6cd25c62697b3953f748e4ed053e5 SHA512 943adddc32ac275a030442c3ec0a529c3b97b35de9f245c027d21a90dcf7115753e1419b6b31c8d01f867c71a67fd469b75933d5475b343c47efc43be42df084 DIST Faker-9.8.4.tar.gz 1198752 BLAKE2B d632ed8bafd61eedd304e132d7257deb3c8da1cb86071dabd476b3baa335a182a344f70a6ead583a196ce5c9077664a4f424b9a3b721966f78c1086a026f3026 SHA512 76dbd86501c0b8427d3318b24dc6e59c9f562fead0807310bda577c018b5ab558ca0f01ca17a9099a5f060e956c1f17507fc146288980ea7081761df2a5fb921 -DIST Faker-9.9.0.tar.gz 1192705 BLAKE2B 748ff7b18a12d95f69d75fb87e35ff9d52ff55c882a7a5ddfabd01007a098750cad14af7152b2c2fd3f4b54f08fdee57b4b8656a7b23239c6d25b66b319f0e78 SHA512 00695d1511f9c6472094807b98efc4a320ed00a61f4236e1481a60a951af448f07594d48f4a90c18c85d254f1241f735e3bc0f5775187e0dd5f3a7fee8237efa diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest index 07cd085595e0..53143ba51c04 100644 --- a/dev-python/django/Manifest +++ b/dev-python/django/Manifest @@ -4,3 +4,5 @@ DIST Django-3.1.14.checksum.txt 2556 BLAKE2B bb17e596d076489ac00b6b3eb98ab294969 DIST Django-3.1.14.tar.gz 9659386 BLAKE2B 5e9317e777e3879f2cea3eea98018884c073eed47c3da9aab09858bc0869f4f34f48d20860c32344446498879b6c9b5cb9d5ba12f0528b703436a2c37325d286 SHA512 5356f453e23a33092221137769a594608771c5832c0dc00453e571fee056438b5366eba720b1fefa33099356980ee56a9665fc6ed7c86f5412e45d6432940e64 DIST Django-3.2.10.checksum.txt 2556 BLAKE2B cdc1b28f213e43b27b0534587b8475bd68979f3c179357a7978109fa85ee0a4bbd5d0bba4625e6850aca603f688483dbdcb102a7411e74394079d2b0c0ef767e SHA512 852f867a5a11f11f98710cf27fdba2774de537dbe1e5edc402214acb65a6e00bf05a7b4fe5eb663cc21aa6ee9da890d7c74172a17c1b084db89ada1ff1db3745 DIST Django-3.2.10.tar.gz 9811341 BLAKE2B a2ed3dda0d88a884443cc07446921fcd9cc9f302b5f578910f2e4027f8d87b92717bb22a7bf73cdb44fb7ddf4c178349e31eee6b796a45727356cde24e41d318 SHA512 6b793a1e544ab988d909d9fc5152d9dbba864c4916bb1f703a07c72f1a945ba93ba53b2f8843b67a16d0e68a736c43faf2f3d8aaa0867de1668c3845c24da7da +DIST Django-4.0.checksum.txt 2529 BLAKE2B 0488acaf4fe37c99e3bd2370d47c47db81ffcad961212a88e7d53349299fdb3cbdc4a10fea3729d6d2353405216b8073abe8fcb2596b845760f16f2539ba4417 SHA512 26ac6ce6118d60d7bd0f0ef4c24c590eef7a102f546c3163000ad392d8f64b1c24648b8a4110df81170d60e3528466ceae974d408a700cf238dfdb8f9386d1ce +DIST Django-4.0.tar.gz 9980403 BLAKE2B fb3cdaa8beae6983930d1e2760d617f1a96e52d7f538269709b07cc31ef049511b0517c1538934cf9ede5e374cd466df05ebabe29f1f8fb8c4c3928e8a08a1fc SHA512 6fec0521ee7da209f3b0fb1487ef4e8ef16bf3bf4ea108efc7a2ee3a9d28c7c33e5e3b2bd92e231641b0be902b45d1fd8b712c48a33496ae2c865a3698b25e14 diff --git a/dev-python/django/django-4.0.ebuild b/dev-python/django/django-4.0.ebuild new file mode 100644 index 000000000000..7ad4f700aafd --- /dev/null +++ b/dev-python/django/django-4.0.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +PYTHON_REQ_USE='sqlite?,threads(+)' + +inherit bash-completion-r1 distutils-r1 optfeature verify-sig + +MY_P=${P^} +DESCRIPTION="High-level Python web framework" +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" +SRC_URI=" + https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz + verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +# admin fonts: Roboto (media-fonts/roboto) +LICENSE+=" Apache-2.0" +# admin icons, jquery, xregexp.js +LICENSE+=" MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" +IUSE="doc sqlite test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/asgiref-3.4.1[${PYTHON_USEDEP}] + >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/backports-zoneinfo[${PYTHON_USEDEP}] + ' python3_8 pypy3)" +BDEPEND=" + test? ( + $(python_gen_impl_dep sqlite) + ${RDEPEND} + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[webp,${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/selenium[${PYTHON_USEDEP}] + dev-python/tblib[${PYTHON_USEDEP}] + sys-devel/gettext + !!<dev-python/ipython-7.21.0-r1 + !!=dev-python/ipython-7.22.0-r0 + ) + verify-sig? ( >=app-crypt/openpgp-keys-django-20201201 ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-4.0-bashcomp.patch +) + +distutils_enable_sphinx docs --no-autodoc + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" + cd "${WORKDIR}" || die + fi + + default +} + +python_prepare_all() { + # Fails because of warnings + sed -i 's/test_dumpdata_proxy_with_concrete/_&/' tests/fixtures/tests.py + + distutils-r1_python_prepare_all +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || + die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature_header "Additional Backend support can be enabled via:" + optfeature "MySQL backend support" dev-python/mysqlclient + optfeature "PostgreSQL backend support" dev-python/psycopg:2 + optfeature_header + optfeature "GEO Django" "sci-libs/gdal[geos]" + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + optfeature "Password encryption" dev-python/bcrypt + optfeature "High-level abstractions for Django forms" dev-python/django-formtools +} diff --git a/dev-python/django/files/django-4.0-bashcomp.patch b/dev-python/django/files/django-4.0-bashcomp.patch new file mode 100644 index 000000000000..06d121cce102 --- /dev/null +++ b/dev-python/django/files/django-4.0-bashcomp.patch @@ -0,0 +1,56 @@ +From 103a0f5559795f6517c24ab65d2305a8320acf8a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 6 May 2020 07:24:05 +0200 +Subject: [PATCH] Remove completions unsuitable for autoloading + +The override of 'python*' completions, as well as the attempt +to './manage.py' completion are not going to work with autoloader. +Strip them. +--- + extras/django_bash_completion | 33 +-------------------------------- + 1 file changed, 1 insertion(+), 32 deletions(-) + +diff --git a/extras/django_bash_completion b/extras/django_bash_completion +index 6fb941bef6..2f761ceb83 100755 +--- a/extras/django_bash_completion ++++ b/extras/django_bash_completion +@@ -36,35 +36,4 @@ _django_completion() + COMP_CWORD=$COMP_CWORD \ + DJANGO_AUTO_COMPLETE=1 $1 ) ) + } +-complete -F _django_completion -o default manage.py django-admin +- +-_python_django_completion() +-{ +- if [[ ${COMP_CWORD} -ge 2 ]]; then +- local PYTHON_EXE=${COMP_WORDS[0]##*/} +- if echo "$PYTHON_EXE" | grep -qE "python([3-9]\.[0-9])?"; then +- local PYTHON_SCRIPT=${COMP_WORDS[1]##*/} +- if echo "$PYTHON_SCRIPT" | grep -qE "manage\.py|django-admin"; then +- COMPREPLY=( $( COMP_WORDS=( "${COMP_WORDS[*]:1}" ) +- COMP_CWORD=$(( COMP_CWORD-1 )) +- DJANGO_AUTO_COMPLETE=1 ${COMP_WORDS[*]} ) ) +- fi +- fi +- fi +-} +- +-# Support for multiple interpreters. +-unset pythons +-if command -v whereis &>/dev/null; then +- python_interpreters=$(whereis python | cut -d " " -f 2-) +- for python in $python_interpreters; do +- [[ $python != *-config ]] && pythons="${pythons} ${python##*/}" +- done +- unset python_interpreters +- pythons=$(echo "$pythons" | tr " " "\n" | sort -u | tr "\n" " ") +-else +- pythons=python +-fi +- +-complete -F _python_django_completion -o default $pythons +-unset pythons ++complete -F _django_completion -o default django-admin +-- +2.34.1 + diff --git a/dev-python/google-api-python-client/Manifest b/dev-python/google-api-python-client/Manifest index cd9c4260b302..101626048a7d 100644 --- a/dev-python/google-api-python-client/Manifest +++ b/dev-python/google-api-python-client/Manifest @@ -1,2 +1,3 @@ DIST google-api-python-client-2.31.0.tar.gz 27822400 BLAKE2B 447d97ec10376c1a9e911023051b8e3e278db782f91e0e4c1eb72f4ba54db0498439fca42633bc9fdf16ac2982a286103d6d7a99b701b0ff30e024e131b5e175 SHA512 80359f415e2ec4c42b7e12aa333d91849a4246fd744ec627397099be261176add44bf4ada875bc353729bbbca589be59e6cad3810f609d9d23f9fb458bf2c69e DIST google-api-python-client-2.32.0.tar.gz 27954196 BLAKE2B 1863735d3862a11b3fce3dc270442b9cd5612375062ee447be07baa35578668db53d8415e7c88ad29b9c6ede02113686ba7ea6b994bfb6b2b72bb2bf5139c86f SHA512 2a9300020ec28da02ae689b4527fcfea6f3f78131a5431a3c3720dae1868bfa76871330685fdb4403328cc21736099fe8e346cfbf215e19f8cb00d1f5d1707f6 +DIST google-api-python-client-2.33.0.tar.gz 28292803 BLAKE2B b7e285a78d06aa9c0cb5609521443aa048220bb4b83e900b5915603c3cc1bd2eb6ff009c43503a8178f4ca2281fed0488bae9fbe0c29bf7a9df9ac2d4cf294e4 SHA512 47c8352440a2ffd3beca049a200c4a0cb1a2299b5fbce70b64a913f6121e731325831b229102d9940b386e082592efd49fdfc9409055b32f172551862740bd63 diff --git a/dev-python/google-api-python-client/google-api-python-client-2.33.0.ebuild b/dev-python/google-api-python-client/google-api-python-client-2.33.0.ebuild new file mode 100644 index 000000000000..f0739995529c --- /dev/null +++ b/dev-python/google-api-python-client/google-api-python-client-2.33.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="Google API Client for Python" +HOMEPAGE="https://github.com/googleapis/google-api-python-client" +SRC_URI="https://github.com/googleapis/google-api-python-client/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + >=dev-python/httplib2-0.15[${PYTHON_USEDEP}] + <dev-python/httplib2-1[${PYTHON_USEDEP}] + dev-python/google-api-core[${PYTHON_USEDEP}] + >=dev-python/google-auth-1.35.0[${PYTHON_USEDEP}] + >=dev-python/google-auth-httplib2-0.1.0[${PYTHON_USEDEP}] + >=dev-python/uritemplate-3.0.0[${PYTHON_USEDEP}] + <dev-python/uritemplate-5[${PYTHON_USEDEP}] + " +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/oauth2client[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + )" + +distutils_enable_tests --install pytest + +python_test() { + local EPYTEST_DESELECT=( + # require Internet access (and credentials) + tests/test_discovery.py::DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive + tests/test_discovery.py::DiscoveryFromDocument::test_api_endpoint_override_from_client_options_mapping_object + ) + + distutils_install_for_testing + epytest tests +} diff --git a/dev-python/memory_profiler/Manifest b/dev-python/memory_profiler/Manifest index eb26320def57..c6271af5f80f 100644 --- a/dev-python/memory_profiler/Manifest +++ b/dev-python/memory_profiler/Manifest @@ -1 +1,2 @@ DIST memory_profiler-0.58.0.gh.tar.gz 140692 BLAKE2B 2f3917d833dfcc722b61871c7e704e869527a389b10a81b473989b8455630f5defa5f5b21a172708070b89468c7dd66682cd3b9c0bf435e9be49651b69b50137 SHA512 5c02933acffc05f42d2ae98a069d36563e1d26515d439d94ad3903960dd06cd378faae3000b26c022770e71e83db6f770ceaf63cabb92f4159bda0ff9cc4e849 +DIST memory_profiler-0.59.gh.tar.gz 142586 BLAKE2B b9c8cffbd03f980937d30626facf431e6effd9a86a21fbe629f4238a2f78f2d65242637105ad3a07b4158a6335a541701bba657941bb23c9da0f49a1113402ee SHA512 f70ad8f871bd5068e2817049231abee7e535cb352f0444dcb0d9d072b9f4dda944e85ec7854855307a9748257da80f53dd50fe17fefbd73045dce1306f51f88d diff --git a/dev-python/memory_profiler/memory_profiler-0.59.ebuild b/dev-python/memory_profiler/memory_profiler-0.59.ebuild new file mode 100644 index 000000000000..bf625fa4b0a0 --- /dev/null +++ b/dev-python/memory_profiler/memory_profiler-0.59.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="A module for monitoring memory usage of a python program" +HOMEPAGE="https://pypi.org/project/memory-profiler/ https://github.com/pythonprofilers/memory_profiler" +SRC_URI=" + https://github.com/pythonprofilers/memory_profiler/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +IUSE="examples" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" + +# dev-lang/mercury: collision on 'mprof' +# https://bugs.gentoo.org/571176 +RDEPEND="dev-python/psutil[${PYTHON_USEDEP}] + !dev-lang/mercury" + +distutils_enable_tests pytest + +python_test() { + "${EPYTHON}" -m memory_profiler test/test_as.py || die + "${EPYTHON}" -m memory_profiler test/test_func.py || die + "${EPYTHON}" -m memory_profiler test/test_gen.py || die + "${EPYTHON}" -m memory_profiler test/test_loop.py || die + "${EPYTHON}" -m memory_profiler test/test_loop_decorated.py || die + "${EPYTHON}" -m memory_profiler test/test_mprofile.py || die + "${EPYTHON}" -m memory_profiler test/test_nested.py || die + "${EPYTHON}" -m memory_profiler test/test_precision_command_line.py || die + "${EPYTHON}" -m memory_profiler test/test_unicode.py || die + + "${EPYTHON}" test/test_exception.py || die + "${EPYTHON}" test/test_exit_code.py || die + "${EPYTHON}" test/test_global.py || die + "${EPYTHON}" test/test_import.py || die + "${EPYTHON}" test/test_memory_usage.py || die + "${EPYTHON}" test/test_mprof.py || die + "${EPYTHON}" test/test_precision_import.py || die + "${EPYTHON}" test/test_stream_unicode.py || die + "${EPYTHON}" test/test_tracemalloc.py || die +} + +python_install_all() { + use examples && dodoc -r examples + + distutils-r1_python_install_all +} diff --git a/dev-python/memory_profiler/metadata.xml b/dev-python/memory_profiler/metadata.xml index 1a47dd06f77b..a81146eca302 100644 --- a/dev-python/memory_profiler/metadata.xml +++ b/dev-python/memory_profiler/metadata.xml @@ -6,7 +6,7 @@ <name>Python</name> </maintainer> <upstream> - <remote-id type="pypi">memory_profiler</remote-id> + <remote-id type="pypi">memory-profiler</remote-id> </upstream> <origin>gentoo-staging</origin> <stabilize-allarches/> diff --git a/dev-python/phonenumbers/Manifest b/dev-python/phonenumbers/Manifest index 82247b4d3278..54994d1c8d1b 100644 --- a/dev-python/phonenumbers/Manifest +++ b/dev-python/phonenumbers/Manifest @@ -1,2 +1,3 @@ DIST phonenumbers-8.12.37.tar.gz 2268402 BLAKE2B 7f227f37cf435c5aa00f860d6af9a349aba766ff0d9293d43eed96b9e0a3a27fff2d7f644b8dc8a9911baba340ba07dee4aaa33f864688678f5289c828db955e SHA512 ab71f3def97168926bb9114da8ea20eceb92177a7df22b201f0dcd5aea79e1d099f04d2075383b01137f831117433f52d9ef3e7d11df34c07b49bffd7d06682a DIST phonenumbers-8.12.38.tar.gz 2268865 BLAKE2B 491e8e881a2c938c77053a16c7af6e01bf19eb83d1abc94e08eb23dd8ed6d3e864509d98a95f0300dff66a242cae01c6b158e0e1d5085334b4cb2de1e3b6bb1e SHA512 e5ff96fa803180f0843959db7337b9a2c23fe1ba60e4de50b2d679430b160c16a47f1a666c06ae9e8b35980a42fface89a55d866d824ce6db61cef8220ac0e1b +DIST phonenumbers-8.12.39.tar.gz 2268929 BLAKE2B b89250a8f2df77302bd57ead7bc2d3c1bc3dfb87d246f235e5c53f40fb6cbe6f7b525f3af3f6412bb6a44858aba4def492c3e3bbc25a0e129cf021ad27633ac1 SHA512 018c33a0d602cc4d4e4a6a154d2fcf15cd036a1d247e5bc79ff0e6932a7ca6ef452a193b2e6d090cfe43a3347d374b183d203763247c9653f9ea1af3a7d980d1 diff --git a/dev-python/phonenumbers/phonenumbers-8.12.39.ebuild b/dev-python/phonenumbers/phonenumbers-8.12.39.ebuild new file mode 100644 index 000000000000..717843f08927 --- /dev/null +++ b/dev-python/phonenumbers/phonenumbers-8.12.39.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="Python port of Google's libphonenumber" +HOMEPAGE="https://github.com/daviddrysdale/python-phonenumbers" +SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DOCS=(README.md) + +distutils_enable_tests setup.py diff --git a/dev-python/pytest-django/Manifest b/dev-python/pytest-django/Manifest index 50325da8149f..03149a12de0e 100644 --- a/dev-python/pytest-django/Manifest +++ b/dev-python/pytest-django/Manifest @@ -1,3 +1,4 @@ DIST pytest-django-4.4.0.gh.tar.gz 72905 BLAKE2B 4532bef9afdc7f11fdf9a16f019810d10e4e580b517958722184d361a69a195f6c66f7f3bc18be6cb7f63fe4576963c59a00d72bd8a42f104d26e5ad091c6d54 SHA512 47e4a84606aeb6bb99ed74603faf988298d52f81f74ec8e4608cb670f0f331ad0c6555f3e4a516fc7834aea4e634f849dc0ff6d446a86e924a116fbe90bd79e0 DIST pytest-django-4.5.0.gh.tar.gz 75264 BLAKE2B 7743e21cd397cb5620a9a4ba73edf049c9540a64ba675baabd768c6060872eb2911384346f21c598469db604b78084f27e7e6da7423fc26cb7c550934cf4ed49 SHA512 9d86a35a05521e1cc3582f17fd6d78367d0d8383ee06e5a2f97ea5da658be4008471094d6c0b4c1d43da3091cf7e936e40ec984d232f9e3cc8cf69cd88adb9b9 DIST pytest-django-4.5.1.gh.tar.gz 75348 BLAKE2B 36bac4524ee4dab37ee661780fd4033f16a29677fa00a35ad345f092c46454eb67fcbb111e2422221ebf335a1046e353ed53f2b029b493c82eac7f435d1a275c SHA512 cddc87b989933b2537caaf3d369ec101331ce544a8e66298d170b985810f21425059eb9a516fe37d97cbb5a38a430410cfff4da086d82d62689b65215b59cc66 +DIST pytest-django-4.5.2.gh.tar.gz 75429 BLAKE2B 2e8fba037c7618c6dd1c9200c5c44a7b00a13a2d70b4a593a461af3dbc0333b6814ceca16f88a58f1b6aeea2700cac12b589ede702b8eaf023fb3948e0ab8b9a SHA512 09ed5bfe850599e95190d9b15e9383d1249ea575a7b3921744583da6266dd2c8d3eb4f93c8de96d98e1a8e33d1639937470cdc6d11558fcaea57d014dce13500 diff --git a/dev-python/pytest-django/pytest-django-4.5.2.ebuild b/dev-python/pytest-django/pytest-django-4.5.2.ebuild new file mode 100644 index 000000000000..0d2d22560a44 --- /dev/null +++ b/dev-python/pytest-django/pytest-django-4.5.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="A Django plugin for py.test" +HOMEPAGE=" + https://pypi.org/project/pytest-django/ + https://pytest-django.readthedocs.io/ + https://github.com/pytest-dev/pytest-django/" +SRC_URI=" + https://github.com/pytest-dev/pytest-django/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="BSD" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +SLOT="0" + +RDEPEND=" + dev-python/django[${PYTHON_USEDEP}] + >=dev-python/pytest-5.4[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools_scm-1.11.1[${PYTHON_USEDEP}] + test? ( + dev-python/django-configurations[${PYTHON_USEDEP}] + ) +" + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + +distutils_enable_tests --install pytest + +python_test() { + local EPYTEST_DESELECT=( + # something else may be loading it + tests/test_django_settings_module.py::test_django_not_loaded_without_settings + ) + + distutils_install_for_testing + cp -r pytest_django_test "${TEST_DIR}"/lib || die + + local -x DJANGO_SETTINGS_MODULE + for DJANGO_SETTINGS_MODULE in pytest_django_test.settings_sqlite{,_file}; do + einfo "Testing ${DJANGO_SETTINGS_MODULE}" + epytest tests + done +} diff --git a/dev-python/pytest-testinfra/Manifest b/dev-python/pytest-testinfra/Manifest index 14286a38f523..272d76610acf 100644 --- a/dev-python/pytest-testinfra/Manifest +++ b/dev-python/pytest-testinfra/Manifest @@ -1 +1,2 @@ DIST pytest-testinfra-6.4.0.tar.gz 77516 BLAKE2B 2baf5940e8736cbe78d8017a82b3a8fdb6df95b89acccd49ecd354447b7ea88079f48211e0acea46a0d8702b67609fe6f85f730c66e781a99d8a92b52b3c99b9 SHA512 acd2c7f9daeb391815a32c972a3542c0d643a716f3cffcb66f4203435ebac789333edb91c83d2778ae8da93b676b245fd47821bca9218faa3e7b50e6764087f4 +DIST pytest-testinfra-6.5.0.tar.gz 77177 BLAKE2B 98a8f10f7cf62f204c117d295496a7dfa4de476f5cde457af6f5bc71b22e12e9f02b4893adc6b0d1be11915ed652f628c2574fd44750c82c690e3d8326e29c4c SHA512 f7fcf8facafc0d99b06f55f4241c39b610ff7648b0049c584a75b46944b522b957c98c353f147d74bc8a72f677a179380c456b0868f9dae9af514a9c95d55b13 diff --git a/dev-python/pytest-testinfra/pytest-testinfra-6.5.0.ebuild b/dev-python/pytest-testinfra/pytest-testinfra-6.5.0.ebuild new file mode 100644 index 000000000000..64340c398f88 --- /dev/null +++ b/dev-python/pytest-testinfra/pytest-testinfra-6.5.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Write unit tests in Python to test actual state of your servers" +HOMEPAGE="https://github.com/pytest-dev/pytest-testinfra" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]" +# Ansible is called via its CLI +BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + app-admin/ansible + app-admin/salt[${PYTHON_USEDEP}] + dev-python/paramiko[${PYTHON_USEDEP}] + dev-python/pywinrm[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +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/rq/Manifest b/dev-python/rq/Manifest index 23ae4a531bfc..500022809a50 100644 --- a/dev-python/rq/Manifest +++ b/dev-python/rq/Manifest @@ -1 +1,2 @@ +DIST rq-1.10.1.tar.gz 599678 BLAKE2B 0673ca0eea69c3f86e50f5609a9c4ed2c2d93d331479510365a744461a5d878e6de6a9683356562754a25760f8ba1d8a65f6d5acfe878e488a70c54dc0bb5b54 SHA512 1a12bd5db27eb3f9303b2f3465c2f22092f7eebfabfc1e6aa7f65de7ea139df3833f9bbdc7061de564b2418608641b3755993bb918efbf93b04df67ca942ea09 DIST rq-1.10.tar.gz 598643 BLAKE2B 503c2e45d134434373eb89ce205dc1a82f16e0281c1f872046d51538b3352b0ffeeef72f64991d093f271c276c1a8a3be92fdda4d7db3e083549f69ea7a04560 SHA512 7e2de3e36309eb3c095d34c28d9cba340d0699b8b4b457491d12420bfc1370e0336dc10f4f1115e83ac0ea8884500750895417f8b5c2090105d3c9e32d1b5bec diff --git a/dev-python/rq/rq-1.10.1.ebuild b/dev-python/rq/rq-1.10.1.ebuild new file mode 100644 index 000000000000..1c62576fd51f --- /dev/null +++ b/dev-python/rq/rq-1.10.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="simple, lightweight library for creating and processing background jobs" +HOMEPAGE="https://python-rq.org https://github.com/rq/rq" +SRC_URI="https://github.com/rq/rq/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" + +RDEPEND=" + >=dev-python/click-5.0[${PYTHON_USEDEP}] + >=dev-python/redis-py-3.5.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-db/redis + dev-python/mock[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/sentry-sdk[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests --install pytest + +src_test() { + local redis_pid="${T}"/redis.pid + local redis_port=6379 + local redis_test_config="daemonize yes + pidfile ${redis_pid} + port ${redis_port} + bind 127.0.0.1 + " + + # Spawn Redis itself for testing purposes + # NOTE: On sam@'s machine, spawning Redis can hang in the sandbox. + # I'm not restricting tests yet because this doesn't happen for anyone else AFAICT. + elog "Spawning Redis" + elog "NOTE: Port ${redis_port} must be free" + /usr/sbin/redis-server - <<< "${redis_test_config}" || die + + # Run the actual tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${redis_pid}")" || die +} diff --git a/dev-python/terminaltables/Manifest b/dev-python/terminaltables/Manifest index 6ce24a37c03c..9b87fce62975 100644 --- a/dev-python/terminaltables/Manifest +++ b/dev-python/terminaltables/Manifest @@ -1 +1,2 @@ DIST terminaltables-3.1.0.tar.gz 278484 BLAKE2B 733bcfcdc51c5e78e85e8f7fc9db00fa96c1ad48f76a9ec48ed546dc0acd62af90f437de346fe05d4cb09151b33ddea2f62beb21b418d7f76d8a719423a5f694 SHA512 dc49458652fff8bc6094d316d84c9b8e9fca1a26e3230c0b668bc03ec8528793f4ef024e8032d4a56fbfabfdfd4a1142870f550f0b373ba6a42dd2e3ead3f501 +DIST terminaltables-3.1.10.tar.gz 282122 BLAKE2B 53d5ecde38370f5b05d3eaae4b618ada6991214feadc7e826467dafede5baaf8292e47e6b2be903eb8ae6d46e3066314fe7950d7330056cd3053e0d643ad1a9e SHA512 84fa403cee4206b6b19de0206d89535bd2965a0796e1890dd9b0a9c6593c5f41d0d24b88ee9db426067c777712a4e810d67d4d0246496239a7a96b53a24e8174 diff --git a/dev-python/terminaltables/terminaltables-3.1.10.ebuild b/dev-python/terminaltables/terminaltables-3.1.10.ebuild new file mode 100644 index 000000000000..4958ea544400 --- /dev/null +++ b/dev-python/terminaltables/terminaltables-3.1.10.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_SETUPTOOLS=pyproject.toml +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Generate simple tables in terminals from a nested list of strings" +HOMEPAGE="https://robpol86.github.io/terminaltables/" +SRC_URI=" + https://github.com/matthewdeanmartin/terminaltables/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND=" + test? ( + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/colorclass[${PYTHON_USEDEP}] + dev-python/termcolor[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/terminaltables-3.1.0-stdout.patch +) + +src_prepare() { + # workaround pp2sp complaining about unsupported exclude, + # even though it's empty (fix will be included in pp2sp-22) + sed -i -e 's:^exclude:empty-&:' pyproject.toml || die + distutils-r1_src_prepare +} diff --git a/dev-python/terminaltables/terminaltables-9999.ebuild b/dev-python/terminaltables/terminaltables-9999.ebuild index b69572ebeb6b..856fcc1959dc 100644 --- a/dev-python/terminaltables/terminaltables-9999.ebuild +++ b/dev-python/terminaltables/terminaltables-9999.ebuild @@ -1,15 +1,16 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 +DISTUTILS_USE_SETUPTOOLS=pyproject.toml PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -EGIT_REPO_URI="https://github.com/Robpol86/${PN}.git" + inherit distutils-r1 git-r3 DESCRIPTION="Generate simple tables in terminals from a nested list of strings" HOMEPAGE="https://robpol86.github.io/terminaltables/" -SRC_URI="" +EGIT_REPO_URI="https://github.com/matthewdeanmartin/${PN}.git" LICENSE="MIT" SLOT="0" diff --git a/dev-python/websocket-client/Manifest b/dev-python/websocket-client/Manifest index 7ee540f1cf52..f5d35705beea 100644 --- a/dev-python/websocket-client/Manifest +++ b/dev-python/websocket-client/Manifest @@ -1,2 +1,3 @@ DIST websocket-client-1.2.1.tar.gz 45921 BLAKE2B 3717daac2aafcc13cfa71cd5678aeef7e6dd1933b072c40aa26bb315b2e2c84dea5734299fb954179b22a659fa271734ba78724e5f9d92be7a35efe1f611dd8b SHA512 fdbeb7ac2add27478a17b388ac62e9378094a368f29749d8b63c274ee41836506369dddd083956f42f1f2d74948392b3ddd59b801c98f9e028c126bdb54c636b DIST websocket-client-1.2.2.tar.gz 45971 BLAKE2B b62ba2d7b6d1b0d7a95f9350f1304cb178854a459bf4fb601b0c56404cfa2ec52824e6533b5f546b3f4e91a9b4a40072782640acdcdd170911a92efdea9c2ca0 SHA512 a47b70f754ee5b9f954a6b5a7cb788db21765776be8f3564e6a339ebd3a6b46c7b363eef208f92da4758f21e9923b97be08554586d3b30e9ad2251948a054add +DIST websocket-client-1.2.3.tar.gz 46434 BLAKE2B e1e294938b41e6d82fa5cf8cd58fd9653e5170e11e546a04bce6dc0c8a9752cc25a21dbc1352fc614651f9fee43410a269a35e4c8dbacffec14f1ed8e8526f89 SHA512 5e5e00d43b7b4da5e2cb0d00d1e743e420791856e51e2b3d28d78219edcd7a2eace834ae4d7ee2faf89ab27c2b65f063e508f0e470a47ff9d88c36748b3dd113 diff --git a/dev-python/websocket-client/websocket-client-1.2.3.ebuild b/dev-python/websocket-client/websocket-client-1.2.3.ebuild new file mode 100644 index 000000000000..f3c1afef86e7 --- /dev/null +++ b/dev-python/websocket-client/websocket-client-1.2.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +inherit distutils-r1 + +DESCRIPTION="WebSocket client for python with hybi13 support" +HOMEPAGE="https://github.com/websocket-client/websocket-client" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~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 +} |
