diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-06-17 01:46:12 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-06-17 01:46:12 +0000 |
| commit | 7e8058ee5b2a99718e435ccf722b7616dd64873b (patch) | |
| tree | ef9d39cdd325c80dbf3ceb29d8d1534f83965b4d /dev-python | |
| parent | f2738d289d42d24b0bc13bba121d529e7366258d (diff) | |
| download | baldeagleos-repo-7e8058ee5b2a99718e435ccf722b7616dd64873b.tar.gz baldeagleos-repo-7e8058ee5b2a99718e435ccf722b7616dd64873b.tar.xz baldeagleos-repo-7e8058ee5b2a99718e435ccf722b7616dd64873b.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
18 files changed, 159 insertions, 45 deletions
diff --git a/dev-python/asgiref/asgiref-3.3.4.ebuild b/dev-python/asgiref/asgiref-3.3.4.ebuild index 53b1efc508c1..e75e4b907410 100644 --- a/dev-python/asgiref/asgiref-3.3.4.ebuild +++ b/dev-python/asgiref/asgiref-3.3.4.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86" +KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv sparc x86" RDEPEND=" $(python_gen_cond_dep ' diff --git a/dev-python/emcee/emcee-3.0.2.ebuild b/dev-python/emcee/emcee-3.0.2.ebuild index 938ca5f6046c..9f90e8396dad 100644 --- a/dev-python/emcee/emcee-3.0.2.ebuild +++ b/dev-python/emcee/emcee-3.0.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -17,8 +17,14 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" RDEPEND=" dev-python/h5py[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}]" + dev-python/numpy[${PYTHON_USEDEP}] +" DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + dev-python/scipy[${PYTHON_USEDEP}] + ) +" distutils_enable_tests pytest diff --git a/dev-python/flask-compress/Manifest b/dev-python/flask-compress/Manifest index cbd912fea98b..227c5733accc 100644 --- a/dev-python/flask-compress/Manifest +++ b/dev-python/flask-compress/Manifest @@ -1,2 +1,2 @@ -DIST Flask-Compress-1.10.0.tar.gz 12271 BLAKE2B e120dc8f28a686e01d9e8d949d765cd7d05d11322195027ad499a514a4f1d35d79e28627d79abe6279d53ff95d3fe0f43f3561868904ec9ff903925046c5c141 SHA512 6166b4ac303f4fa373615d44e44b628448548e55591f1fe4eea8085f4f441fffe82e9d1419444f31581975fb49ed9ed5c32e594bc97e386e97df9a898f40b469 +DIST Flask-Compress-1.10.1.tar.gz 12272 BLAKE2B 857319ea7fabece977429a810706314bc6a7984f2fb4c2ac3ed604fee0494fa60d45ab00a253bf4a3e9394d399f20f23d806744676597b2064bfbbd6f7b11c46 SHA512 fb94aef71f59e38a6058f5ef799c8973d258cf624b1d8bf0a991cac2e4eabb73e2836ce351faa73bc7640720396183212a6dc8d72428b53ceb3473f7b61f0d27 DIST Flask-Compress-1.9.0.tar.gz 10322 BLAKE2B 4dddfd8a5c4c182a0cb3c5f346ccca611517ab6471dd23512c885e3e370ac09f9a099994afd2ee28eae47cca6cba2d49220d8733103e6cdcfbae03b98a2480f1 SHA512 5f13f20a3a2f8e646a4324cf75a419ea5111252db701a17dd37bbafdb9228d0e279a6c957c5cfd69468bbdffb435e37a50e0dcf5d1a160f7397df1e6a9e6ac9e diff --git a/dev-python/flask-compress/files/flask-compress-1.10.0-test-install.patch b/dev-python/flask-compress/files/flask-compress-1.10.0-test-install.patch deleted file mode 100644 index c104a71caa78..000000000000 --- a/dev-python/flask-compress/files/flask-compress-1.10.0-test-install.patch +++ /dev/null @@ -1,27 +0,0 @@ -From c82a993548494ee13035ca77aeaf0726218bee0d Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> -Date: Tue, 15 Jun 2021 23:25:03 +0200 -Subject: [PATCH] Do not install top-level "tests" package - -Fixes a regression in af2f16335279044e8baeab42e0b182d3e05861b4 that -causes "tests" to be installed as a top-level package to site-packages. ---- - setup.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/setup.py b/setup.py -index b4aef13..afbe57a 100644 ---- a/setup.py -+++ b/setup.py -@@ -13,7 +13,7 @@ setup( - description='Compress responses in your Flask app with gzip, deflate or brotli.', - long_description=LONG_DESCRIPTION, - long_description_content_type='text/markdown', -- packages=find_packages(), -+ packages=find_packages(exclude=['tests']), - zip_safe=False, - include_package_data=True, - platforms='any', --- -2.32.0 - diff --git a/dev-python/flask-compress/flask-compress-1.10.0.ebuild b/dev-python/flask-compress/flask-compress-1.10.1.ebuild index 342d251f44af..1c2f1327f678 100644 --- a/dev-python/flask-compress/flask-compress-1.10.0.ebuild +++ b/dev-python/flask-compress/flask-compress-1.10.1.ebuild @@ -25,7 +25,3 @@ RDEPEND=" " distutils_enable_tests pytest - -PATCHES=( - "${FILESDIR}"/${P}-test-install.patch -) diff --git a/dev-python/h11/h11-0.12.0.ebuild b/dev-python/h11/h11-0.12.0.ebuild index 1e7458723f84..eb5fcaffd1ff 100644 --- a/dev-python/h11/h11-0.12.0.ebuild +++ b/dev-python/h11/h11-0.12.0.ebuild @@ -13,6 +13,6 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 sparc ~x86" distutils_enable_tests pytest diff --git a/dev-python/helpdev/helpdev-0.7.1.ebuild b/dev-python/helpdev/helpdev-0.7.1.ebuild index 3e82f1f61c19..d63cf1cb7b82 100644 --- a/dev-python/helpdev/helpdev-0.7.1.ebuild +++ b/dev-python/helpdev/helpdev-0.7.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -17,7 +17,7 @@ SLOT="0" KEYWORDS="amd64 x86" RDEPEND=" - $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' python3_{6,7,8} ) + $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' python3_{7..8} ) dev-python/psutil[${PYTHON_USEDEP}] " diff --git a/dev-python/httpcore/httpcore-0.13.3.ebuild b/dev-python/httpcore/httpcore-0.13.3.ebuild index ace637059321..2c169e439a61 100644 --- a/dev-python/httpcore/httpcore-0.13.3.ebuild +++ b/dev-python/httpcore/httpcore-0.13.3.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 sparc ~x86" RDEPEND=" <dev-python/h11-0.13[${PYTHON_USEDEP}] diff --git a/dev-python/jinja/jinja-3.0.1.ebuild b/dev-python/jinja/jinja-3.0.1.ebuild index 2aed0882aca4..f895dd5881ae 100644 --- a/dev-python/jinja/jinja-3.0.1.ebuild +++ b/dev-python/jinja/jinja-3.0.1.ebuild @@ -15,7 +15,7 @@ SRC_URI="https://github.com/pallets/jinja/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris" +KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris" IUSE="examples" RDEPEND=" diff --git a/dev-python/livereload/livereload-2.6.3.ebuild b/dev-python/livereload/livereload-2.6.3.ebuild index a0395b36bdf1..e040f24b1117 100644 --- a/dev-python/livereload/livereload-2.6.3.ebuild +++ b/dev-python/livereload/livereload-2.6.3.ebuild @@ -4,7 +4,6 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8,9,10} ) - DISTUTILS_USE_SETUPTOOLS=rdepend inherit distutils-r1 @@ -12,6 +11,7 @@ inherit distutils-r1 DESCRIPTION="Python LiveReload is an awesome tool for web developers" HOMEPAGE="https://github.com/lepture/python-livereload" SRC_URI="https://github.com/lepture/python-${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/python-${P}" LICENSE="BSD" SLOT="0" @@ -24,8 +24,6 @@ RDEPEND=" www-servers/tornado[${PYTHON_USEDEP}] " -S="${WORKDIR}/python-${P}" - distutils_enable_tests pytest distutils_enable_sphinx docs dev-python/flask-sphinx-themes diff --git a/dev-python/psycopg/Manifest b/dev-python/psycopg/Manifest index 2dbb4f384476..7a6b63da6385 100644 --- a/dev-python/psycopg/Manifest +++ b/dev-python/psycopg/Manifest @@ -1 +1,2 @@ DIST psycopg2-2.8.6.tar.gz 383797 BLAKE2B da0e3f1e143c51c940ba1f51d3e457b492d880ab71267dacd4747444bc767711ccd6c2f54d9e10ce5ad8fae0c3206fb4b6199f267e9bbaf12eb654227f59c2b0 SHA512 1e1d5d8755c6d1a153d84210bf29902afafe853659d709e13abc6bc5772def13779d2394690af1c544384c9c607edc0fe5cf2763244fb346febf9a9e0032b45f +DIST psycopg2-2.9.tar.gz 379805 BLAKE2B 4e34b9dc28d0922ae9e9f75dd734b961915a032eba0c4b5ea9c4fe82bff4d5d230b37b0efdb25b8423177fdd7e98e69d0ed6ae0eccd731dca212845966b9c0ac SHA512 9787d0d3bb163815a452139bc3fbde93c767431b3e31c77dd534b6a476d1c09a51e2503b0420ac7a3753ef7fa64c13e2643f4bf4aeaeb60f15ea4eefc3538bfa diff --git a/dev-python/psycopg/psycopg-2.9.ebuild b/dev-python/psycopg/psycopg-2.9.ebuild new file mode 100644 index 000000000000..eaee9a0b5180 --- /dev/null +++ b/dev-python/psycopg/psycopg-2.9.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 flag-o-matic + +MY_PN="${PN}2" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="PostgreSQL database adapter for Python" +HOMEPAGE="https://www.psycopg.org https://pypi.org/project/psycopg2/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="LGPL-3+" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" +IUSE="debug test" +RESTRICT="!test? ( test )" + +RDEPEND=">=dev-db/postgresql-8.1:*" +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( >=dev-db/postgresql-8.1[server] )" + +python_prepare_all() { + if use debug; then + sed -i 's/^\(define=\)/\1PSYCOPG_DEBUG,/' setup.cfg || die + fi + + distutils-r1_python_prepare_all +} + +src_test() { + initdb -D "${T}"/pgsql || die + # TODO: random port + pg_ctl -w -D "${T}"/pgsql start \ + -o "-h '' -k '${T}'" || die + createdb -h "${T}" psycopg2_test || die + + local -x PSYCOPG2_TESTDB_HOST="${T}" + distutils-r1_src_test + + pg_ctl -w -D "${T}"/pgsql stop || die +} + +python_test() { + "${EPYTHON}" -c " +import tests +tests.unittest.main(defaultTest='tests.test_suite') +" --verbose || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/pyproject2setuppy/Manifest b/dev-python/pyproject2setuppy/Manifest index c2f3ef4c5dd9..597740ea3a87 100644 --- a/dev-python/pyproject2setuppy/Manifest +++ b/dev-python/pyproject2setuppy/Manifest @@ -1,2 +1,3 @@ DIST pyproject2setuppy-14.tar.gz 10669 BLAKE2B ee4fac31546455ac3144f4989dd4260d876a7b8bd749bb34b210e5fc0194fb6347f9b5e7ebc9aa1374b4e4e5e4f22d260923097a58b47b5b940c69ec77f3b5b1 SHA512 46bbe31460195ca7df2c7e707772a430ccdbabf264a26f54d98101d08031d302343a6299a8e20d7be3d7984c48ad095dae942bf4da085285f61e2900a501245a DIST pyproject2setuppy-15.tar.gz 11796 BLAKE2B 7fd7176fa611e293d35db0cb91a029c0896921947252ffba51ba25599fab5ebe7d4a5c2f65593ec83bfcc180983de6e2022053bcaa3583c3f6cce9640e57c5f6 SHA512 dee048eed352ebf178981fdf9fd69143a72658d9161e2d65257001b3ee6773bb7040d12145e79496cf141cdf86aa5e5eeaf4de7023c4e721a3d978f9eb267374 +DIST pyproject2setuppy-16.tar.gz 11902 BLAKE2B 13b9188d46064644ec5c549bdfaceef1a3df2da0d333cec37e593231cdcbf9277c81b32a95a2d2355a995feaec605bb0bb4610e51b1c06c1c3b50b3c9a73e1ca SHA512 e8e13644e5c88cfcc9f06ee9ece5c715ac1917d1eac9ba0d7a68a71d78ce84f50229890442c5c41e766083c302ae59f67bd20736e502615006cf35c41c2d3a9c diff --git a/dev-python/pyproject2setuppy/pyproject2setuppy-16.ebuild b/dev-python/pyproject2setuppy/pyproject2setuppy-16.ebuild new file mode 100644 index 000000000000..5de6536a8bad --- /dev/null +++ b/dev-python/pyproject2setuppy/pyproject2setuppy-16.ebuild @@ -0,0 +1,30 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=manual +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Cheap setup.py hack to install flit & poetry-based projects" +HOMEPAGE="https://github.com/mgorny/pyproject2setuppy" +SRC_URI=" + https://github.com/mgorny/pyproject2setuppy/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}]" +BDEPEND="${RDEPEND} + test? ( + dev-python/pytest-forked[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest diff --git a/dev-python/sniffio/sniffio-1.2.0.ebuild b/dev-python/sniffio/sniffio-1.2.0.ebuild index f7684e1c749d..94f3ef2a47bf 100644 --- a/dev-python/sniffio/sniffio-1.2.0.ebuild +++ b/dev-python/sniffio/sniffio-1.2.0.ebuild @@ -16,7 +16,7 @@ SRC_URI=" LICENSE="|| ( Apache-2.0 MIT )" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 sparc ~x86" distutils_enable_tests pytest diff --git a/dev-python/uvicorn/uvicorn-0.14.0-r1.ebuild b/dev-python/uvicorn/uvicorn-0.14.0-r1.ebuild new file mode 100644 index 000000000000..be5b09fc8bd0 --- /dev/null +++ b/dev-python/uvicorn/uvicorn-0.14.0-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +DESCRIPTION="Lightning-fast ASGI server implementation" +HOMEPAGE="https://www.uvicorn.org/" +SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/asgiref-3.3.4[${PYTHON_USEDEP}] + >=dev-python/click-7[${PYTHON_USEDEP}] + >=dev-python/h11-0.8[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' python3_7) +" +BDEPEND=" + test? ( + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/python-dotenv[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + >=dev-python/websockets-9.1[${PYTHON_USEDEP}] + dev-python/wsproto[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # watchgod is not in the tree + sed -e '/^from uvicorn.supervisors.watchgodreload/d' \ + -e 's/, WatchGodReload//' \ + -i tests/supervisors/test_reload.py + distutils-r1_python_prepare_all +} diff --git a/dev-python/uvicorn/uvicorn-0.14.0.ebuild b/dev-python/uvicorn/uvicorn-0.14.0.ebuild index da7bc2b235be..b36029e3df67 100644 --- a/dev-python/uvicorn/uvicorn-0.14.0.ebuild +++ b/dev-python/uvicorn/uvicorn-0.14.0.ebuild @@ -42,3 +42,12 @@ python_prepare_all() { -i tests/supervisors/test_reload.py distutils-r1_python_prepare_all } + +python_test() { + local deselect=( + # requires python-dotenv that's not keyworded everywhere yet + # see 0.14.0-r1 + tests/test_config.py::test_env_file + ) + epytest ${deselect[@]/#/--deselect } +} diff --git a/dev-python/wsproto/wsproto-1.0.0.ebuild b/dev-python/wsproto/wsproto-1.0.0.ebuild index 2b6b52baf3e8..2eae3119484b 100644 --- a/dev-python/wsproto/wsproto-1.0.0.ebuild +++ b/dev-python/wsproto/wsproto-1.0.0.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 sparc ~x86" RDEPEND=">=dev-python/h11-0.9[${PYTHON_USEDEP}]" |
