diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-05-30 01:25:01 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-05-30 01:25:01 +0000 |
| commit | 65ea5ace9d5897b6a492c4676ef8770f3cac3897 (patch) | |
| tree | e1f62df7095137c4781085873d82b2fdb4aa6f4a /dev-python | |
| parent | 582b7e5f69491356f6ccb19f51c35fba33939f2d (diff) | |
| download | baldeagleos-repo-65ea5ace9d5897b6a492c4676ef8770f3cac3897.tar.gz baldeagleos-repo-65ea5ace9d5897b6a492c4676ef8770f3cac3897.tar.xz baldeagleos-repo-65ea5ace9d5897b6a492c4676ef8770f3cac3897.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
35 files changed, 456 insertions, 33 deletions
diff --git a/dev-python/argcomplete/argcomplete-3.0.8.ebuild b/dev-python/argcomplete/argcomplete-3.0.8.ebuild index 60e3cbc3a816..24d9116452a4 100644 --- a/dev-python/argcomplete/argcomplete-3.0.8.ebuild +++ b/dev-python/argcomplete/argcomplete-3.0.8.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" IUSE="test" RESTRICT="!test? ( test )" diff --git a/dev-python/astor/astor-0.8.1-r1.ebuild b/dev-python/astor/astor-0.8.1-r1.ebuild index f978c27af841..6a55f2da9b20 100644 --- a/dev-python/astor/astor-0.8.1-r1.ebuild +++ b/dev-python/astor/astor-0.8.1-r1.ebuild @@ -9,7 +9,10 @@ PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi DESCRIPTION="Read/rewrite/write Python ASTs" -HOMEPAGE="https://pypi.org/project/astor/" +HOMEPAGE=" + https://pypi.org/project/astor + https://github.com/berkerpeksag/astor +" LICENSE="BSD" SLOT="0" diff --git a/dev-python/flask/flask-2.3.2.ebuild b/dev-python/flask/flask-2.3.2.ebuild index 3ec91118c391..1843d2e3a5ec 100644 --- a/dev-python/flask/flask-2.3.2.ebuild +++ b/dev-python/flask/flask-2.3.2.ebuild @@ -21,7 +21,7 @@ if [[ ${PV} == *9999* ]]; then inherit git-r3 else inherit pypi - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" fi LICENSE="BSD" diff --git a/dev-python/google-auth-oauthlib/google-auth-oauthlib-1.0.0.ebuild b/dev-python/google-auth-oauthlib/google-auth-oauthlib-1.0.0.ebuild index 561f52c9a110..1cc89f5143f8 100644 --- a/dev-python/google-auth-oauthlib/google-auth-oauthlib-1.0.0.ebuild +++ b/dev-python/google-auth-oauthlib/google-auth-oauthlib-1.0.0.ebuild @@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P} LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~arm64 ~x86" RDEPEND=" >=dev-python/click-6.0.0[${PYTHON_USEDEP}] diff --git a/dev-python/h5py/h5py-3.8.0.ebuild b/dev-python/h5py/h5py-3.8.0.ebuild index dc37deb30a1f..9ea04847aa65 100644 --- a/dev-python/h5py/h5py-3.8.0.ebuild +++ b/dev-python/h5py/h5py-3.8.0.ebuild @@ -18,7 +18,7 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~arm ~riscv x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~amd64-linux ~x86-linux" # disable mpi until mpi4py gets python3_8 #IUSE="examples mpi" IUSE="examples" diff --git a/dev-python/hypothesis/hypothesis-6.75.6.ebuild b/dev-python/hypothesis/hypothesis-6.75.6.ebuild index 8db36527a43b..14a4b222bd61 100644 --- a/dev-python/hypothesis/hypothesis-6.75.6.ebuild +++ b/dev-python/hypothesis/hypothesis-6.75.6.ebuild @@ -67,6 +67,7 @@ python_test() { ) fi if [[ ${EPYTHON} == python3.12 ]]; then + # cpython bug: https://github.com/python/cpython/issues/105042 EPYTEST_DESELECT+=( hypothesis-python/tests/cover/test_lookup.py hypothesis-python/tests/cover/test_type_lookup.py diff --git a/dev-python/immutables/immutables-0.19.ebuild b/dev-python/immutables/immutables-0.19.ebuild index 33d159755d2b..d5b01251f235 100644 --- a/dev-python/immutables/immutables-0.19.ebuild +++ b/dev-python/immutables/immutables-0.19.ebuild @@ -28,6 +28,10 @@ distutils_enable_tests pytest src_prepare() { sed -i -e '/mypy/d' tests/conftest.py || die distutils-r1_src_prepare + + # workaround check removed from python3.12 + # https://github.com/MagicStack/immutables/pull/103 + export CFLAGS="${CFLAGS} -DHAVE_STDARG_PROTOTYPES=1" } src_test() { diff --git a/dev-python/outcome/outcome-1.2.0.ebuild b/dev-python/outcome/outcome-1.2.0.ebuild index fa925cce4cfd..2c4adbb0ab69 100644 --- a/dev-python/outcome/outcome-1.2.0.ebuild +++ b/dev-python/outcome/outcome-1.2.0.ebuild @@ -25,10 +25,8 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 RDEPEND=" dev-python/attrs[${PYTHON_USEDEP}] " - BDEPEND=" test? ( - dev-python/async_generator[${PYTHON_USEDEP}] dev-python/pytest-asyncio[${PYTHON_USEDEP}] ) " diff --git a/dev-python/pyquery/pyquery-2.0.0.ebuild b/dev-python/pyquery/pyquery-2.0.0.ebuild index 11663ec4f799..c907beda4dfb 100644 --- a/dev-python/pyquery/pyquery-2.0.0.ebuild +++ b/dev-python/pyquery/pyquery-2.0.0.ebuild @@ -4,6 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +# No 3.12 yet for https://github.com/gawel/pyquery/issues/249 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 optfeature pypi diff --git a/dev-python/pytest-xvfb/Manifest b/dev-python/pytest-xvfb/Manifest index 20b243acc881..055ea9bcaceb 100644 --- a/dev-python/pytest-xvfb/Manifest +++ b/dev-python/pytest-xvfb/Manifest @@ -1 +1,2 @@ DIST pytest-xvfb-2.0.0.tar.gz 6575 BLAKE2B 7ef37f2d4a1a9d7211a248e67d325f0b722a0a046e6e57ae24cac1b68ead6d11988d49810e15fc41d9a05082d9c318f7569a00ac7574e1a8ee00e76c842cf83b SHA512 de5a98290bfe083cadc732c36a1c5af99b0d618853f8da9a1acd0f0f11a170c54025667c0f13bc0f4ac2657b139306e16d0b3faf00bfdde37eb3df7fb14367ae +DIST pytest-xvfb-3.0.0.tar.gz 8607 BLAKE2B a1256b121a66c0b778a45f695754363ec241699197000f6237473dc2d54c0eeff499722073b00280ca242d695c192ff4fd985931a42bbb52a0f8e2424867b60a SHA512 9aec1681656badf81fbac3a0d621b163810001e155a1cb8fd35e0f8c8d3ee52556e622adc0468d8e7455b15ba0f5103622fae1aa2493a7053ca78f092e582cf1 diff --git a/dev-python/pytest-xvfb/pytest-xvfb-3.0.0.ebuild b/dev-python/pytest-xvfb/pytest-xvfb-3.0.0.ebuild new file mode 100644 index 000000000000..47ad763748bd --- /dev/null +++ b/dev-python/pytest-xvfb/pytest-xvfb-3.0.0.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 +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) +PYTHON_REQ_USE="tk" +inherit distutils-r1 pypi + +DESCRIPTION="Pytest plugin to run Xvfb for tests" +HOMEPAGE="https://pypi.org/project/pytest-xvfb/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pyvirtualdisplay[${PYTHON_USEDEP}] + x11-base/xorg-server[xvfb]" + +distutils_enable_tests pytest + +python_test() { + epytest -p xvfb --runpytest=subprocess +} diff --git a/dev-python/python-dotenv/python-dotenv-1.0.0.ebuild b/dev-python/python-dotenv/python-dotenv-1.0.0.ebuild index fd5ffe54a752..3ed15cc0e670 100644 --- a/dev-python/python-dotenv/python-dotenv-1.0.0.ebuild +++ b/dev-python/python-dotenv/python-dotenv-1.0.0.ebuild @@ -10,7 +10,10 @@ PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi DESCRIPTION="Manage .env files" -HOMEPAGE="https://github.com/theskumar/python-dotenv" +HOMEPAGE=" + https://github.com/theskumar/python-dotenv/ + https://pypi.org/project/python-dotenv/ +" LICENSE="BSD" SLOT="0" @@ -22,7 +25,7 @@ BDEPEND=" >=dev-python/sh-2[${PYTHON_USEDEP}] $(python_gen_cond_dep ' dev-python/ipython[${PYTHON_USEDEP}] - ' 'python*') + ' python3_{10,11}) ) " diff --git a/dev-python/recurring-ical-events/recurring-ical-events-2.0.2.ebuild b/dev-python/recurring-ical-events/recurring-ical-events-2.0.2.ebuild index 4a5d850f0c93..062f731b3ca2 100644 --- a/dev-python/recurring-ical-events/recurring-ical-events-2.0.2.ebuild +++ b/dev-python/recurring-ical-events/recurring-ical-events-2.0.2.ebuild @@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P} LICENSE="LGPL-3+" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~arm64 ~x86" RDEPEND=" dev-python/icalendar[${PYTHON_USEDEP}] diff --git a/dev-python/requests-oauthlib/requests-oauthlib-1.3.1.ebuild b/dev-python/requests-oauthlib/requests-oauthlib-1.3.1.ebuild index 409ddf1d0db4..55d504ec101c 100644 --- a/dev-python/requests-oauthlib/requests-oauthlib-1.3.1.ebuild +++ b/dev-python/requests-oauthlib/requests-oauthlib-1.3.1.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/requests/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" SLOT="0" LICENSE="ISC" -KEYWORDS="amd64 ~arm ~ppc64 ~riscv x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86" RDEPEND=" >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] diff --git a/dev-python/responses/files/responses-0.23.1-urllib3-2.patch b/dev-python/responses/files/responses-0.23.1-urllib3-2.patch new file mode 100644 index 000000000000..fbe466d65707 --- /dev/null +++ b/dev-python/responses/files/responses-0.23.1-urllib3-2.patch @@ -0,0 +1,85 @@ +From 071306524af1b4ee1797c45a46525274d271a9b6 Mon Sep 17 00:00:00 2001 +From: Maksim Beliaev <beliaev.m.s@gmail.com> +Date: Tue, 9 May 2023 21:14:27 +0200 +Subject: [PATCH] fix test compatibility with urllib3 (#636) + +- Upgrade urllib3 and requests +--- + CHANGES | 6 ++++++ + README.rst | 2 +- + responses/tests/test_responses.py | 9 +++++---- + setup.py | 4 ++-- + 4 files changed, 14 insertions(+), 7 deletions(-) + +diff --git a/CHANGES b/CHANGES +index f3a0080..f6a8d12 100644 +--- a/CHANGES ++++ b/CHANGES +@@ -1,3 +1,9 @@ ++0.23.2 ++------ ++ ++* Updated dependency to urllib3>=2 and requests>=2.30.0. See #635 ++ ++ + 0.23.1 + ------ + +diff --git a/README.rst b/README.rst +index cfdf0b2..7d790eb 100644 +--- a/README.rst ++++ b/README.rst +@@ -17,7 +17,7 @@ A utility library for mocking out the ``requests`` Python library. + + .. note:: + +- Responses requires Python 3.7 or newer, and requests >= 2.22.0 ++ Responses requires Python 3.7 or newer, and requests >= 2.30.0 + + + Table of Contents +diff --git a/responses/tests/test_responses.py b/responses/tests/test_responses.py +index 90c1d65..c264e4e 100644 +--- a/responses/tests/test_responses.py ++++ b/responses/tests/test_responses.py +@@ -1498,9 +1498,10 @@ def test_auto_calculate_content_length_doesnt_override_existing_value(): + headers={"Content-Length": "2"}, + auto_calculate_content_length=True, + ) +- resp = requests.get(url) +- assert_response(resp, "test") +- assert resp.headers["Content-Length"] == "2" ++ with pytest.raises(ChunkedEncodingError) as excinfo: ++ requests.get(url) ++ ++ assert "IncompleteRead(4 bytes read, -2 more expected)" in str(excinfo.value) + + run() + assert_reset() +@@ -2416,7 +2417,7 @@ class TestMaxRetry: + total=total, + backoff_factor=0.1, + status_forcelist=[500], +- method_whitelist=["GET", "POST", "PATCH"], ++ allowed_methods=["GET", "POST", "PATCH"], + raise_on_status=raise_on_status, + ) + ) +diff --git a/setup.py b/setup.py +index 6d01ad2..f61b30a 100644 +--- a/setup.py ++++ b/setup.py +@@ -17,8 +17,8 @@ from setuptools.command.test import test as TestCommand + setup_requires = [] + + install_requires = [ +- "requests>=2.22.0,<3.0", +- "urllib3>=1.25.10", ++ "requests>=2.30.0,<3.0", ++ "urllib3>=2.0.0,<3.0", + "pyyaml", + "types-PyYAML", + "typing_extensions; python_version < '3.8'", +-- +2.40.1 + diff --git a/dev-python/responses/responses-0.23.1-r2.ebuild b/dev-python/responses/responses-0.23.1-r2.ebuild new file mode 100644 index 000000000000..b680b9c2cf07 --- /dev/null +++ b/dev-python/responses/responses-0.23.1-r2.ebuild @@ -0,0 +1,55 @@ +# 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="Utility for mocking out the Python Requests library" +HOMEPAGE=" + https://pypi.org/project/responses/ + https://github.com/getsentry/responses/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# tomli backend is optional now, with pyyaml being the new default. +# However, keeping it unconditional here for backwards compatibility. +RDEPEND=" + dev-python/pyyaml[${PYTHON_USEDEP}] + <dev-python/requests-3[${PYTHON_USEDEP}] + >=dev-python/requests-2.30.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{8..10}) + dev-python/tomli-w[${PYTHON_USEDEP}] + <dev-python/urllib3-3[${PYTHON_USEDEP}] + >=dev-python/urllib3-2.0.0[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/pytest-httpserver[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}/${P}-urllib3-2.patch" +) + +src_prepare() { + distutils-r1_src_prepare + # remove unnecessary RDEP on type stubs + sed -i -e '/types-/d' setup.py || die +} + +python_test() { + epytest -p no:localserver +} diff --git a/dev-python/rich/rich-13.3.4.ebuild b/dev-python/rich/rich-13.3.4.ebuild index 749f71d32252..154b5e74f7f2 100644 --- a/dev-python/rich/rich-13.3.4.ebuild +++ b/dev-python/rich/rich-13.3.4.ebuild @@ -44,6 +44,15 @@ python_test() { tests/test_syntax.py::test_python_render_simple_indent_guides tests/test_syntax.py::test_python_render_line_range_indent_guides ) + if [[ ${EPYTHON} == python3.12 ]]; then + EPYTEST_DESELECT+=( + # version-specific output -- the usual deal + tests/test_inspect.py::test_inspect_builtin_function_except_python311 + tests/test_inspect.py::test_inspect_integer_with_methods_python310only + tests/test_inspect.py::test_inspect_integer_with_methods_python311_and_above + tests/test_pretty.py::test_attrs_broken + ) + fi epytest -p no:pytest-qt } diff --git a/dev-python/setuptools-rust/setuptools-rust-1.6.0.ebuild b/dev-python/setuptools-rust/setuptools-rust-1.6.0.ebuild index c96503f76111..c5f8a0aba3b6 100644 --- a/dev-python/setuptools-rust/setuptools-rust-1.6.0.ebuild +++ b/dev-python/setuptools-rust/setuptools-rust-1.6.0.ebuild @@ -101,7 +101,7 @@ SRC_URI=" # crates are used at test time only, update via pycargoebuild -L -i ... LICENSE="MIT" SLOT="0" -KEYWORDS="amd64 arm ~arm64 ppc ppc64 ~riscv ~s390 sparc x86" +KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv ~s390 sparc x86" IUSE="test" RESTRICT="!test? ( test )" diff --git a/dev-python/snowballstemmer/snowballstemmer-2.2.0-r1.ebuild b/dev-python/snowballstemmer/snowballstemmer-2.2.0-r1.ebuild index 56b59ac7906c..0d95c07e5433 100644 --- a/dev-python/snowballstemmer/snowballstemmer-2.2.0-r1.ebuild +++ b/dev-python/snowballstemmer/snowballstemmer-2.2.0-r1.ebuild @@ -8,9 +8,11 @@ PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi DESCRIPTION="Stemmer algorithms generated from Snowball algorithms" -HOMEPAGE="https://snowballstem.org/ +HOMEPAGE=" + https://snowballstem.org/ https://github.com/snowballstem/snowball - https://pypi.org/project/snowballstemmer/" + https://pypi.org/project/snowballstemmer/ +" LICENSE="BSD" SLOT="0" diff --git a/dev-python/sphinx/sphinx-7.0.1.ebuild b/dev-python/sphinx/sphinx-7.0.1.ebuild index 322ccda0929f..d2f21b8df93a 100644 --- a/dev-python/sphinx/sphinx-7.0.1.ebuild +++ b/dev-python/sphinx/sphinx-7.0.1.ebuild @@ -44,7 +44,7 @@ RDEPEND=" >=dev-python/packaging-21.0[${PYTHON_USEDEP}] $(python_gen_cond_dep ' >=dev-python/importlib-metadata-4.8[${PYTHON_USEDEP}] - ' 3.8 3.9) + ' 3.9) latex? ( dev-texlive/texlive-latexextra dev-texlive/texlive-luatex @@ -104,6 +104,8 @@ python_test() { tests/test_ext_autodoc.py::test_cython tests/test_ext_autodoc_autoclass.py::test_classes tests/test_ext_autodoc_autofunction.py::test_classes + tests/test_ext_math.py::test_imgmath_numfig_html + tests/test_ext_math.py::test_imgmath_png tests/test_ext_inheritance_diagram.py::test_import_classes # looks like a bug in lualatex "tests/test_build_latex.py::test_build_latex_doc[lualatex-howto]" diff --git a/dev-python/sphinxcontrib-jsmath/sphinxcontrib-jsmath-1.0.1-r3.ebuild b/dev-python/sphinxcontrib-jsmath/sphinxcontrib-jsmath-1.0.1-r3.ebuild new file mode 100644 index 000000000000..682f82523e86 --- /dev/null +++ b/dev-python/sphinxcontrib-jsmath/sphinxcontrib-jsmath-1.0.1-r3.ebuild @@ -0,0 +1,48 @@ +# 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="Sphinx extension which renders display math in HTML via JavaScript" +HOMEPAGE=" + https://www.sphinx-doc.org/ + https://github.com/sphinx-doc/sphinxcontrib-jsmath/ + https://pypi.org/project/sphinxcontrib-jsmath/ +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" + +PDEPEND=" + >=dev-python/sphinx-2.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( ${PDEPEND} ) +" + +distutils_enable_tests pytest + +src_prepare() { + # This is already fixed in upstream, remove it on next version bump, + # see https://github.com/sphinx-doc/sphinxcontrib-jsmath/pull/10 + sed -i 's/.text()/.read_text()/' tests/test_jsmath.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + find "${BUILD_DIR}" -name '*.pth' -delete || die +} + +python_test() { + distutils_write_namespace sphinxcontrib + cd "${T}" || die + epytest "${S}"/tests +} diff --git a/dev-python/sphinxcontrib-qthelp/sphinxcontrib-qthelp-1.0.3-r2.ebuild b/dev-python/sphinxcontrib-qthelp/sphinxcontrib-qthelp-1.0.3-r2.ebuild new file mode 100644 index 000000000000..3ec563ead3f4 --- /dev/null +++ b/dev-python/sphinxcontrib-qthelp/sphinxcontrib-qthelp-1.0.3-r2.ebuild @@ -0,0 +1,48 @@ +# 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="Sphinx extension which outputs QtHelp documents" +HOMEPAGE=" + https://www.sphinx-doc.org/ + https://github.com/sphinx-doc/sphinxcontrib-qthelp/ + https://pypi.org/project/sphinxcontrib-qthelp/ +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" + +PDEPEND=" + >=dev-python/sphinx-2.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( ${PDEPEND} ) +" + +distutils_enable_tests pytest + +src_prepare() { + # This is already fixed in upstream, remove it on next version bump, + # see https://github.com/sphinx-doc/sphinxcontrib-qthelp/pull/14 + sed -i 's/.text()/.read_text()/' tests/test_qthelp.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + find "${BUILD_DIR}" -name '*.pth' -delete || die +} + +python_test() { + distutils_write_namespace sphinxcontrib + cd "${T}" || die + epytest "${S}"/tests +} diff --git a/dev-python/sqlalchemy/sqlalchemy-2.0.15.ebuild b/dev-python/sqlalchemy/sqlalchemy-2.0.15.ebuild index a42e53f101d6..365901c782f4 100644 --- a/dev-python/sqlalchemy/sqlalchemy-2.0.15.ebuild +++ b/dev-python/sqlalchemy/sqlalchemy-2.0.15.ebuild @@ -68,6 +68,10 @@ python_test() { "test/dialect/test_suite.py::ReturningGuardsTest_sqlite+pysqlite_${sqlite_version//./_}"::test_{delete,insert,update}_single test/base/test_utils.py::ImmutableDictTest::test_pep584 ) + [[ ${EPYTHON} == python3.12 ]] && EPYTEST_DESELECT+=( + # see https://github.com/sqlalchemy/sqlalchemy/issues/9819 + test/base/test_result.py::ResultTupleTest::test_slices_arent_in_mappings + ) if ! has_version "dev-python/greenlet[${PYTHON_USEDEP}]"; then EPYTEST_DESELECT+=( test/ext/asyncio/test_engine_py3k.py::TextSyncDBAPI::test_sync_driver_execution diff --git a/dev-python/tifffile/tifffile-2023.4.12.ebuild b/dev-python/tifffile/tifffile-2023.4.12.ebuild index 81052c143add..cb26976c422f 100644 --- a/dev-python/tifffile/tifffile-2023.4.12.ebuild +++ b/dev-python/tifffile/tifffile-2023.4.12.ebuild @@ -21,7 +21,7 @@ SRC_URI=" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~arm64 ~x86" RDEPEND=" >=dev-python/numpy-1.19.2[${PYTHON_USEDEP}] diff --git a/dev-python/types-requests/Manifest b/dev-python/types-requests/Manifest index 11743e4caf6e..2c69a37e2563 100644 --- a/dev-python/types-requests/Manifest +++ b/dev-python/types-requests/Manifest @@ -1 +1 @@ -DIST types-requests-2.31.0.0.tar.gz 15131 BLAKE2B f4f8a2c981504742b103fe51867d4cfb2c1cb971b069bf451943780027bfdb986ecaf84aa2e51c04654b541b91efa98009d846c2b5a99b5889900c3e2a8ec617 SHA512 d6e043f873f41474182995251aeecf2975eb8255eee286d53c7772b174bbf013ecef3e6d78c05bb7af69fee1da2d4854ec01bf324dc8f5e78b0ca827526e43e7 +DIST types-requests-2.31.0.1.tar.gz 15151 BLAKE2B cd0509f711842cc358aaeb62782da075dbc0046e5f075f0422f2aac3faf1e4f7fd1e8a4a81c3aba6c9da70645d2dda214e5b3796e66d2fbe90a587fb51ee68ba SHA512 381f5983c4c128c43139038a57a57148fa8e951c3e78d52dce9a3b0a0ebefeb7dba130b24f2a62cf5bca78e04285aee7ad22af26a06cb3d659a525d050bc9e45 diff --git a/dev-python/types-requests/types-requests-2.31.0.0.ebuild b/dev-python/types-requests/types-requests-2.31.0.1.ebuild index 1c43931a56ed..1c43931a56ed 100644 --- a/dev-python/types-requests/types-requests-2.31.0.0.ebuild +++ b/dev-python/types-requests/types-requests-2.31.0.1.ebuild diff --git a/dev-python/typogrify/metadata.xml b/dev-python/typogrify/metadata.xml index acd6c0c20331..36acccda7221 100644 --- a/dev-python/typogrify/metadata.xml +++ b/dev-python/typogrify/metadata.xml @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> - </maintainer> - <upstream> - <remote-id type="pypi">typogrify</remote-id> - <remote-id type="github">mintchaos/typogrify</remote-id> - </upstream> - <origin>ports</origin> -</pkgmetadata> + <maintainer type="project"> + <email>dev@liguros.net</email> + <name>Development</name> + </maintainer> + + <origin>ports</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/webtest/files/webtest-3.0.0-python3.12-unittest.patch b/dev-python/webtest/files/webtest-3.0.0-python3.12-unittest.patch new file mode 100644 index 000000000000..c797a8cbb0c9 --- /dev/null +++ b/dev-python/webtest/files/webtest-3.0.0-python3.12-unittest.patch @@ -0,0 +1,115 @@ +https://github.com/Pylons/webtest/pull/251 + +From d82ec5bd2cf3c7109a1d49ad9fa802ae1eae1763 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Mon, 29 May 2023 15:54:28 +0100 +Subject: [PATCH] Replace deprecated unittest aliases for Python 3.12 + +See https://docs.python.org/3.12/whatsnew/3.12.html#removed. +--- a/tests/test_app.py ++++ b/tests/test_app.py +@@ -221,7 +221,7 @@ def cookie_app(environ, start_response): + ('Set-Cookie', 'foo=bar;baz'), + ]) + else: +- self.assertEquals(dict(req.cookies), ++ self.assertEqual(dict(req.cookies), + {'spam': 'eggs', 'foo': 'bar'}) + self.assertIn('foo=bar', environ['HTTP_COOKIE']) + self.assertIn('spam=eggs', environ['HTTP_COOKIE']) +@@ -258,7 +258,7 @@ def cookie_app(environ, start_response): + ('Set-Cookie', 'foo=bar;baz; secure'), + ]) + else: +- self.assertEquals(dict(req.cookies), ++ self.assertEqual(dict(req.cookies), + {'spam': 'eggs', 'foo': 'bar'}) + self.assertIn('foo=bar', environ['HTTP_COOKIE']) + self.assertIn('spam=eggs', environ['HTTP_COOKIE']) +--- a/tests/test_authorisation.py ++++ b/tests/test_authorisation.py +@@ -17,7 +17,7 @@ def test_basic_authorization(self): + app.authorization = authorization + + self.assertIn('HTTP_AUTHORIZATION', app.extra_environ) +- self.assertEquals(app.authorization, authorization) ++ self.assertEqual(app.authorization, authorization) + + resp = app.get('/') + resp.mustcontain('HTTP_AUTHORIZATION: Basic Z2F3ZWw6cGFzc3dk') +@@ -26,7 +26,7 @@ def test_basic_authorization(self): + authtype, value = header.split(' ') + auth = (authtype, + b64decode(to_bytes(value)).decode('latin1').split(':')) +- self.assertEquals(authorization, auth) ++ self.assertEqual(authorization, auth) + + app.authorization = None + self.assertNotIn('HTTP_AUTHORIZATION', app.extra_environ) +@@ -37,7 +37,7 @@ def test_bearer_authorization(self): + app.authorization = authorization + + self.assertIn('HTTP_AUTHORIZATION', app.extra_environ) +- self.assertEquals(app.authorization, authorization) ++ self.assertEqual(app.authorization, authorization) + + resp = app.get('/') + resp.mustcontain('HTTP_AUTHORIZATION: Bearer 2588409761fcfa3e378bff4fb766e2e2') +--- a/tests/test_forms.py ++++ b/tests/test_forms.py +@@ -1031,7 +1031,7 @@ def test_upload_invalid_content(self): + single_form.submit("button") + except ValueError: + e = sys.exc_info()[1] +- self.assertEquals( ++ self.assertEqual( + str(e), + u('File content must be %s not %s' % (bytes, int)) + ) +--- a/tests/test_lint.py ++++ b/tests/test_lint.py +@@ -62,15 +62,15 @@ class TestMiddleware(unittest.TestCase): + @unittest.skipIf(sys.flags.optimize > 0, "skip assert tests if optimize is enabled") + def test_lint_too_few_args(self): + linter = middleware(application) +- with self.assertRaisesRegexp(AssertionError, "Two arguments required"): ++ with self.assertRaisesRegex(AssertionError, "Two arguments required"): + linter() +- with self.assertRaisesRegexp(AssertionError, "Two arguments required"): ++ with self.assertRaisesRegex(AssertionError, "Two arguments required"): + linter({}) + + @unittest.skipIf(sys.flags.optimize > 0, "skip assert tests if optimize is enabled") + def test_lint_no_keyword_args(self): + linter = middleware(application) +- with self.assertRaisesRegexp(AssertionError, "No keyword arguments " ++ with self.assertRaisesRegex(AssertionError, "No keyword arguments " + "allowed"): + linter({}, 'foo', baz='baz') + +@@ -82,7 +82,7 @@ def test_lint_no_keyword_args(self): + def test_lint_iterator_returned(self): + linter = middleware(lambda x, y: None) # None is not an iterator + msg = "The application must return an iterator, if only an empty list" +- with self.assertRaisesRegexp(AssertionError, msg): ++ with self.assertRaisesRegex(AssertionError, msg): + linter({'wsgi.input': 'foo', 'wsgi.errors': 'foo'}, 'foo') + + +@@ -109,13 +109,13 @@ def test_close(self): + def test_iter(self): + data = to_bytes("A line\nAnother line\nA final line\n") + input_wrapper = InputWrapper(BytesIO(data)) +- self.assertEquals(to_bytes("").join(input_wrapper), data, '') ++ self.assertEqual(to_bytes("").join(input_wrapper), data, '') + + def test_seek(self): + data = to_bytes("A line\nAnother line\nA final line\n") + input_wrapper = InputWrapper(BytesIO(data)) + input_wrapper.seek(0) +- self.assertEquals(to_bytes("").join(input_wrapper), data, '') ++ self.assertEqual(to_bytes("").join(input_wrapper), data, '') + + + class TestMiddleware2(unittest.TestCase): + diff --git a/dev-python/webtest/webtest-3.0.0-r1.ebuild b/dev-python/webtest/webtest-3.0.0-r1.ebuild index 4a0cc9bdefe1..f2e934139d35 100644 --- a/dev-python/webtest/webtest-3.0.0-r1.ebuild +++ b/dev-python/webtest/webtest-3.0.0-r1.ebuild @@ -6,6 +6,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYPI_NO_NORMALIZE=1 PYPI_PN="WebTest" +# py3.12 should pass but pyquery doesn't yet support 3.12 PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi @@ -37,6 +38,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}/webtest-2.0.33-no-pylons-theme.patch" + "${FILESDIR}/webtest-3.0.0-python3.12-unittest.patch" ) distutils_enable_sphinx docs diff --git a/dev-python/werkzeug/werkzeug-2.3.4-r1.ebuild b/dev-python/werkzeug/werkzeug-2.3.4-r1.ebuild index 0c0e153d547b..932c5f57561d 100644 --- a/dev-python/werkzeug/werkzeug-2.3.4-r1.ebuild +++ b/dev-python/werkzeug/werkzeug-2.3.4-r1.ebuild @@ -21,7 +21,7 @@ SRC_URI=" LICENSE="BSD" SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" IUSE="test-rust" RDEPEND=" diff --git a/dev-python/whoosh/whoosh-2.7.4-r2.ebuild b/dev-python/whoosh/whoosh-2.7.4-r2.ebuild index abb7ebfaa463..e8068fe91ee9 100644 --- a/dev-python/whoosh/whoosh-2.7.4-r2.ebuild +++ b/dev-python/whoosh/whoosh-2.7.4-r2.ebuild @@ -10,7 +10,10 @@ PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) inherit distutils-r1 pypi DESCRIPTION="Fast, pure-Python full text indexing, search and spell checking library" -HOMEPAGE="https://pypi.org/project/Whoosh/" +HOMEPAGE=" + https://pypi.org/project/Whoosh/ + https://github.com/mchaput/whoosh +" LICENSE="BSD-2" SLOT="0" diff --git a/dev-python/x-wr-timezone/x-wr-timezone-0.0.5.ebuild b/dev-python/x-wr-timezone/x-wr-timezone-0.0.5.ebuild index fcc01cf7db6a..5669a4c453fc 100644 --- a/dev-python/x-wr-timezone/x-wr-timezone-0.0.5.ebuild +++ b/dev-python/x-wr-timezone/x-wr-timezone-0.0.5.ebuild @@ -20,7 +20,7 @@ SRC_URI=" LICENSE="LGPL-3+" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~arm64 ~x86" RDEPEND=" dev-python/icalendar[${PYTHON_USEDEP}] diff --git a/dev-python/xarray/xarray-2023.4.2.ebuild b/dev-python/xarray/xarray-2023.4.2.ebuild index 2114df4157d7..348dc3dfa353 100644 --- a/dev-python/xarray/xarray-2023.4.2.ebuild +++ b/dev-python/xarray/xarray-2023.4.2.ebuild @@ -17,7 +17,7 @@ HOMEPAGE=" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="amd64 arm ~arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux" RDEPEND=" >=dev-python/numpy-1.22[${PYTHON_USEDEP}] diff --git a/dev-python/yarl/yarl-1.9.2.ebuild b/dev-python/yarl/yarl-1.9.2.ebuild index 6be34850b922..d850b86dc8a6 100644 --- a/dev-python/yarl/yarl-1.9.2.ebuild +++ b/dev-python/yarl/yarl-1.9.2.ebuild @@ -17,7 +17,7 @@ HOMEPAGE=" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" RDEPEND=" >=dev-python/multidict-4.0[${PYTHON_USEDEP}] @@ -38,6 +38,20 @@ src_configure() { } python_test() { + local EPYTEST_DESELECT=() + if [[ ${EPYTHON} == python3.12 ]]; then + EPYTEST_DESELECT+=( + # tests for seemingly invalid addresses, unlikely to affect + # real world use + # https://github.com/aio-libs/yarl/issues/876 + tests/test_url.py::test_ipv6_zone + tests/test_url.py::test_human_repr_delimiters + tests/test_url_parsing.py::TestHost::test_masked_ipv4 + tests/test_url_parsing.py::TestHost::test_strange_ip + tests/test_url_parsing.py::TestUserInfo::test_weird_user3 + ) + fi + cd tests || die epytest --override-ini=addopts= } diff --git a/dev-python/zstandard/zstandard-0.21.0.ebuild b/dev-python/zstandard/zstandard-0.21.0.ebuild index 8d5b23c9782e..687298d5d623 100644 --- a/dev-python/zstandard/zstandard-0.21.0.ebuild +++ b/dev-python/zstandard/zstandard-0.21.0.ebuild @@ -23,7 +23,7 @@ S=${WORKDIR}/${MY_P} SLOT="0" LICENSE="BSD" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" DEPEND=" app-arch/zstd:= |
