diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-01-26 19:51:10 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-01-26 19:51:10 +0000 |
| commit | 1d7597f7115205e0dd20171886c38860ceef7a54 (patch) | |
| tree | 201cd5f4fa8451f37417f55fe5f15b2cd6d14676 /dev-python | |
| parent | 7d0f02291c8488a5fba11f2cc88f4d76bb499afe (diff) | |
| download | baldeagleos-repo-1d7597f7115205e0dd20171886c38860ceef7a54.tar.gz baldeagleos-repo-1d7597f7115205e0dd20171886c38860ceef7a54.tar.xz baldeagleos-repo-1d7597f7115205e0dd20171886c38860ceef7a54.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
50 files changed, 489 insertions, 269 deletions
diff --git a/dev-python/Nuitka/Manifest b/dev-python/Nuitka/Manifest index b8efc53ce2b5..1e53617e7d30 100644 --- a/dev-python/Nuitka/Manifest +++ b/dev-python/Nuitka/Manifest @@ -1,3 +1,4 @@ DIST Nuitka-1.9.5.tar.gz 3911838 BLAKE2B 064ad4aa48d94b4eb7c886d445e7228c72d03dcb22e75e82a7c43b42a20a32f1b11855017f72101e54c45b4591ffd2af0912191eb7f13367f16726208308a6de SHA512 8b8bc0ec0f4666ae63bd4cb3463c6321bd1cbde7a64ca37d500bd2e60d50f6a13aca5dc89a101d7b8e39622e21091b24232ecf8361b4ae9a9913c187742c7607 DIST Nuitka-1.9.6.tar.gz 3914776 BLAKE2B 82a50f642f8b93caa725bbfffa6236d490ccb8d731ea917886d0cde03aa6c2237f6c8ff7687ad3140c985cc7c5b525e16aaf07bd604232e32b7fa0fb102a00f5 SHA512 005be29f72685677da1e037b36381765c1248bc2940eb92a46e8e5df990f0241af831b8cf28ab2957d3a7d3d0cb03c2b99ab5af4e900afba53b5ac60e95d1a24 DIST Nuitka-1.9.7.tar.gz 3916330 BLAKE2B df269672d0c7b860a0aebf0cd9f321442344c69e1ea8ccaad193a835b11ca6cfe048179d3ab03a616525aa022327e168c48406c733354ed13c07c49e26cb0bb8 SHA512 71ce5ef929489ce7a72a2b62b7106dee35380b0d185788e105044cab6448d9c3470e3d783c71a9796404038b8035019816553a360a62d868cfc870675b3bb384 +DIST Nuitka-2.0.tar.gz 3964226 BLAKE2B 76ace502390dcb9c10ae9a9dc624575453a0e9c440509b40e74162200d84942be565f07a0877f3bfeb8b82b4f1398f8d7c9150e19d8be58e3f67859f0656277d SHA512 93125344fa8556c0c185dabce14786f52f9db37ba1cbdb1d9fafc08d72be66bbb2bad4e55b12a92c84d85efef6d914fb6ae4e5ca7c4da0574f1892152b111ea0 diff --git a/dev-python/Nuitka/Nuitka-2.0.ebuild b/dev-python/Nuitka/Nuitka-2.0.ebuild new file mode 100644 index 000000000000..ace539e2aa7a --- /dev/null +++ b/dev-python/Nuitka/Nuitka-2.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 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_{8,9,10,11,12} ) + +inherit distutils-r1 flag-o-matic optfeature pypi + +DESCRIPTION="Python to native compiler" +HOMEPAGE=" + https://www.nuitka.net/ + https://github.com/Nuitka/Nuitka/ + https://pypi.org/project/Nuitka/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~loong ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-build/scons[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( dev-util/ccache ) +" + +distutils-r1_src_prepare() { + # remove vendored version of SCons that is Python2 only + # this should be removed when upstream removes support for Python2 + rm -vR "nuitka/build/inline_copy/lib/scons-2.3.2/SCons" || die + eapply_user +} + +python_install() { + distutils-r1_python_install + doman doc/nuitka3.1 doc/nuitka3-run.1 +} + +python_test() { + append-ldflags -Wl,--no-warn-search-mismatch + ./tests/basics/run_all.py search || die +} + +pkg_postinst() { + optfeature "support for stand-alone executables" app-admin/chrpath +} diff --git a/dev-python/black/Manifest b/dev-python/black/Manifest index 2e03c3f518a4..b7d566276bc3 100644 --- a/dev-python/black/Manifest +++ b/dev-python/black/Manifest @@ -1 +1,2 @@ DIST black-23.12.1.tar.gz 620809 BLAKE2B 8522183d8004dd094f87fc8efcbbbafede9f94ded2f67d4815059534da91c969067c5c508636c2654894109f91d8fb5b26f23351b5ffff451aeac8ed5d146da4 SHA512 1a90eadbb7ccf1dd6c4c7d858b3360b7c62c04bf1826dd4817ddb8d542c3155fc72a80d53aa3be34375bd7006ab65432e006572bc5d1eeb6ff23cfa460072e93 +DIST black-24.1.0.tar.gz 622911 BLAKE2B 371a334df390f758fe482dac42345ab0cd7058c2dcbb49f5ce4337fedfe5b330308ab2644438a447ae76413fc95b65ba0fb0ab68a3a294e12f2fe147cebdfc25 SHA512 f9d2315743b91dcc563f8e57d4bfb3d80aff2b6a8f426d348c84d23cbcc1fe85107b4b3d78f396959d10240b75586e29bb26d7e767d382cc9d977703f2fa8d09 diff --git a/dev-python/black/black-24.1.0.ebuild b/dev-python/black/black-24.1.0.ebuild new file mode 100644 index 000000000000..62cdfb3bf756 --- /dev/null +++ b/dev-python/black/black-24.1.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + +inherit distutils-r1 optfeature pypi + +DESCRIPTION="The uncompromising Python code formatter" +HOMEPAGE=" + https://black.readthedocs.io/en/stable/ + https://github.com/psf/black/ + https://pypi.org/project/black/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + >=dev-python/click-8.0.0[${PYTHON_USEDEP}] + >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] + >=dev-python/packaging-22.0[${PYTHON_USEDEP}] + >=dev-python/pathspec-0.9.0[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}] + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + >=dev-python/aiohttp-3.7.4[${PYTHON_USEDEP}] + dev-python/aiohttp-cors[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # incompatible with xdist + tests/test_black.py::TestCaching::test_output_locking_when_writeback_diff + tests/test_black.py::TestCaching::test_failed_formatting_does_not_get_cached +) + +pkg_postinst() { + optfeature "blackd - HTTP API for black" \ + "dev-python/aiohttp dev-python/aiohttp-cors" +} diff --git a/dev-python/colorlog/Manifest b/dev-python/colorlog/Manifest index 134a7e97a81f..9ad510d2363f 100644 --- a/dev-python/colorlog/Manifest +++ b/dev-python/colorlog/Manifest @@ -1 +1,2 @@ DIST colorlog-6.8.0.tar.gz 29939 BLAKE2B fd260f0c4149283a008d0902962848c579500f24937c2ae7a0ef75f6f10552f9739c5c1dce9553e264617f6662a9d3c8c31943d6690a4769abfa550dc4862f76 SHA512 a16752be362ed1ed5104e54d872d847873b9bc9138d59a8e525e32b386c8824c7a21689c354517392de6f16035601ce0f30daebc32d08b911c18ca4004292e02 +DIST colorlog-6.8.2.tar.gz 16529 BLAKE2B c745e9deae4f0a96e5b3481268b7ae402f0c7f05a3997753cbc6e117c1f0630338748ca557f5f3ae261694f0ce6c65f486d06d35778b3ee331160d2c0596465f SHA512 cffd4541837e15ed7cfa0e48d8424d6bb10d0de6e227fe16145cfba51ebc2f90e2a4c750db57d37ee2708ec0272de97ad74e946283b7b3cd3628e1bd24a60b6f diff --git a/dev-python/hijri-converter/hijri-converter-2.2.4.ebuild b/dev-python/colorlog/colorlog-6.8.2.ebuild index f4153f7580b6..ad1c8bc49b3f 100644 --- a/dev-python/hijri-converter/hijri-converter-2.2.4.ebuild +++ b/dev-python/colorlog/colorlog-6.8.2.ebuild @@ -1,18 +1,21 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) DISTUTILS_USE_PEP517=setuptools -PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) + inherit distutils-r1 pypi -DESCRIPTION="Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar" -HOMEPAGE="https://github.com/dralshehri/hijri-converter" +DESCRIPTION="Log formatting with colors" +HOMEPAGE=" + https://pypi.org/project/colorlog/ + https://github.com/borntyping/python-colorlog/ +" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" distutils_enable_tests pytest diff --git a/dev-python/convertdate/convertdate-2.4.0.ebuild b/dev-python/convertdate/convertdate-2.4.0.ebuild index 21fd2f018cfa..89a66d304835 100644 --- a/dev-python/convertdate/convertdate-2.4.0.ebuild +++ b/dev-python/convertdate/convertdate-2.4.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/dask/dask-2024.1.0.ebuild b/dev-python/dask/dask-2024.1.0.ebuild index ab8df4eb3c89..e7216e3b1488 100644 --- a/dev-python/dask/dask-2024.1.0.ebuild +++ b/dev-python/dask/dask-2024.1.0.ebuild @@ -75,6 +75,8 @@ python_test() { dask/dataframe/io/tests/test_sql.py # crashes dask/tests/test_base.py::test_tokenize_object_with_recursion_error + # regression with new pandas (?) + dask/dataframe/tests/test_multi.py::test_concat5 ) if ! has_version -b "dev-python/pyarrow[parquet,${PYTHON_USEDEP}]"; then diff --git a/dev-python/dateparser/Manifest b/dev-python/dateparser/Manifest index 1425c2c3c3da..44c8fffea20e 100644 --- a/dev-python/dateparser/Manifest +++ b/dev-python/dateparser/Manifest @@ -1,2 +1 @@ -DIST dateparser-1.1.7.tar.gz 295818 BLAKE2B 11bb07f6c3c46a5e19111715a8801b8789d7f1fd0fd407232a071ddd40b337153dce3b42197f3a2fd8081c505f4418abb3ff265e25641a95eed31575c6ad2a70 SHA512 d333fa2007c069f7424def9694544767a8885eec5d476e9dd73605754fd53f5a9dbbeb19f24291ac6c6ffa09b4014a3135ad8fbabadae1655c78a8d5fe36f907 -DIST dateparser-1.1.8.tar.gz 296595 BLAKE2B 0e1bedbfc0b54d3a763a5f982774685e0c4aebe418dcfe5190c613a6de1e8d445c9906b9c7e8ca87ea37b2ef508eb8bd789e07b7b5f11fac3df7d16f24a08c00 SHA512 45fc6ee67be77ae9ece818b25e680a9416c30bbe8d71746a2b08910b57406d65e6b9f0c51ada1697034ea1f3f9a0952c2f0616c9fa1be4c7886e459e1cc2d898 +DIST dateparser-1.2.0.tar.gz 307260 BLAKE2B b4611dfc4fccaf5f129e4d9aa3debe4a6d4242a44896305b909e6c34728ba153be92659b2f0c3a5da028d3863789d9c3a4236676087346b5f3f4aeb1f57b7a1e SHA512 74d5975f515dee096d83d10b72e5dc66ab197d50f24c129560ffb87eef4abd1422d8236555496d1ab1c0bfb832729e9c0d3ea2ca2c9c49da19963f0f2c1c1eb4 diff --git a/dev-python/dateparser/dateparser-1.1.8.ebuild b/dev-python/dateparser/dateparser-1.1.8.ebuild deleted file mode 100644 index c8cecc1ba4b4..000000000000 --- a/dev-python/dateparser/dateparser-1.1.8.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 optfeature pypi - -DESCRIPTION="Date parsing library designed to parse dates from HTML pages" -HOMEPAGE=" - https://pypi.org/project/dateparser/ - https://github.com/scrapinghub/dateparser -" - -LICENSE="BSD-4" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - dev-python/python-dateutil[${PYTHON_USEDEP}] - dev-python/pytz[${PYTHON_USEDEP}] - dev-python/regex[${PYTHON_USEDEP}] - dev-python/tzlocal[${PYTHON_USEDEP}] -" -BDEPEND="test? ( - dev-libs/fastText[python,${PYTHON_USEDEP}] - dev-python/convertdate[${PYTHON_USEDEP}] - dev-python/hijri-converter[${PYTHON_USEDEP}] - dev-python/langdetect[${PYTHON_USEDEP}] - dev-python/parameterized[${PYTHON_USEDEP}] -)" - -EPYTEST_IGNORE=( - # tests that require network - tests/test_dateparser_data_integrity.py -) - -EPYTEST_DESELECT=( - # tests that require network - tests/test_language_detect.py::CustomLangDetectParserTest::test_custom_language_detect_fast_text_{0,1} - # broken - tests/test_search.py::TestTranslateSearch::test_relative_base_setting_1_en - tests/test_search.py::TestTranslateSearch::test_splitting_of_not_parsed_1_en - tests/test_search.py::TestTranslateSearch::test_splitting_of_not_parsed_5_en - tests/test_search.py::TestTranslateSearch::test_splitting_of_not_parsed_6_sv -) - -distutils_enable_tests pytest - -distutils_enable_sphinx docs \ - dev-python/sphinx-rtd-theme - -pkg_postinst() { - optfeature "calendars support" "dev-python/hijri-converter dev-python/convertdate" - optfeature "fasttext support" "dev-libs/fastText[python]" - optfeature "langdetect support" dev-python/langdetect -} diff --git a/dev-python/dateparser/dateparser-1.1.7.ebuild b/dev-python/dateparser/dateparser-1.2.0.ebuild index f7c8274b8fea..fddbade90aae 100644 --- a/dev-python/dateparser/dateparser-1.1.7.ebuild +++ b/dev-python/dateparser/dateparser-1.2.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -13,7 +13,7 @@ HOMEPAGE=" https://github.com/scrapinghub/dateparser " -LICENSE="BSD-4" +LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" @@ -26,11 +26,13 @@ RDEPEND=" BDEPEND="test? ( dev-libs/fastText[python,${PYTHON_USEDEP}] dev-python/convertdate[${PYTHON_USEDEP}] - dev-python/hijri-converter[${PYTHON_USEDEP}] + dev-python/hijridate[${PYTHON_USEDEP}] dev-python/langdetect[${PYTHON_USEDEP}] dev-python/parameterized[${PYTHON_USEDEP}] )" +PATCHES=( "${FILESDIR}/${P}-migrate-hijridate.patch" ) + EPYTEST_IGNORE=( # tests that require network tests/test_dateparser_data_integrity.py @@ -47,7 +49,7 @@ distutils_enable_sphinx docs \ dev-python/sphinx-rtd-theme pkg_postinst() { - optfeature "calendars support" "dev-python/hijri-converter dev-python/convertdate" + optfeature "calendars support" "dev-python/hijridate dev-python/convertdate" optfeature "fasttext support" "dev-libs/fastText[python]" optfeature "langdetect support" dev-python/langdetect } diff --git a/dev-python/dateparser/files/dateparser-1.2.0-migrate-hijridate.patch b/dev-python/dateparser/files/dateparser-1.2.0-migrate-hijridate.patch new file mode 100644 index 000000000000..3d488ca53b9d --- /dev/null +++ b/dev-python/dateparser/files/dateparser-1.2.0-migrate-hijridate.patch @@ -0,0 +1,71 @@ +https://github.com/scrapinghub/dateparser/pull/1211 +From: pastalian <pastalian46@gmail.com> +Date: Thu, 25 Jan 2024 21:14:28 +0900 +Subject: [PATCH] Migrate from hijri-converter to hijridate + +--- a/dateparser/calendars/hijri_parser.py ++++ b/dateparser/calendars/hijri_parser.py +@@ -1,4 +1,4 @@ +-from hijri_converter import convert ++from hijridate import Gregorian, Hijri + + from dateparser.calendars import non_gregorian_parser + +@@ -6,19 +6,17 @@ + class hijri: + @classmethod + def to_gregorian(cls, year=None, month=None, day=None): +- g = convert.Hijri( +- year=year, month=month, day=day, validate=False +- ).to_gregorian() ++ g = Hijri(year=year, month=month, day=day, validate=False).to_gregorian() + return g.datetuple() + + @classmethod + def from_gregorian(cls, year=None, month=None, day=None): +- h = convert.Gregorian(year, month, day).to_hijri() ++ h = Gregorian(year, month, day).to_hijri() + return h.datetuple() + + @classmethod + def month_length(cls, year, month): +- h = convert.Hijri(year=year, month=month, day=1) ++ h = Hijri(year=year, month=month, day=1) + return h.month_length() + + +--- a/docs/introduction.rst ++++ b/docs/introduction.rst +@@ -223,13 +223,13 @@ Dependencies + + * dateutil_'s module ``relativedelta`` for its freshness parser. + * convertdate_ to convert *Jalali* dates to *Gregorian*. +- * hijri-converter_ to convert *Hijri* dates to *Gregorian*. ++ * hijridate_ to convert *Hijri* dates to *Gregorian*. + * tzlocal_ to reliably get local timezone. + * ruamel.yaml_ (optional) for operations on language files. + + .. _dateutil: https://pypi.python.org/pypi/python-dateutil + .. _convertdate: https://pypi.python.org/pypi/convertdate +-.. _hijri-converter: https://pypi.python.org/pypi/hijri-converter ++.. _hijridate: https://pypi.python.org/pypi/hijridate + .. _tzlocal: https://pypi.python.org/pypi/tzlocal + .. _ruamel.yaml: https://pypi.python.org/pypi/ruamel.yaml + +@@ -261,4 +261,4 @@ To be able to use them you need to install the `calendar` extra by typing: + >>> HijriCalendar('17-01-1437 هـ 08:30 مساءً').get_date() + DateData(date_obj=datetime.datetime(2015, 10, 30, 20, 30), period='day', locale=None) + +-.. note:: `HijriCalendar` only works with Python ≥ 3.6. ++.. note:: `HijriCalendar` only works with Python ≥ 3.7. +--- a/setup.py ++++ b/setup.py +@@ -41,7 +41,7 @@ + "console_scripts": ["dateparser-download = dateparser_cli.cli:entrance"], + }, + extras_require={ +- "calendars": ["hijri-converter", "convertdate"], ++ "calendars": ["hijridate", "convertdate"], + "fasttext": ["fasttext"], + "langdetect": ["langdetect"], + }, diff --git a/dev-python/decopatch/Manifest b/dev-python/decopatch/Manifest index db88ebb4539d..c5b1e1dc1306 100644 --- a/dev-python/decopatch/Manifest +++ b/dev-python/decopatch/Manifest @@ -1,2 +1 @@ DIST decopatch-1.4.10.tar.gz 69538 BLAKE2B 812305abb0648c42fe786f6153820ff68e3bf3cb23bf0b3eecb139085b88071f914aa556f17a90bd45b39cdf42a563fb3c30178095bbdd16331d36ec2ff29e58 SHA512 7554c5bdef6aeb06968334c8aef3f67b56bd3ff8be5e05cb6289f3088848d946d46ecc1d9f73bab9db80b6981aa4f9039c359eb8a0fe9f4acee62addf4f0ed96 -DIST decopatch-1.4.9.tar.gz 68419 BLAKE2B bb49ffd093aead65373f6c56955d2dfcdf73f5654acb12ddfbfc0b5c94f9db8e10c70493489cc06a569bef312f04c3e5cb94bbc9e64ba2f75866777fa7721aff SHA512 2f131bbc485ab177c86abb782cdd0b66b7370a7fb97b62e27da5fb62f3c115ae540eae22a346d8ecb0946216661c111f952d8e22e60b40de21371cd38b93264a diff --git a/dev-python/decopatch/decopatch-1.4.10.ebuild b/dev-python/decopatch/decopatch-1.4.10.ebuild index e284d3fbaf32..92e22240e74d 100644 --- a/dev-python/decopatch/decopatch-1.4.10.ebuild +++ b/dev-python/decopatch/decopatch-1.4.10.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -26,6 +26,8 @@ BDEPEND=" test? ( dev-python/pytest-cases[${PYTHON_USEDEP}] ) " +PATCHES=( "${FILESDIR}/${P}-python12.patch" ) + distutils_enable_tests pytest python_prepare_all() { diff --git a/dev-python/decopatch/decopatch-1.4.9.ebuild b/dev-python/decopatch/decopatch-1.4.9.ebuild deleted file mode 100644 index e1bd1bb30e58..000000000000 --- a/dev-python/decopatch/decopatch-1.4.9.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -DISTUTILS_USE_PEP517=setuptools - -DOCS_BUILDER="mkdocs" -DOCS_DEPEND="dev-python/mkdocs-material" - -inherit distutils-r1 docs pypi - -DESCRIPTION="Create decorators easily in python" -HOMEPAGE="https://pypi.org/project/decopatch/ https://github.com/smarie/python-decopatch" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND="dev-python/makefun[${PYTHON_USEDEP}]" -BDEPEND=" - dev-python/setuptools-scm[${PYTHON_USEDEP}] - test? ( dev-python/pytest-cases[${PYTHON_USEDEP}] ) -" - -distutils_enable_tests pytest - -python_prepare_all() { - sed "/pytest-runner/d" -i setup.cfg || die - distutils-r1_python_prepare_all -} - -python_compile_all() { - docs_compile -} diff --git a/dev-python/decopatch/files/decopatch-1.4.10-python12.patch b/dev-python/decopatch/files/decopatch-1.4.10-python12.patch new file mode 100644 index 000000000000..24ca2082e9ca --- /dev/null +++ b/dev-python/decopatch/files/decopatch-1.4.10-python12.patch @@ -0,0 +1,61 @@ +https://github.com/smarie/python-decopatch/pull/34 +From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl> +Date: Tue, 25 Jul 2023 13:31:12 +0200 +Subject: [PATCH] Adjust for whitespace changes with python 3.12 + +Tests would fail with python3-3.12.0~b4-1.fc39.x86_64. +--- a/tests/test_doc.py ++++ b/tests/test_doc.py +@@ -1,5 +1,5 @@ + from __future__ import print_function +- ++import re + + import pytest + from makefun import wraps +@@ -182,7 +182,8 @@ def add_ints(a, b): + with capsys.disabled(): + print(captured.out) + +- assert captured.out == """hello, world ! ++ out = re.sub(r'[ \t]+\n', '\n', captured.out) ++ assert out == """hello, world ! + <executing foo> + hello, world ! + <executing bar> +@@ -195,7 +196,7 @@ def add_ints(a, b): + say_hello(person='world') + This decorator wraps the decorated function so that a nice hello + message is printed before each call. +- ++ + :param person: the person name in the print message. Default = "world" + + Signature: (person='world') +--- a/tests/test_doc_advanced.py ++++ b/tests/test_doc_advanced.py +@@ -1,4 +1,5 @@ + from __future__ import print_function ++import re + import sys + + import pytest +@@ -200,7 +201,8 @@ def custom(a, b): + with capsys.disabled(): + print(captured.out) + +- assert captured.out == """hello, world ! ++ out = re.sub(r'[ \t]+\n', '\n', captured.out) ++ assert out == """hello, world ! + hello, world ! + hello, you ! + Help on function say_hello in module tests.test_doc_advanced: +@@ -208,7 +210,7 @@ def custom(a, b): + say_hello(person='world') + This decorator modifies the decorated function so that a nice hello + message is printed before the call. +- ++ + :param person: the person name in the print message. Default = "world" + :param f: represents the decorated item. Automatically injected. + :return: a modified version of `f` that will print a hello message before executing diff --git a/dev-python/google-api-core/google-api-core-2.15.0.ebuild b/dev-python/google-api-core/google-api-core-2.15.0.ebuild index 0db39a05b556..40fa31daef86 100644 --- a/dev-python/google-api-core/google-api-core-2.15.0.ebuild +++ b/dev-python/google-api-core/google-api-core-2.15.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2023 Gentoo Authors +# Copyright 2020-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/google-auth-httplib2/google-auth-httplib2-0.2.0.ebuild b/dev-python/google-auth-httplib2/google-auth-httplib2-0.2.0.ebuild index a5f47279345f..8cf514aeb584 100644 --- a/dev-python/google-auth-httplib2/google-auth-httplib2-0.2.0.ebuild +++ b/dev-python/google-auth-httplib2/google-auth-httplib2-0.2.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/google-auth/google-auth-2.27.0.ebuild b/dev-python/google-auth/google-auth-2.27.0.ebuild index a05717a8fe9b..0dd347cc1e65 100644 --- a/dev-python/google-auth/google-auth-2.27.0.ebuild +++ b/dev-python/google-auth/google-auth-2.27.0.ebuild @@ -30,7 +30,6 @@ BDEPEND=" dev-python/cryptography[${PYTHON_USEDEP}] dev-python/flask[${PYTHON_USEDEP}] dev-python/freezegun[${PYTHON_USEDEP}] - dev-python/grpcio[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] dev-python/moto[${PYTHON_USEDEP}] dev-python/pyopenssl[${PYTHON_USEDEP}] diff --git a/dev-python/googleapis-common-protos/googleapis-common-protos-1.62.0.ebuild b/dev-python/googleapis-common-protos/googleapis-common-protos-1.62.0.ebuild index 18bbdfbe7283..c6281d2a21e4 100644 --- a/dev-python/googleapis-common-protos/googleapis-common-protos-1.62.0.ebuild +++ b/dev-python/googleapis-common-protos/googleapis-common-protos-1.62.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2023 Gentoo Authors +# Copyright 2020-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/hijri-converter/Manifest b/dev-python/hijri-converter/Manifest deleted file mode 100644 index a504e2f684b9..000000000000 --- a/dev-python/hijri-converter/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST hijri-converter-2.2.4.tar.gz 34899 BLAKE2B 749d50ed8f669766d4b605dbec30173c69be7a0a66eb7bcbfc65a915ad5c340a75f0948a045edafa4111a9c0386b8a502c92236168e691535dac95aeb0a08705 SHA512 3d11bf642c97ad5b2dd50f0015d69ba7f63557ab0977fd174418e3ee2ae4406189b571ce9f0e0f7960ea13248206ba12287d63a7090bb0781d3b9baf7b79dd98 diff --git a/dev-python/hijri-converter/metadata.xml b/dev-python/hijri-converter/metadata.xml deleted file mode 100644 index 7eda6e1fa5e5..000000000000 --- a/dev-python/hijri-converter/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>lssndrbarbieri@gmail.com</email> - <name>Alessandro Barbieri</name> - <description>co-maintainers welcome</description> - </maintainer> - <upstream> - <doc>https://hijri-converter.readthedocs.io</doc> - </upstream> - <origin>gentoo-guru-overlay</origin> -</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/hijridate/Manifest b/dev-python/hijridate/Manifest index cc251c2c0b46..454c2f9058af 100644 --- a/dev-python/hijridate/Manifest +++ b/dev-python/hijridate/Manifest @@ -1 +1 @@ -DIST hijridate-2.3.0.gh.tar.gz 42409 BLAKE2B 3a06adb44542def4a49c33951f4ae8e2a0057f1fdc276d28ce05462aa93111d387e36a86786beaf18b8009d40b9db661f4704a2c97c3da4406da10a171e90eb8 SHA512 5b67337d7acf9e44e9d38f0cce8c0e7d0cf4ffbeee4d8e7f7813e42d079f364422529c08572f0f7cf64aa08ba2519c3e834a28f5a3aec16e79ce3fef91ff34bb +DIST hijridate-2.4.1.gh.tar.gz 42771 BLAKE2B 7640d2eb6760f1e496468f0cb11d25c3bb4bf8fc4274b1d802d25b8392a44a83c46564d3f2372f53a37ec10fd914c1fbf096dab359018350662b747f8c1c65a6 SHA512 64fc38afbb59ce5de3611602ed8b0262cf410b66236f57e30aeb3d39db904afbfb17b300dba0ac7ab2163b7c4c000b2d444fa3769f00c7a7e80b8fe4bbc7216c diff --git a/dev-python/hijridate/hijridate-2.3.0.ebuild b/dev-python/hijridate/hijridate-2.4.1.ebuild index 5ad18e0b7df2..ab1cd424c9d1 100644 --- a/dev-python/hijridate/hijridate-2.3.0.ebuild +++ b/dev-python/hijridate/hijridate-2.4.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,6 +19,7 @@ KEYWORDS="~amd64" distutils_enable_tests pytest distutils_enable_sphinx docs \ + dev-python/furo \ dev-python/myst-parser \ dev-python/sphinx-notfound-page \ dev-python/sphinx-rtd-theme diff --git a/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch b/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch new file mode 100644 index 000000000000..637368d2f237 --- /dev/null +++ b/dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch @@ -0,0 +1,13 @@ +Fix "Package 'langdetect.profiles' is absent from the `packages` configuration." + +--- a/setup.py ++++ b/setup.py +@@ -18,7 +18,7 @@ setup( + author_email='michal.danilak@gmail.com', + url='https://github.com/Mimino666/langdetect', + keywords='language detection library', +- packages=['langdetect', 'langdetect.utils', 'langdetect.tests'], ++ packages=['langdetect', 'langdetect.utils', 'langdetect.tests', 'langdetect.profiles'], + include_package_data=True, + install_requires=['six'], + license='MIT', diff --git a/dev-python/langdetect/langdetect-1.0.9.ebuild b/dev-python/langdetect/langdetect-1.0.9.ebuild index c09b7356f549..630fe63c6f53 100644 --- a/dev-python/langdetect/langdetect-1.0.9.ebuild +++ b/dev-python/langdetect/langdetect-1.0.9.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,4 +19,6 @@ KEYWORDS="~amd64" RDEPEND="dev-python/six[${PYTHON_USEDEP}]" +PATCHES=( "${FILESDIR}/${P}-explicit-config.patch" ) + distutils_enable_tests unittest diff --git a/dev-python/numexpr/Manifest b/dev-python/numexpr/Manifest index fcea8278e7d6..14ca77695eb8 100644 --- a/dev-python/numexpr/Manifest +++ b/dev-python/numexpr/Manifest @@ -1 +1,2 @@ DIST numexpr-2.8.8.gh.tar.gz 118241 BLAKE2B 409477cf69b64405359e86b11127fe31ccf6f940499fc5591498865fdef750a3321ff08ab5332caf0f11479927523d80699488f2985793a5f73f22b7467852bc SHA512 f89a2f04797ad4dffc3a591685e1a0e577912610d6b5359d2344a1a0a78873d951e95fa7c47833ab1008315467b861eb464442f85c06d1fe73f9743bcf358332 +DIST numexpr-2.9.0.gh.tar.gz 118463 BLAKE2B 04904a6faaff713b9775dc3601fcfc963b9bea5bc24e1d2ca21f0123d7dca8d088abef9b8da09195e9bf9fb6a4ff3b2bee0f75dbc5b40e174803cb726d8b1f31 SHA512 9d7319a872228faea845fbc8c2b85b5f9e941eb2e1308711835bdba37fce65543a23ad483b92e28c33b3eb341f2f7d75b760a0827ae63782fac573a65efdedb0 diff --git a/dev-python/numexpr/numexpr-2.9.0.ebuild b/dev-python/numexpr/numexpr-2.9.0.ebuild new file mode 100644 index 000000000000..e02fc9c6ace4 --- /dev/null +++ b/dev-python/numexpr/numexpr-2.9.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Fast numerical array expression evaluator for Python and NumPy" +HOMEPAGE=" + https://github.com/pydata/numexpr/ + https://pypi.org/project/numexpr/ +" +SRC_URI="https://github.com/pydata/numexpr/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" + +DEPEND=" + >=dev-python/numpy-1.13.3[${PYTHON_USEDEP}] +" +RDEPEND=" + ${DEPEND} + dev-python/packaging[${PYTHON_USEDEP}] +" + +python_test() { + pushd "${BUILD_DIR}/install/$(python_get_sitedir)" >/dev/null || die + "${EPYTHON}" - <<-EOF || die "Tests failed with ${EPYTHON}" + import sys,numexpr + sys.exit(0 if numexpr.test().wasSuccessful() else 1) + EOF + pushd >/dev/null || die +} diff --git a/dev-python/partd/partd-1.4.1.ebuild b/dev-python/partd/partd-1.4.1.ebuild index 1fa27c82c72a..5abbcde63031 100644 --- a/dev-python/partd/partd-1.4.1.ebuild +++ b/dev-python/partd/partd-1.4.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -23,6 +23,7 @@ RDEPEND=" dev-python/toolz[${PYTHON_USEDEP}] " BDEPEND=" + dev-python/versioneer[${PYTHON_USEDEP}] test? ( dev-python/blosc[${PYTHON_USEDEP}] dev-python/numpy[${PYTHON_USEDEP}] @@ -33,3 +34,9 @@ BDEPEND=" " distutils_enable_tests pytest + +src_prepare() { + # remove outdated version + rm versioneer.py || die + distutils-r1_src_prepare +} diff --git a/dev-python/phonenumbers/Manifest b/dev-python/phonenumbers/Manifest index 2752e9e3483e..d7810d4da6d4 100644 --- a/dev-python/phonenumbers/Manifest +++ b/dev-python/phonenumbers/Manifest @@ -1,2 +1,3 @@ DIST python-phonenumbers-8.13.27.gh.tar.gz 4915760 BLAKE2B 1a46d8b878ca9529bece2bf1144baf7800f2d52a2b613d27d2d6dd3f16a94fb6655fc892b9e305f4926674e20a3221e891a10b683ec009dd3b57a6e31da38136 SHA512 a057a7925611a25f1d100e2d32b16b76fb14880e91bc166a78ece18c0af2089f8dd0dbed66751f454040072b516c795dc60f42659353b4cab4c6c39fc599352d DIST python-phonenumbers-8.13.28.gh.tar.gz 4914842 BLAKE2B 1ea137e877351b8730a29d3ae79ca1cdb6cb1ae3f7fac8b68b4fe7704da170bd0c8df2819f8a011d4b09461064e2d482417f091f461a9939b7c16317d0634eba SHA512 07d46b7fe09386d03bef2c655b5517aea047db0c3d79f1a93352e538d449facba915436ccdd5ff60042e7b24a75e6999dcd440ba15fdadbf87cf89b5f5c6939e +DIST python-phonenumbers-8.13.29.gh.tar.gz 4914849 BLAKE2B 0a9cc4dd44a32bd2e48dca839427c5e95ef5a39b3e2337c17223dcaec1e5cdfb2e3533bb89ec2a1ac0b462699f7a937f9c2df7d6fae8a9f1b1f3c4f50c3f4dd9 SHA512 d456be2c95a6b0414370b418280977ff50a0c6b4e55680c30026b959d8c1db633a6f456246a8c3e01ab59b5f218960229834737ae06724998ef8c2052266344d diff --git a/dev-python/phonenumbers/phonenumbers-8.13.29.ebuild b/dev-python/phonenumbers/phonenumbers-8.13.29.ebuild new file mode 100644 index 000000000000..062c56c77784 --- /dev/null +++ b/dev-python/phonenumbers/phonenumbers-8.13.29.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +MY_P=python-${P} +DESCRIPTION="Python port of Google's libphonenumber" +HOMEPAGE=" + https://github.com/daviddrysdale/python-phonenumbers/ + https://pypi.org/project/phonenumbers/ +" +SRC_URI=" + https://github.com/daviddrysdale/python-phonenumbers/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P}/python + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + dev-python/protobuf-python[${PYTHON_USEDEP}] + ) +" + +DOCS=( ../README.md ) + +python_test() { + "${EPYTHON}" testwrapper.py -v || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/proto-plus/proto-plus-1.23.0.ebuild b/dev-python/proto-plus/proto-plus-1.23.0.ebuild index da9f0cee5d91..8c0096e1aec4 100644 --- a/dev-python/proto-plus/proto-plus-1.23.0.ebuild +++ b/dev-python/proto-plus/proto-plus-1.23.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2021-2023 Gentoo Authors +# Copyright 2021-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -31,7 +31,6 @@ RDEPEND=" BDEPEND=" test? ( >=dev-python/google-api-core-1.31.5[${PYTHON_USEDEP}] - dev-python/grpcio[${PYTHON_USEDEP}] dev-python/pytz[${PYTHON_USEDEP}] ) " diff --git a/dev-python/pure-protobuf/Manifest b/dev-python/pure-protobuf/Manifest index 64a457a06aca..0dff75892522 100644 --- a/dev-python/pure-protobuf/Manifest +++ b/dev-python/pure-protobuf/Manifest @@ -1,2 +1 @@ -DIST pure_protobuf-2.2.3.tar.gz 16445 BLAKE2B 38f13a975b4364e900e30e80d66e735ba4d871455002778f7caace14574de38fbfcf6735115b41a9c77cf023fea49dcaa1e43817e93f54388538f7619f26225a SHA512 b2189ff0971c0f797a526c056691e2d2e860d9a07be2d78ea30f5e74f940f95646235f2570c8d5d42559f184d37e0e3250f8caf4659092f567dd598c7b926a98 DIST pure_protobuf-2.3.0.tar.gz 16481 BLAKE2B b56d024b13ef4711c9b53ffc47029fb4e49e025d8c096b547926d44a89769a26d180420698dbf51c2db4b58f8b8df6825d368c921babdd9774e4c3a4f0d72e7e SHA512 2b2eb372cde5b7c765fa878b06fe1a82f57061d0887f560aa84799db09d506a4947b54feffff51391ebf2c87923845f93badbab19e1cf45f998c79f6df75fb05 diff --git a/dev-python/pure-protobuf/pure-protobuf-2.2.3.ebuild b/dev-python/pure-protobuf/pure-protobuf-2.2.3.ebuild deleted file mode 100644 index 0f7e5cf145f2..000000000000 --- a/dev-python/pure-protobuf/pure-protobuf-2.2.3.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -DISTUTILS_USE_PEP517=hatchling -inherit distutils-r1 pypi - -DESCRIPTION="Python implementation of Protocol Buffers data types with dataclasses support" -HOMEPAGE=" - https://github.com/eigenein/protobuf - https://pypi.org/project/pure-protobuf/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -# ModuleNotFoundError -RESTRICT="test" - -BDEPEND="dev-python/hatch-vcs[${PYTHON_USEDEP}]" - -distutils_enable_tests pytest - -export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} diff --git a/dev-python/pure-protobuf/pure-protobuf-2.3.0.ebuild b/dev-python/pure-protobuf/pure-protobuf-2.3.0.ebuild index 3af96eae4db3..b3cf425f718a 100644 --- a/dev-python/pure-protobuf/pure-protobuf-2.3.0.ebuild +++ b/dev-python/pure-protobuf/pure-protobuf-2.3.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/pymeeus/Manifest b/dev-python/pymeeus/Manifest index 10f81071e2ee..bcec1ec7bb94 100644 --- a/dev-python/pymeeus/Manifest +++ b/dev-python/pymeeus/Manifest @@ -1,2 +1 @@ -DIST PyMeeus-0.5.11.tar.gz 5368346 BLAKE2B d1bde9d62bd3349533b086ecbf5f6c455caf333cbdb0f32d11cac450db07708e442bc44cb085ec5140231158b95068e688e9c8abfcc62ba0e52e1cdd2de294b8 SHA512 9c109a7ed0ff3635e8b1eb4ee444bc5086528169fc942719385b02c5d5eca1f1ec3d3988bb06140e94f3d4ab741473880d8a36e187c468b9b91a3254575b92e6 DIST PyMeeus-0.5.12.tar.gz 5752712 BLAKE2B f7c80c79d72c071a57a19373ce818892f2e56e5339c4b8f2e2e2ff32e7363d8607046962f4289b7802a3219d03fafbd6ad233a271dba1f0d46ee29052d0125c1 SHA512 33f68f352cb6737aeec9782727c5ded921cf6f5561cfd7ecb237f7cf4b431e1010f7dff49d779ea368c8298a3012da84f6fa3afc7efc08579b798bb17558c423 diff --git a/dev-python/pymeeus/pymeeus-0.5.11.ebuild b/dev-python/pymeeus/pymeeus-0.5.11.ebuild deleted file mode 100644 index 19d1c4ea39e2..000000000000 --- a/dev-python/pymeeus/pymeeus-0.5.11.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11,12} pypy3 ) -DISTUTILS_USE_PEP517=setuptools -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 -" - -LICENSE="LGPL-3" -SLOT="0" -KEYWORDS="~amd64" - -distutils_enable_tests pytest - -distutils_enable_sphinx docs/source \ - dev-python/sphinx-rtd-theme diff --git a/dev-python/pymeeus/pymeeus-0.5.12.ebuild b/dev-python/pymeeus/pymeeus-0.5.12.ebuild index 5e821a3f5ad6..9cd2c01f7bb3 100644 --- a/dev-python/pymeeus/pymeeus-0.5.12.ebuild +++ b/dev-python/pymeeus/pymeeus-0.5.12.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 diff --git a/dev-python/pytest-cases/Manifest b/dev-python/pytest-cases/Manifest index 570ddba2bf9f..60bc27957113 100644 --- a/dev-python/pytest-cases/Manifest +++ b/dev-python/pytest-cases/Manifest @@ -1,2 +1 @@ -DIST pytest-cases-3.6.13.tar.gz 1082993 BLAKE2B c5259d78ce11dbeff2acca63762360622758edc19b8982f4cbade44459ae347c0c5b4334d9fcf42cf587ef301a193b9ab4c3a496462c403550580549c9be869b SHA512 70bb05afce137cc456dc98fd62d5fa778ce8728c7ffb30a05b765b88a689ce2ff01005f594c5be90e4892debbe925b2c05961d9e4bc567610da1be5b01f5a659 -DIST pytest-cases-3.6.14.tar.gz 1083239 BLAKE2B be32c3762f0baf74149276553e07817b75f7eb722ff54bfa46eb8756183fea1ac30089735cb4db7c45406d2c2477c7f95a80779aee388561bac55ac8c5cd84d2 SHA512 a621f55836cae197e3fd1f3460c56d6c1f813e3d0e42e8b193f6cb8c88496a3be18643b1df51cc499f15e09e25cebb8ed3f0e593779ea6d8a4c03a2bd92f6f30 +DIST pytest-cases-3.8.2.tar.gz 1094993 BLAKE2B 2a5b1dd57dca9b159756287b8bd4d2a54fa1f48e2256959343bb196867ab57ff6852826744f166ac39dbb0f06bcce4918a718a1097d5d2e3841b0a516838bf40 SHA512 5da2b8db56e91d3f0948b90b9225d21fad5c4cf2c319388844aca9b74b69ec9c91f7a661e28cc06b9ab8a85a11272fc4d5fc81d0d9d4b0abff80fb83d34744ad diff --git a/dev-python/pytest-cases/pytest-cases-3.6.13.ebuild b/dev-python/pytest-cases/pytest-cases-3.6.13.ebuild deleted file mode 100644 index 94cae4587980..000000000000 --- a/dev-python/pytest-cases/pytest-cases-3.6.13.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -DISTUTILS_USE_PEP517=setuptools -PYPI_NO_NORMALIZE=1 - -DOCS_BUILDER="mkdocs" -DOCS_DEPEND="dev-python/mkdocs-material" - -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" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - dev-python/decopatch[${PYTHON_USEDEP}] - >=dev-python/makefun-1.9.5[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/setuptools-scm[${PYTHON_USEDEP}] - test? ( - dev-python/pytest-asyncio[${PYTHON_USEDEP}] - dev-python/pytest-harvest[${PYTHON_USEDEP}] - dev-python/pytest-steps[${PYTHON_USEDEP}] - ) -" - -EPYTEST_DESELECT=( - tests/pytest_extension/doc/test_doc_fixture_graph_union.py::test_closure - tests/pytest_extension/fixtures/fixture_unions/test_fixture_closure_edits.py::test_super_closure_edits2 - tests/pytest_extension/fixtures/fixture_unions/test_fixtures_union_2hard.py::test_super_closure -) - -distutils_enable_tests pytest - -python_prepare_all() { - sed "/pytest-runner/d" -i setup.cfg || die - distutils-r1_python_prepare_all -} - -python_compile_all() { - docs_compile -} diff --git a/dev-python/pytest-cases/pytest-cases-3.6.14.ebuild b/dev-python/pytest-cases/pytest-cases-3.8.2.ebuild index ce9684a8283d..b47a8386a477 100644 --- a/dev-python/pytest-cases/pytest-cases-3.6.14.ebuild +++ b/dev-python/pytest-cases/pytest-cases-3.8.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -27,7 +27,8 @@ KEYWORDS="~amd64" RDEPEND=" dev-python/decopatch[${PYTHON_USEDEP}] - >=dev-python/makefun-1.9.5[${PYTHON_USEDEP}] + >=dev-python/makefun-1.15.1[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] " BDEPEND=" @@ -39,19 +40,8 @@ BDEPEND=" ) " -EPYTEST_DESELECT=( - tests/pytest_extension/doc/test_doc_fixture_graph_union.py::test_closure - tests/pytest_extension/fixtures/fixture_unions/test_fixture_closure_edits.py::test_super_closure_edits2 - tests/pytest_extension/fixtures/fixture_unions/test_fixtures_union_2hard.py::test_super_closure -) - distutils_enable_tests pytest -python_prepare_all() { - sed "/pytest-runner/d" -i setup.cfg || die - distutils-r1_python_prepare_all -} - python_compile_all() { docs_compile } diff --git a/dev-python/pytest-harvest/files/pytest-harvest-1.10.4-strict-mkdocs.patch b/dev-python/pytest-harvest/files/pytest-harvest-1.10.4-strict-mkdocs.patch new file mode 100644 index 000000000000..eb63fdfa01a7 --- /dev/null +++ b/dev-python/pytest-harvest/files/pytest-harvest-1.10.4-strict-mkdocs.patch @@ -0,0 +1,20 @@ +https://www.mkdocs.org/about/release-notes/#stricter-directory-validation + +diff --git a/docs/mkdocs.yml b/mkdocs.yml +similarity index 95% +rename from docs/mkdocs.yml +rename to mkdocs.yml +index 7819dac..4a6d73e 100644 +--- a/docs/mkdocs.yml ++++ b/mkdocs.yml +@@ -1,8 +1,8 @@ + site_name: pytest_harvest + # site_description: 'A short description of my project' + repo_url: https://github.com/smarie/python-pytest-harvest +-docs_dir: . +-site_dir: ../site ++docs_dir: ./docs ++site_dir: ./site + nav: + - Home: index.md + - API reference: api_reference.md diff --git a/dev-python/pytest-harvest/pytest-harvest-1.10.4.ebuild b/dev-python/pytest-harvest/pytest-harvest-1.10.4.ebuild index 67e501cc0a8c..0857022cc766 100644 --- a/dev-python/pytest-harvest/pytest-harvest-1.10.4.ebuild +++ b/dev-python/pytest-harvest/pytest-harvest-1.10.4.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -9,7 +9,6 @@ PYPI_NO_NORMALIZE=1 DOCS_BUILDER="mkdocs" DOCS_DEPEND="dev-python/mkdocs-material" -DOCS_DIR="docs" inherit distutils-r1 docs pypi @@ -35,6 +34,8 @@ BDEPEND=" ) " +PATCHES=( "${FILESDIR}/${P}-strict-mkdocs.patch" ) + EPYTEST_DESELECT=( "pytest_harvest/tests/test_all_raw_with_meta_check.py::test_run_all_tests[test_get_session_results.py]" "pytest_harvest/tests/test_all_raw_with_meta_check.py::test_run_all_tests[test_get_session_results_indirect_and_noparam.py]" diff --git a/dev-python/pytest-steps/files/pytest-steps-1.8.0-strict-mkdocs.patch b/dev-python/pytest-steps/files/pytest-steps-1.8.0-strict-mkdocs.patch new file mode 100644 index 000000000000..b9b833a46a3d --- /dev/null +++ b/dev-python/pytest-steps/files/pytest-steps-1.8.0-strict-mkdocs.patch @@ -0,0 +1,20 @@ +https://www.mkdocs.org/about/release-notes/#stricter-directory-validation + +diff --git a/docs/mkdocs.yml b/mkdocs.yml +similarity index 95% +rename from docs/mkdocs.yml +rename to mkdocs.yml +index 8359d3f..b4c34c4 100644 +--- a/docs/mkdocs.yml ++++ b/mkdocs.yml +@@ -1,8 +1,8 @@ + site_name: pytest_steps + # site_description: 'A short description of my project' + repo_url: https://github.com/smarie/python-pytest-steps +-docs_dir: . +-site_dir: ../site ++docs_dir: ./docs ++site_dir: ./site + nav: + - Home: index.md + - API reference: api_reference.md diff --git a/dev-python/pytest-steps/pytest-steps-1.8.0.ebuild b/dev-python/pytest-steps/pytest-steps-1.8.0.ebuild index feff1535085e..a37a853a7f85 100644 --- a/dev-python/pytest-steps/pytest-steps-1.8.0.ebuild +++ b/dev-python/pytest-steps/pytest-steps-1.8.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -9,7 +9,6 @@ PYPI_NO_NORMALIZE=1 DOCS_BUILDER="mkdocs" DOCS_DEPEND="dev-python/mkdocs-material" -DOCS_DIR="docs" inherit distutils-r1 docs pypi @@ -35,6 +34,8 @@ BDEPEND=" ) " +PATCHES=( "${FILESDIR}/${P}-strict-mkdocs.patch" ) + EPYTEST_DESELECT=( # tests fail with recent Pandas pytest_steps/tests/test_docs_example_with_harvest.py::test_synthesis_df diff --git a/dev-python/pyu2f/Manifest b/dev-python/pyu2f/Manifest index ad1233361036..1d88c564bc49 100644 --- a/dev-python/pyu2f/Manifest +++ b/dev-python/pyu2f/Manifest @@ -1 +1 @@ -DIST pyu2f-0.1.5.tar.gz 39008 BLAKE2B 475a47ad99bfbe8f85ebe246eb7c394d0855732fc6bf0dd887bb32ad02bacb1f34dadc5506d330add64bca5b353824e773d2b1e971e78d9cf9dc2438d12b4f62 SHA512 ddb15bb1d917117a2b19ad169ac0f8b8c7667d7ef8ee4c266cc30326429bb3627d41d84dc390ce0036d0b0f110e1d2da47d06d4e4d03a8be98cedb5ea3112246 +DIST pyu2f-0.1.5.gh.tar.gz 39008 BLAKE2B 475a47ad99bfbe8f85ebe246eb7c394d0855732fc6bf0dd887bb32ad02bacb1f34dadc5506d330add64bca5b353824e773d2b1e971e78d9cf9dc2438d12b4f62 SHA512 ddb15bb1d917117a2b19ad169ac0f8b8c7667d7ef8ee4c266cc30326429bb3627d41d84dc390ce0036d0b0f110e1d2da47d06d4e4d03a8be98cedb5ea3112246 diff --git a/dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild b/dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild index 7c956448e91c..ba9668a4e83d 100644 --- a/dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild +++ b/dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -9,8 +9,14 @@ PYTHON_COMPAT=( python3_{8,9,10,11,12} ) inherit distutils-r1 DESCRIPTION="Python based U2F host library" -HOMEPAGE="https://github.com/google/pyu2f" -SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE=" + https://github.com/google/pyu2f/ + https://pypi.org/project/pyu2f/ +" +SRC_URI=" + https://github.com/google/pyu2f/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="Apache-2.0" SLOT="0" @@ -39,5 +45,9 @@ python_prepare_all() { -e "s:RemoveObject:remove_object:" \ -e "s:SetContents:set_contents:" \ -i pyu2f/tests/hid/linux_test.py || die + find pyu2f/tests -name '*.py' -exec \ + sed -e 's:assertEquals:assertEqual:' \ + -e 's:assertRaisesRegexp:assertRaisesRegex:' \ + -i {} + || die distutils-r1_python_prepare_all } diff --git a/dev-python/sarif-om/sarif-om-1.0.4-r1.ebuild b/dev-python/sarif-om/sarif-om-1.0.4-r1.ebuild index 6d6b1e9bc071..72a3c8c1103f 100644 --- a/dev-python/sarif-om/sarif-om-1.0.4-r1.ebuild +++ b/dev-python/sarif-om/sarif-om-1.0.4-r1.ebuild @@ -1,16 +1,18 @@ -# Copyright 2021-2023 Gentoo Authors +# Copyright 2021-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{8,9,10,11,12} ) DISTUTILS_USE_PEP517=setuptools + inherit distutils-r1 pypi DESCRIPTION="Classes implementing the SARIF 2.1.0 object model" HOMEPAGE=" https://pypi.org/project/sarif-om/ - https://github.com/microsoft/sarif-python-om/" + https://github.com/microsoft/sarif-python-om/ +" LICENSE="MIT" SLOT="0" @@ -18,6 +20,8 @@ KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86" RDEPEND=" dev-python/attrs[${PYTHON_USEDEP}] - dev-python/pbr[${PYTHON_USEDEP}]" + dev-python/pbr[${PYTHON_USEDEP}] +" BDEPEND=" - dev-python/pbr[${PYTHON_USEDEP}]" + dev-python/pbr[${PYTHON_USEDEP}] +" diff --git a/dev-python/sphinx-autodoc-typehints/Manifest b/dev-python/sphinx-autodoc-typehints/Manifest index 9dd3e18cdb9c..96f1fac04a9e 100644 --- a/dev-python/sphinx-autodoc-typehints/Manifest +++ b/dev-python/sphinx-autodoc-typehints/Manifest @@ -1 +1,2 @@ DIST sphinx_autodoc_typehints-1.25.2.tar.gz 37173 BLAKE2B cec43a8008e84cbc0cc8f1950d8c8b3aceec139f2c9b8de310620fbd7deab021ebc51caa0ec80421d821287c8f9c304102141eda9e1123496d710ce3d87590a7 SHA512 42d14b17e05c46d65fb363f6b640515e1847d1d1b13b9d4707c0e64002e01d974a4c8d06d90f938a149704641926b08755a8c9c1f84883b5841192c7330660a3 +DIST sphinx_autodoc_typehints-1.25.3.tar.gz 37709 BLAKE2B 338a0479af929977af7d3d3b9797e2806f8606c85cf1db182f87cf6d25adafeaf8c4941bc1770f9c55a54227e1132fd424ed80f5efc654f34c7e4b61724ef553 SHA512 e00ed10267605d8d96b159788297ec565f9dc46b2a446136067e1c5d0fed0d276245c052e3121e79fdf3a0aff81e91769728bb829ce07b252d7284af3378fe69 diff --git a/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-1.25.3.ebuild b/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-1.25.3.ebuild new file mode 100644 index 000000000000..af421076902d --- /dev/null +++ b/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-1.25.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Type hints support for the Sphinx autodoc extension" +HOMEPAGE=" + https://github.com/tox-dev/sphinx-autodoc-typehints/ + https://pypi.org/project/sphinx-autodoc-typehints/ +" + +LICENSE="MIT" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +SLOT="0" + +RDEPEND=" + >=dev-python/sphinx-7.1.2[${PYTHON_USEDEP}] +" +# skipping optional test dep on dev-python/nptyping as that package +# is horribly broken and on its way out +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + >=dev-python/sphobjinv-2.3.1[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.5[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # this package is addicted to Internet + tests/test_sphinx_autodoc_typehints.py::test_format_annotation +) |
