diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-10-29 18:39:47 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-10-29 18:39:47 +0000 |
| commit | 7fda284960fcfca5f80f2dc5ed222926bbc3f76d (patch) | |
| tree | 17998a79a1a24b6a90a856270b98d1db7f3e3fe8 /dev-python | |
| parent | 0af643c74ae7d041ea5e2e66dddc9c69a516e733 (diff) | |
| download | baldeagleos-repo-7fda284960fcfca5f80f2dc5ed222926bbc3f76d.tar.gz baldeagleos-repo-7fda284960fcfca5f80f2dc5ed222926bbc3f76d.tar.xz baldeagleos-repo-7fda284960fcfca5f80f2dc5ed222926bbc3f76d.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
28 files changed, 324 insertions, 584 deletions
diff --git a/dev-python/APScheduler/APScheduler-3.10.1.ebuild b/dev-python/APScheduler/APScheduler-3.10.1.ebuild deleted file mode 100644 index 397e94350032..000000000000 --- a/dev-python/APScheduler/APScheduler-3.10.1.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# 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_{8,9,10,11,12} ) - -inherit distutils-r1 pypi - -DESCRIPTION="In-process task scheduler with Cron-like capabilities" -HOMEPAGE=" - https://github.com/agronholm/apscheduler/ - https://pypi.org/project/APScheduler/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -# imports pkg_resources -RDEPEND=" - dev-python/pytz[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] - >=dev-python/six-1.4.0[${PYTHON_USEDEP}] - >=dev-python/tzlocal-4[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/setuptools-scm[${PYTHON_USEDEP}] - test? ( - >=dev-python/sqlalchemy-1.4[${PYTHON_USEDEP}] - dev-python/pytest-asyncio[${PYTHON_USEDEP}] - dev-python/pytest-tornado[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -PATCHES=( - # disable test fixtures using external servers (mongodb, redis...) - # these fixtures are using markers in git master, so the patch - # should be no longer necessary with next major bump - "${FILESDIR}"/APScheduler-3.8.1-external-server-tests.patch -) - -EPYTEST_DESELECT=( - tests/test_jobstores.py::test_repr_mongodbjobstore - tests/test_jobstores.py::test_repr_redisjobstore - tests/test_jobstores.py::test_repr_zookeeperjobstore -) - -python_prepare_all() { - # suppress setuptools warning #797751 - sed -e 's|^upload-dir|upload_dir|' -i setup.cfg || die - sed -e '/addopts/d' -i setup.cfg || die - - distutils-r1_python_prepare_all -} - -python_test() { - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -p asyncio -p tornado -} diff --git a/dev-python/APScheduler/APScheduler-3.10.2.ebuild b/dev-python/APScheduler/APScheduler-3.10.2.ebuild deleted file mode 100644 index 5b66f0fdaa11..000000000000 --- a/dev-python/APScheduler/APScheduler-3.10.2.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# 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_{8,9,10,11,12} ) - -inherit distutils-r1 pypi - -DESCRIPTION="In-process task scheduler with Cron-like capabilities" -HOMEPAGE=" - https://github.com/agronholm/apscheduler/ - https://pypi.org/project/APScheduler/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - dev-python/pytz[${PYTHON_USEDEP}] - >=dev-python/six-1.4.0[${PYTHON_USEDEP}] - >=dev-python/tzlocal-4[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/setuptools-scm[${PYTHON_USEDEP}] - test? ( - >=dev-python/sqlalchemy-1.4[${PYTHON_USEDEP}] - dev-python/pytest-asyncio[${PYTHON_USEDEP}] - dev-python/pytest-tornado[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -PATCHES=( - # disable test fixtures using external servers (mongodb, redis...) - # these fixtures are using markers in git master, so the patch - # should be no longer necessary with next major bump - "${FILESDIR}"/APScheduler-3.8.1-external-server-tests.patch -) - -EPYTEST_DESELECT=( - tests/test_jobstores.py::test_repr_mongodbjobstore - tests/test_jobstores.py::test_repr_redisjobstore - tests/test_jobstores.py::test_repr_zookeeperjobstore - tests/test_executors.py::test_broken_pool -) - -python_prepare_all() { - # suppress setuptools warning #797751 - sed -e 's|^upload-dir|upload_dir|' -i setup.cfg || die - sed -e '/addopts/d' -i setup.cfg || die - - distutils-r1_python_prepare_all -} - -python_test() { - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -p asyncio -p tornado -} diff --git a/dev-python/APScheduler/APScheduler-3.10.3.ebuild b/dev-python/APScheduler/APScheduler-3.10.3.ebuild deleted file mode 100644 index 5b66f0fdaa11..000000000000 --- a/dev-python/APScheduler/APScheduler-3.10.3.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# 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_{8,9,10,11,12} ) - -inherit distutils-r1 pypi - -DESCRIPTION="In-process task scheduler with Cron-like capabilities" -HOMEPAGE=" - https://github.com/agronholm/apscheduler/ - https://pypi.org/project/APScheduler/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - dev-python/pytz[${PYTHON_USEDEP}] - >=dev-python/six-1.4.0[${PYTHON_USEDEP}] - >=dev-python/tzlocal-4[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/setuptools-scm[${PYTHON_USEDEP}] - test? ( - >=dev-python/sqlalchemy-1.4[${PYTHON_USEDEP}] - dev-python/pytest-asyncio[${PYTHON_USEDEP}] - dev-python/pytest-tornado[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -PATCHES=( - # disable test fixtures using external servers (mongodb, redis...) - # these fixtures are using markers in git master, so the patch - # should be no longer necessary with next major bump - "${FILESDIR}"/APScheduler-3.8.1-external-server-tests.patch -) - -EPYTEST_DESELECT=( - tests/test_jobstores.py::test_repr_mongodbjobstore - tests/test_jobstores.py::test_repr_redisjobstore - tests/test_jobstores.py::test_repr_zookeeperjobstore - tests/test_executors.py::test_broken_pool -) - -python_prepare_all() { - # suppress setuptools warning #797751 - sed -e 's|^upload-dir|upload_dir|' -i setup.cfg || die - sed -e '/addopts/d' -i setup.cfg || die - - distutils-r1_python_prepare_all -} - -python_test() { - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -p asyncio -p tornado -} diff --git a/dev-python/APScheduler/Manifest b/dev-python/APScheduler/Manifest index c5270f699cd5..c2baeb97bb07 100644 --- a/dev-python/APScheduler/Manifest +++ b/dev-python/APScheduler/Manifest @@ -1,4 +1 @@ -DIST APScheduler-3.10.1.tar.gz 100376 BLAKE2B 6b5aed1197ec6cdcf2c82d73c2809d9fd304401ad5ac482cdd0dfc310356248b9ba5f0cf611f5484f4098c92d7b6f8b81f117fe5fd645b5d20ba0fbb7f1d6c97 SHA512 bba68c97d2e7cda6503a8471a61bf57c11b9c8b6dde4d1da65f7d134bf72f631b3f70815ac7db3f75313833c780ee6ded0b8d0e1c9a86e05e741788bcd041008 -DIST APScheduler-3.10.2.tar.gz 100853 BLAKE2B 540517028af71f8325c74d9fc87c44aeb20440be5a670aaa488069090acec5d19c950ab2df67e55e83b52140343e384a1214d7c7390ce50d3d5fca99bac492c8 SHA512 42a1c7df47ab41c06f87e9d0828950c78abe50e1f6648d5eda425db74edf1d07473129d1a1b9a4a82c32dfadacba9b3dca2e5b2772ba733007c502b31c34d43d -DIST APScheduler-3.10.3.tar.gz 100837 BLAKE2B 62bd62937bf8a73e082812df6436200a8ea7352dda960d946cc3ef1257f75a63e211a252554e0aba2098289e2d50b7b32e91ab95cbe94ba53f899f11e041c9b2 SHA512 b061678cadff769e1908dea00e9687abec7f8d92ed9a0201fc630c569160a0cc19c7b880842625660e368f486f4c288e2dc005518d1b92eb674f8c06920e32c7 DIST APScheduler-3.10.4.tar.gz 100832 BLAKE2B d519a85c54951e4b5a09449f1ceda1afe8ff0120c4a7cfab4f72fb9dacc41ac73bb66bedd6615cf126f53b590eb02617ac739bac078f21dd503c2e081a057cec SHA512 44b78e60b7349437fb8d6e5ad3bbd764cfa653fdd65685b586119225e8daaff9b150871887812a1f3d4cd67b942c70e99d1606d38b83685953fb1bb1a82742fe diff --git a/dev-python/agate-sql/Manifest b/dev-python/agate-sql/Manifest index d233c4f4dcae..099decd5f2cd 100644 --- a/dev-python/agate-sql/Manifest +++ b/dev-python/agate-sql/Manifest @@ -1,3 +1 @@ -DIST agate-sql-0.5.9.tar.gz 15434 BLAKE2B 4825bfc5d0f78e0cd1bf318fe8797bfe03deaff1ffc962e0f082128af9d05afad97b7488d66b76d59411eb5dd889229be1fe05cf5bf55db4084f3451b21440b2 SHA512 482f257bb16e142d9380b9ae7590f50909639729e229271843686d6316ebfba0e77daac47e809b7aad4ef89d6c3810382d0b6817a418406bf73f13e266e5bcca -DIST agate-sql-0.6.0.tar.gz 13942 BLAKE2B c7940274a8625585fa92c81fdd1d2e2f53e76db3b14620e406df7609057482f8641cfcf20a486bf6f8db381362ee367b4dad9b6a7f04909f5cba4c491d01fde9 SHA512 74e90dad3776f817e92ded312cdf87c78754e9a3b5611a681a4a85d7a8357577a9e4dbb70b453c589417990f3f0a04195a8b0076fd03a1e2012b82893208b824 DIST agate-sql-0.7.0.tar.gz 13488 BLAKE2B 1064747f1f2a11f788c0828123ae3532ffd0aa6b32aa423b877e350e35e4231c21e73226920110ad9369b0b583167e47357acf456607e75e0ad9d5027e265c9c SHA512 6a29bcb19cac6e80a6df8ad51c06838fa4c48a1e5b207a55f7ebaf3b7af1afd56fad61c560f4c7a11da24e9460ab0a8ea6d9459309e05ac162f3ddd3737bb868 diff --git a/dev-python/agate-sql/agate-sql-0.5.9-r1.ebuild b/dev-python/agate-sql/agate-sql-0.5.9-r1.ebuild deleted file mode 100644 index 3a1b41872149..000000000000 --- a/dev-python/agate-sql/agate-sql-0.5.9-r1.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2021-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_{8,9,10,11,12} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Adds SQL read/write support to agate" -HOMEPAGE=" - https://github.com/wireservice/agate-sql/ - https://pypi.org/project/agate-sql/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm64-macos ~x64-macos" - -RDEPEND=" - >=dev-python/agate-1.5.0[${PYTHON_USEDEP}] - >=dev-python/sqlalchemy-1.4[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/greenlet[${PYTHON_USEDEP}] - dev-python/lxml[${PYTHON_USEDEP}] - ) -" - -PATCHES=("${FILESDIR}/agate-sql-0.5.9-sqlalchemy.patch") - -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # requires crate - tests/test_agatesql.py::TestSQL::test_to_sql_create_statement_with_dialects -) diff --git a/dev-python/agate-sql/agate-sql-0.5.9.ebuild b/dev-python/agate-sql/agate-sql-0.5.9.ebuild deleted file mode 100644 index ded451ba3586..000000000000 --- a/dev-python/agate-sql/agate-sql-0.5.9.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2021-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_{8,9,10,11,12} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Adds SQL read/write support to agate" -HOMEPAGE=" - https://github.com/wireservice/agate-sql/ - https://pypi.org/project/agate-sql/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm64-macos ~x64-macos" - -RDEPEND=" - >=dev-python/agate-1.5.0[${PYTHON_USEDEP}] - <dev-python/sqlalchemy-2[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/greenlet[${PYTHON_USEDEP}] - dev-python/lxml[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # requires crate - tests/test_agatesql.py::TestSQL::test_to_sql_create_statement_with_dialects -) diff --git a/dev-python/agate-sql/agate-sql-0.6.0.ebuild b/dev-python/agate-sql/agate-sql-0.6.0.ebuild deleted file mode 100644 index 774384365c87..000000000000 --- a/dev-python/agate-sql/agate-sql-0.6.0.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2021-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_{8,9,10,11,12} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Adds SQL read/write support to agate" -HOMEPAGE=" - https://github.com/wireservice/agate-sql/ - https://pypi.org/project/agate-sql/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm64-macos ~x64-macos" - -RDEPEND=" - >=dev-python/agate-1.5.0[${PYTHON_USEDEP}] - >=dev-python/sqlalchemy-1.4[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/greenlet[${PYTHON_USEDEP}] - dev-python/lxml[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # requires crate - tests/test_agatesql.py::TestSQL::test_to_sql_create_statement_with_dialects -) diff --git a/dev-python/agate-sql/files/agate-sql-0.5.9-sqlalchemy.patch b/dev-python/agate-sql/files/agate-sql-0.5.9-sqlalchemy.patch deleted file mode 100644 index 46a12ab68c9e..000000000000 --- a/dev-python/agate-sql/files/agate-sql-0.5.9-sqlalchemy.patch +++ /dev/null @@ -1,75 +0,0 @@ -From 90d5b8e220db51465e4dbac8df6e4bd4941c9ba6 Mon Sep 17 00:00:00 2001 -From: Steve Kowalik <steven@wedontsleep.org> -Date: Tue, 26 Sep 2023 11:59:39 +1000 -Subject: [PATCH] Migrate to SQLAlchemy 2 - -https://github.com/wireservice/agate-sql/pull/40 - -Remove the upper bound on SQLAlchemy by converting the code idioms in -use to support both SQLAlchemy 1.4 and SQLAlchemy 2, and only setting a -lower bound SQLAlchemy of >= 1.4. - -Closes #39 - -diff --git a/agatesql/table.py b/agatesql/table.py -index b141937..e4efe91 100644 ---- a/agatesql/table.py -+++ b/agatesql/table.py -@@ -82,2 +82,2 @@ def from_sql(cls, connection_or_string, table_name): -- metadata = MetaData(connection) -- sql_table = Table(table_name, metadata, autoload=True, autoload_with=connection) -+ metadata = MetaData() -+ sql_table = Table(table_name, metadata, autoload_with=connection) -@@ -113 +113 @@ def from_sql(cls, connection_or_string, table_name): -- s = select([sql_table]) -+ s = select(sql_table) -@@ -182 +182 @@ def make_sql_table(table, table_name, dialect=None, db_schema=None, constraints= -- metadata = MetaData(connection) -+ metadata = MetaData() -@@ -276,2 +276,3 @@ def to_sql(self, connection_or_string, table_name, overwrite=False, -- if overwrite: -- sql_table.drop(checkfirst=True) -+ with connection.begin(): -+ if overwrite: -+ sql_table.drop(bind=connection, checkfirst=True) -@@ -279 +280 @@ def to_sql(self, connection_or_string, table_name, overwrite=False, -- sql_table.create(checkfirst=create_if_not_exists) -+ sql_table.create(bind=connection, checkfirst=create_if_not_exists) -@@ -282,13 +283,14 @@ def to_sql(self, connection_or_string, table_name, overwrite=False, -- insert = sql_table.insert() -- for prefix in prefixes: -- insert = insert.prefix_with(prefix) -- if chunk_size is None: -- connection.execute(insert, [dict(zip(self.column_names, row)) for row in self.rows]) -- else: -- number_of_rows = len(self.rows) -- for index in range((number_of_rows - 1) // chunk_size + 1): -- end_index = (index + 1) * chunk_size -- if end_index > number_of_rows: -- end_index = number_of_rows -- connection.execute(insert, [dict(zip(self.column_names, row)) for row in -- self.rows[index * chunk_size:end_index]]) -+ with connection.begin(): -+ insert = sql_table.insert() -+ for prefix in prefixes: -+ insert = insert.prefix_with(prefix) -+ if chunk_size is None: -+ connection.execute(insert, [dict(zip(self.column_names, row)) for row in self.rows]) -+ else: -+ number_of_rows = len(self.rows) -+ for index in range((number_of_rows - 1) // chunk_size + 1): -+ end_index = (index + 1) * chunk_size -+ if end_index > number_of_rows: -+ end_index = number_of_rows -+ connection.execute(insert, [dict(zip(self.column_names, row)) for row in -+ self.rows[index * chunk_size:end_index]]) -@@ -354 +356 @@ def sql_query(self, query, table_name='agate'): -- rows = connection.execute(q) -+ rows = connection.exec_driver_sql(q) -diff --git a/setup.py b/setup.py -index 3905203..7257399 100644 ---- a/setup.py -+++ b/setup.py -@@ -37 +37 @@ setup( -- 'sqlalchemy<2', -+ 'sqlalchemy>=1.4', diff --git a/dev-python/agate/Manifest b/dev-python/agate/Manifest index 5f6c407787c5..916ef4dc99e8 100644 --- a/dev-python/agate/Manifest +++ b/dev-python/agate/Manifest @@ -1,3 +1 @@ -DIST agate-1.7.1.tar.gz 202018 BLAKE2B 9df0f108f1ac47c1eb199015aedc903d72ce62a7d2c34198f0f287863527a2305c5682ef7dd385d130fd0eb3ce566e98978b9ef438858510e3aeae02a6345318 SHA512 e40df26f1e738b4c386f540d642f4fdb240dac5229032c6074977a67c7fdae7838c770703d93916e10741a9f2569ac9672165f8c8715b2567b2e5b926c7dabd5 -DIST agate-1.8.0.tar.gz 201730 BLAKE2B c0138f912d6981059b8cd62424bdb428c9b6bff566bc47466bea9f0fd78f100333583dddaf081ea2f9810e8a1e586d4697960141ea4e97e8cef4a5084f09ce78 SHA512 9870f31f87efcb057947cf0c93062c2dbfa2aa996d1e6d69c552935eca3ab5c047ea0cbdf2eaca8e37d2a0530d210318fd342324f1ce43d7cba9f6291206f6fb DIST agate-1.9.0.tar.gz 202237 BLAKE2B f4a6609f843b0b0499b44c6596c186198e2d6a0c964727fbd3d3fa69bd6164a067384354e3426a0276f91fc3b6f2d1fc86e05e4d4be974d1f2c223b20cb5a6b3 SHA512 bbd05b503d27e34625cebba71c0d3a1362bf63c45a3ce7c327fb73f0730b739fe8f9bf780c37c4e1a0e70c9d263d9191946fa6b70c147c0761a43ed479ae7fed diff --git a/dev-python/agate/agate-1.7.1.ebuild b/dev-python/agate/agate-1.7.1.ebuild deleted file mode 100644 index ea1f6a77f084..000000000000 --- a/dev-python/agate/agate-1.7.1.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 2021-2023 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 pypi - -DESCRIPTION="A Python data analysis library that is optimized for humans instead of machines" -HOMEPAGE=" - https://github.com/wireservice/agate/ - https://pypi.org/project/agate/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~riscv ~arm64-macos ~x64-macos" - -RDEPEND=" - >=dev-python/pytimeparse-1.1.5[${PYTHON_USEDEP}] - >=dev-python/parsedatetime-2.1[${PYTHON_USEDEP}] - >=dev-python/Babel-2.0[${PYTHON_USEDEP}] - >=dev-python/isodate-0.5.4[${PYTHON_USEDEP}] - >=dev-python/pyicu-2.4.2[${PYTHON_USEDEP}] - >=dev-python/python-slugify-1.2.1[${PYTHON_USEDEP}] - >=dev-python/leather-0.3.3-r2[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/lxml[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest -distutils_enable_sphinx docs \ - dev-python/sphinx-rtd-theme - -EPYTEST_DESELECT=( - # require specific locales - tests/test_data_types.py::TestDate::test_cast_format_locale - tests/test_data_types.py::TestDateTime::test_cast_format_locale -) diff --git a/dev-python/agate/agate-1.8.0.ebuild b/dev-python/agate/agate-1.8.0.ebuild deleted file mode 100644 index 1154da7588cc..000000000000 --- a/dev-python/agate/agate-1.8.0.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 2021-2023 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 pypi - -DESCRIPTION="A Python data analysis library that is optimized for humans instead of machines" -HOMEPAGE=" - https://github.com/wireservice/agate/ - https://pypi.org/project/agate/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~riscv ~arm64-macos ~x64-macos" - -RDEPEND=" - >=dev-python/pytimeparse-1.1.5[${PYTHON_USEDEP}] - >=dev-python/parsedatetime-2.1[${PYTHON_USEDEP}] - >=dev-python/Babel-2.0[${PYTHON_USEDEP}] - >=dev-python/isodate-0.5.4[${PYTHON_USEDEP}] - >=dev-python/pyicu-2.4.2[${PYTHON_USEDEP}] - >=dev-python/python-slugify-1.2.1[${PYTHON_USEDEP}] - >=dev-python/leather-0.3.3-r2[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/lxml[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest -distutils_enable_sphinx docs \ - dev-python/furo - -EPYTEST_DESELECT=( - # require specific locales - tests/test_data_types.py::TestDate::test_cast_format_locale - tests/test_data_types.py::TestDateTime::test_cast_format_locale -) diff --git a/dev-python/asn1crypto/Manifest b/dev-python/asn1crypto/Manifest index 2b13d8555fa4..54c7d47c3933 100644 --- a/dev-python/asn1crypto/Manifest +++ b/dev-python/asn1crypto/Manifest @@ -1 +1,2 @@ DIST asn1crypto-1.5.1.gh.tar.gz 686175 BLAKE2B 1e308ac17c36daaa9ca69fc48ccf0465e540b07d96c1a3e6977844994950e2c75061d7b88525b7e46b61e5c725ac4505ada8757d51ac67c72f11f86917fca54b SHA512 1bcb93d82a2602e3b5c66a180f5d16cd3a9731d86d89fbd44c1e23d735e708e9bf9bb6cbabc2a5d60619f51a7c38dfb1f7ed63820f422ccf42800a39f4637626 +DIST asn1crypto-8609892a88f571bc10110603c173832cd100cb44.gh.tar.gz 691008 BLAKE2B d80b51780cad441de5de4ae2e3bcbb53b2062b48ab793a544900f17b883dbbead8b3572f13b942d2def1d66c86dfcfe621f7f1937a863afaebc4974c287e175b SHA512 5d16350861a0ec2ab3fff5c64fe834fa5884c268ade053b6cfd75f4a63b5cffd9538c8824fe379f82c633390d7f622564d6cb5a7826df7eb07fc8adbe903a9c8 diff --git a/dev-python/asn1crypto/asn1crypto-1.5.1_p20231012.ebuild b/dev-python/asn1crypto/asn1crypto-1.5.1_p20231012.ebuild new file mode 100644 index 000000000000..a7cf02e6ac17 --- /dev/null +++ b/dev-python/asn1crypto/asn1crypto-1.5.1_p20231012.ebuild @@ -0,0 +1,29 @@ +# 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_{8,9,10,11,12} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +EGIT_COMMIT=8609892a88f571bc10110603c173832cd100cb44 +MY_P=${PN}-${EGIT_COMMIT} +DESCRIPTION="Python ASN.1 library with a focus on performance and a pythonic API" +HOMEPAGE=" + https://github.com/wbond/asn1crypto/ + https://pypi.org/project/asn1crypto/ +" +SRC_URI=" + https://github.com/wbond/asn1crypto/archive/${EGIT_COMMIT}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" + +distutils_enable_tests unittest diff --git a/dev-python/braintree/Manifest b/dev-python/braintree/Manifest index 2ca6d9a211fa..1d28a3a23c77 100644 --- a/dev-python/braintree/Manifest +++ b/dev-python/braintree/Manifest @@ -1,3 +1 @@ -DIST braintree_python-4.21.0.gh.tar.gz 220035 BLAKE2B e8eb8a51fe5b49675abaf20c0cb3cfefa9129609df70bbf2e74aa4f588ea48014278fe2bb1e76841dbcd19fbc87346bc0b4302910237d5cffd839369465f2597 SHA512 409d4d80059f1868b2aa80896b0a082493fe0e1d3c1f76145bf41a1f7c93dc4a3970eb90b9c599584a6a00f3d135f870115daff0fabe9f22dcd1a3c7a16371a5 -DIST braintree_python-4.22.0.gh.tar.gz 220540 BLAKE2B d39214fc06dd03fa6115fd99ba00caddd81b64f797fb335606a7c2bf067751771c62c296277ac38b330bf9c61ba5e6ba9134088586bbb520c8713f419ea89e6f SHA512 f4d67b109afd75271e6dd96fda30a7dd03966c083df90fd1c353f8a9d84e357f6054f9d3f1ca0de7b6183d36b7fe55daa26098a701d250c41d096c7c3fa543fb DIST braintree_python-4.23.0.gh.tar.gz 220576 BLAKE2B 23d158c0216a63ce7746a521c339663dc4f1fcc355f3cf65d526c19f7b6a29e49da6a8905059a1410bcf0390c7d44bc267963d68e44e5f4ddc0de57b2500c06f SHA512 e5be83985a6605e68317eafa7533e826d3965707e691791a045f1cbeddded718b21d62e5156c402142228742b13de9859e586b4236865ea675c5c57a3410ffb3 diff --git a/dev-python/braintree/braintree-4.21.0.ebuild b/dev-python/braintree/braintree-4.21.0.ebuild deleted file mode 100644 index aac92f8c4b43..000000000000 --- a/dev-python/braintree/braintree-4.21.0.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 2020-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 - -MY_P=braintree_python-${PV} -DESCRIPTION="Braintree Python Library" -HOMEPAGE=" - https://developer.paypal.com/braintree/docs/reference/overview/ - https://github.com/braintree/braintree_python/ - https://pypi.org/project/braintree/ -" -# no tests in sdist, as of 4.19.0 -SRC_URI=" - https://github.com/braintree/braintree_python/archive/${PV}.tar.gz - -> ${MY_P}.gh.tar.gz -" -S=${WORKDIR}/${MY_P} - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - >=dev-python/requests-0.11.1[${PYTHON_USEDEP}] -" - -DOCS=( README.md ) - -distutils_enable_tests unittest - -python_test() { - eunittest tests/unit -} diff --git a/dev-python/braintree/braintree-4.22.0.ebuild b/dev-python/braintree/braintree-4.22.0.ebuild deleted file mode 100644 index aac92f8c4b43..000000000000 --- a/dev-python/braintree/braintree-4.22.0.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 2020-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -inherit distutils-r1 - -MY_P=braintree_python-${PV} -DESCRIPTION="Braintree Python Library" -HOMEPAGE=" - https://developer.paypal.com/braintree/docs/reference/overview/ - https://github.com/braintree/braintree_python/ - https://pypi.org/project/braintree/ -" -# no tests in sdist, as of 4.19.0 -SRC_URI=" - https://github.com/braintree/braintree_python/archive/${PV}.tar.gz - -> ${MY_P}.gh.tar.gz -" -S=${WORKDIR}/${MY_P} - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - >=dev-python/requests-0.11.1[${PYTHON_USEDEP}] -" - -DOCS=( README.md ) - -distutils_enable_tests unittest - -python_test() { - eunittest tests/unit -} diff --git a/dev-python/braintree/braintree-4.23.0.ebuild b/dev-python/braintree/braintree-4.23.0.ebuild index aac92f8c4b43..5a833674a94b 100644 --- a/dev-python/braintree/braintree-4.23.0.ebuild +++ b/dev-python/braintree/braintree-4.23.0.ebuild @@ -34,6 +34,11 @@ DOCS=( README.md ) distutils_enable_tests unittest +PATCHES=( + # https://github.com/braintree/braintree_python/pull/154 + "${FILESDIR}/${P}-py312.patch" +) + python_test() { eunittest tests/unit } diff --git a/dev-python/braintree/files/braintree-4.23.0-py312.patch b/dev-python/braintree/files/braintree-4.23.0-py312.patch new file mode 100644 index 000000000000..4ecbd9e555dd --- /dev/null +++ b/dev-python/braintree/files/braintree-4.23.0-py312.patch @@ -0,0 +1,81 @@ +From 9fbdf874ef6a6874db5e98cb2c93ab9736810d4e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sun, 29 Oct 2023 11:18:56 +0100 +Subject: [PATCH] Fix test suite compatibility with Python 3.12 + +Replace the deprecated `unittest.TestCase.assertRaisesRegexp()` method +with `assertRaisesRegex()`. The former is no longer present in Python +3.12, while the latter is available since Python 3.2. + +Replace the deprecated `imp.reload()` function with +`importlib.reload()`. The former module is no longer present +in Python 3.12, while `importlib.reload()` is available since +Python 3.4. + +With these changes, unit tests pass with Python 3.12.0. + +Fixes #153 +--- + CHANGELOG.md | 3 +++ + tests/unit/test_client_token.py | 2 +- + tests/unit/test_configuration.py | 6 +++--- + 3 files changed, 7 insertions(+), 4 deletions(-) + +diff --git a/CHANGELOG.md b/CHANGELOG.md +index 56e4373..792ee9c 100644 +--- a/CHANGELOG.md ++++ b/CHANGELOG.md +@@ -1,5 +1,8 @@ + # Changelog + ++## 4.24.0 ++* Fix unittest compatibility with Python 3.12 ++ + ## 4.23.0 + * Deprecate `evidenceSubmittable` in Dispute + * Add missing `escape` calls in `generator` for: +diff --git a/tests/unit/test_client_token.py b/tests/unit/test_client_token.py +index 7216a6b..74eb8a2 100644 +--- a/tests/unit/test_client_token.py ++++ b/tests/unit/test_client_token.py +@@ -3,7 +3,7 @@ from tests.test_helper import * + class TestClientToken(unittest.TestCase): + def test_credit_card_options_require_customer_id(self): + for option in ["verify_card", "make_default", "fail_on_duplicate_payment_method"]: +- with self.assertRaisesRegexp(InvalidSignatureError, option): ++ with self.assertRaisesRegex(InvalidSignatureError, option): + ClientToken.generate({ + "options": {option: True} + }) +diff --git a/tests/unit/test_configuration.py b/tests/unit/test_configuration.py +index cf82831..5b24540 100644 +--- a/tests/unit/test_configuration.py ++++ b/tests/unit/test_configuration.py +@@ -1,13 +1,13 @@ + from tests.test_helper import * + import braintree + import os +-import imp ++import importlib + + class TestConfiguration(unittest.TestCase): + def test_works_with_unconfigured_configuration(self): + try: + # reset class level attributes on Configuration set in test helper +- imp.reload(braintree.configuration) ++ importlib.reload(braintree.configuration) + config = Configuration( + environment=braintree.Environment.Sandbox, + merchant_id='my_merchant_id', +@@ -21,7 +21,7 @@ class TestConfiguration(unittest.TestCase): + finally: + # repopulate class level attributes on Configuration + import tests.test_helper +- imp.reload(tests.test_helper) ++ importlib.reload(tests.test_helper) + + def test_base_merchant_path_for_development(self): + self.assertEqual("/merchants/integration_merchant_id", Configuration.instantiate().base_merchant_path()) +-- +2.42.0 + diff --git a/dev-python/confusable_homoglyphs/Manifest b/dev-python/confusable_homoglyphs/Manifest index 5d11c1714abd..e971c47f18f5 100644 --- a/dev-python/confusable_homoglyphs/Manifest +++ b/dev-python/confusable_homoglyphs/Manifest @@ -1 +1 @@ -DIST confusable_homoglyphs-3.2.0.gh.tar.gz 338272 BLAKE2B b4697ad3997ecb2784653a47779ead7ded0e9af46125bc5868954cc8cf5064377a553c9b388be6a42634fa27880ef2fa57224e4b4bf9e357b3a9ff32a5db4993 SHA512 6e51cc4ec9a70246f4a871b8303834d0189d9d5056823b2f576e198cc3ced7154a0d57e945f3814bfa37da6015808bc1d6cdf44cfa17d637ded83ead8a6e4f5c +DIST confusable_homoglyphs-3.2.0.tar.gz 161937 BLAKE2B ac2c66317b18dd73868b3cbe3b11162550597547da8ee3df5525362b79bd7f61a19bd7446839dfb477d5c2b27464fc88a120c5c6d496de8b86c9e88aabd8aeb0 SHA512 0a46a5bc94393592f6fa088bbe2f95cc301972c55de08231f3607828fcd3c5cb462514b80013283ef8cd8d76eaa3e14258ac8f3433c9c2cd1a89bcebca8fa7f6 diff --git a/dev-python/confusable_homoglyphs/confusable_homoglyphs-3.2.0-r2.ebuild b/dev-python/confusable_homoglyphs/confusable_homoglyphs-3.2.0-r2.ebuild index f2a4c64abb3c..17932e41491e 100644 --- a/dev-python/confusable_homoglyphs/confusable_homoglyphs-3.2.0-r2.ebuild +++ b/dev-python/confusable_homoglyphs/confusable_homoglyphs-3.2.0-r2.ebuild @@ -5,32 +5,30 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -inherit distutils-r1 -CommitId=14f43ddd74099520ddcda29fac557c27a28190e6 +inherit distutils-r1 pypi DESCRIPTION="Detect confusable usage of unicode homoglyphs, prevent homograph attacks" HOMEPAGE=" https://github.com/vhf/confusable_homoglyphs/ https://pypi.org/project/confusable_homoglyphs/ " -SRC_URI="https://github.com/vhf/${PN}/archive/${CommitId}.tar.gz - -> ${P}.gh.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -RDEPEND="dev-python/click[${PYTHON_USEDEP}]" - -S="${WORKDIR}"/${PN}-${CommitId} +RDEPEND=" + dev-python/click[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/versioneer[${PYTHON_USEDEP}] +" distutils_enable_tests pytest -python_prepare_all() { - sed -i \ - -e "s:versioneer.get_version():\"${PV}\":" \ - setup.py \ - || die - distutils-r1_python_prepare_all +src_prepare() { + # removed outdated bundled version (for py3.12 compat) + rm versioneer.py || die + distutils-r1_src_prepare } diff --git a/dev-python/docker/docker-6.1.3.ebuild b/dev-python/docker/docker-6.1.3.ebuild index 2dca97c1c92d..2947634d5358 100644 --- a/dev-python/docker/docker-6.1.3.ebuild +++ b/dev-python/docker/docker-6.1.3.ebuild @@ -4,6 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +# py3.12: https://github.com/docker/docker-py/pull/3176 (incomplete) PYTHON_COMPAT=( python3_{8,9,10,11,12} ) inherit distutils-r1 diff --git a/dev-python/pymediainfo/Manifest b/dev-python/pymediainfo/Manifest index d10ac1a454c8..7766cecacbc5 100644 --- a/dev-python/pymediainfo/Manifest +++ b/dev-python/pymediainfo/Manifest @@ -1 +1,2 @@ DIST pymediainfo-6.0.1.tar.gz 446487 BLAKE2B 402c71157e43fd03efe37934932c61e1e22d469c13f5b5e85d7e0f1d52d6e54289860777c1677efeb4710a5c55086a1c7db03da8ad2f88f49d144bd5484f8638 SHA512 7b373b133911eb320248f72627f6aeb6fa04705b55500639d18094ed8227296fd744c2c4b76d765e8b2d98d78f443114e9ca7ef8e2e0eb498d48d2b46956f952 +DIST pymediainfo-6.1.0.tar.gz 446466 BLAKE2B 66a2863439cd2df7e5ad8be07a377b8201048aed4f6b4efb2289f316a184ebbc5376ce4e437e05819906a49eb40d49039f8e17654470cd1539fdfdb6496b3b71 SHA512 2c32134f42794a7228591d96e2cbe64b30693b671ded4e386b08eb6d571459e4a06d551d3c169dd340f560cf5ec7f86f6cd73fc135e4404614c22ed452273783 diff --git a/dev-python/pymediainfo/pymediainfo-6.1.0.ebuild b/dev-python/pymediainfo/pymediainfo-6.1.0.ebuild new file mode 100644 index 000000000000..17a804e5bee8 --- /dev/null +++ b/dev-python/pymediainfo/pymediainfo-6.1.0.ebuild @@ -0,0 +1,34 @@ +# 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_{8,9,10,11,12} pypy3 ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="A wrapper around the mediainfo library" +HOMEPAGE=" + https://github.com/sbraz/pymediainfo/ + https://pypi.org/project/pymediainfo/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + media-libs/libmediainfo +" +# tests/test_pymediainfo.py::MediaInfoURLTest::test_parse_url requires libmediainfo with curl support +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + media-libs/libmediainfo[curl] + ) +" + +distutils_enable_sphinx docs dev-python/alabaster +distutils_enable_tests pytest diff --git a/dev-python/pythran/pythran-0.14.0.ebuild b/dev-python/pythran/pythran-0.14.0.ebuild index 7deb344b65dd..834b01540d65 100644 --- a/dev-python/pythran/pythran-0.14.0.ebuild +++ b/dev-python/pythran/pythran-0.14.0.ebuild @@ -52,11 +52,18 @@ BDEPEND=" distutils_enable_tests pytest src_configure() { - cat >> setup.cfg <<-EOF + cat >> setup.cfg <<-EOF || die [build_py] no_boost = True no_xsimd = True EOF + + if use test ; then + sed -i \ + -e 's|blas=blas|blas=cblas|' \ + -e 's|libs=|libs=cblas|' \ + pythran/pythran-*.cfg || die + fi } python_test() { @@ -72,13 +79,8 @@ python_test() { case ${EPYTHON} in python3.12) EPYTEST_DESELECT+=( - pythran/tests/test_cases.py::TestCases::test_convnet_run0 - pythran/tests/test_advanced.py::TestAdvanced::test_matmul_operator + # requires numpy.distutils pythran/tests/test_distutils.py::TestDistutils::test_setup_{b,s}dist_install3 - pythran/tests/test_cases.py::TestCases::test_euclidean_distance_square_run0 - pythran/tests/test_numpy_func2.py::TestNumpyFunc2::test_matrix_power{0..2} - pythran/tests/test_numpy_func3.py::TestNumpyFunc3::test_dot{5,7,9,11,12b,13,14b} - pythran/tests/test_numpy_func3.py::TestNumpyFunc3::test_dot{15..23} ) ;; esac diff --git a/dev-python/pyx/pyx-0.16-r1.ebuild b/dev-python/pyx/pyx-0.16-r1.ebuild new file mode 100644 index 000000000000..7d113cbd7a83 --- /dev/null +++ b/dev-python/pyx/pyx-0.16-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +#DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +DESCRIPTION="Python package for the generation of encapsulated PostScript figures" +MY_PN="PyX" +MY_P=${MY_PN}-${PV} +HOMEPAGE=" + https://github.com/pyx-project/pyx + https://pyx-project.org/ + https://pypi.org/project/PyX/" +SRC_URI="https://github.com/pyx-project/${PN}/releases/download/${PV}/${MY_P}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND=" + dev-python/pillow[${PYTHON_USEDEP}] + virtual/tex-base + virtual/latex-base + dev-texlive/texlive-basic" + +BDEPEND="${RDEPEND} + doc? ( + $(python_gen_any_dep ' + dev-python/sphinx[latex,${PYTHON_USEDEP}] + dev-python/sphinx_selective_exclude[${PYTHON_USEDEP}] + ') + )" + +PATCHES=( "${FILESDIR}"/pyx-0.14.1-unicode-latex.patch ) +S="${WORKDIR}"/${MY_P} + +python_check_deps() { + use doc || return 0 + python_has_version "dev-python/sphinx[latex,${PYTHON_USEDEP}]" \ + "dev-python/sphinx_selective_exclude[${PYTHON_USEDEP}]" +} + +src_prepare() { + sed -i \ + -e 's/^build_t1code=.*/build_t1code=1/' \ + -e 's/^build_pykpathsea=.*/build_pykpathsea=1/' \ + setup.cfg || die "setup.cfg fix failed" + distutils-r1_src_prepare +} + +python_compile_all() { + if use doc; then + local -x VARTEXFONTS="${T}"/fonts + emake -C "${S}"/manual latexpdf + emake -C "${S}"/faq latexpdf + fi +} + +python_install_all() { + use doc && dodoc manual/_build/latex/manual.pdf faq/_build/latex/pyxfaq.pdf + distutils-r1_python_install_all +} diff --git a/dev-python/rpyc/rpyc-5.3.1-r1.ebuild b/dev-python/rpyc/rpyc-5.3.1-r1.ebuild new file mode 100644 index 000000000000..a9c9dc20130d --- /dev/null +++ b/dev-python/rpyc/rpyc-5.3.1-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2023 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 + +DESCRIPTION="Remote Python Call (RPyC), a transparent and symmetric RPC library" +HOMEPAGE="https://rpyc.readthedocs.io/en/latest/ + https://pypi.org/project/rpyc/ + https://github.com/tomerfiliba-org/rpyc" +SRC_URI="https://github.com/tomerfiliba-org/rpyc/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +# USE flags gdb, numpy are used *only* to run tests depending on these packages +IUSE="test numpy gdb" +RESTRICT="!test? ( test )" + +CDEPEND="numpy? ( dev-python/numpy[${PYTHON_USEDEP}] dev-python/pandas[${PYTHON_USEDEP}] ) + gdb? ( sys-devel/gdb )" + +DEPEND="${CDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +RDEPEND="${CDEPEND} + dev-python/plumbum[${PYTHON_USEDEP}]" + +PATCHES=( "${FILESDIR}"/${PN}-5.3.0-no-gevent.patch ) + +src_prepare() { + default + + # Windows specific test + rm tests/test_win32pipes.py || die "rm tests/test_win32pipes.py failed" + + # These tests require running sshd + rm tests/test_ssh.py tests/test_deploy.py || die "rm test_ssh.py test_deploy.py failed" + + # This test requires internet access + rm tests/test_registry.py || die "rm test_registry.py failed" + + # This test fails with NO_CIPHERS_AVAILABLE + rm tests/test_ssl.py || die "rm test_ssl.py failed" + + # dev-python/gevent is being removed + rm tests/test_gevent_server.py || die "rm test_gevent_server.py failed" + + if ! use numpy + then rm tests/test_service_pickle.py || die "rm test_service_pickle.py failed" + fi + + if ! use gdb + then rm tests/test_gdb.py || die "rm test_gdb.py failed" + fi +} + +python_test() { + # for some reason, when tests are run via pytest or nose, some of them hung + pushd tests > /dev/null || die "pushd tests failed" + for x in test_*.py + do PYTHONPATH="${WORKDIR}"/${P}-${EPYTHON/./_}/install/usr/lib/${EPYTHON}/site-packages ${EPYTHON} ${x} || die "${x} failed" + done + popd > /dev/null +} diff --git a/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.2-r1.ebuild b/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.2-r1.ebuild index b9c73eaa738d..1eeadf355d77 100644 --- a/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.2-r1.ebuild +++ b/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.2-r1.ebuild @@ -3,9 +3,10 @@ EAPI=8 +DISTUTILS_USE_PEP517=setuptools PYPI_NO_NORMALIZE=1 PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -DISTUTILS_USE_PEP517=setuptools + inherit distutils-r1 pypi DESCRIPTION="Make Sphinx better at documenting Python functions and methods" @@ -18,21 +19,27 @@ LICENSE="|| ( Apache-2.0 MIT )" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86" SLOT="0" -RDEPEND="dev-python/sphinx[${PYTHON_USEDEP}]" +RDEPEND=" + dev-python/sphinx[${PYTHON_USEDEP}] +" BDEPEND=" test? ( - dev-python/async_generator[${PYTHON_USEDEP}] dev-python/cssselect[${PYTHON_USEDEP}] dev-python/lxml[${PYTHON_USEDEP}] -)" + ) +" # AttributeError: 'Sphinx' object has no attribute 'add_stylesheet' #distutils_enable_sphinx docs/source distutils_enable_tests pytest python_test() { - # https://github.com/python-trio/sphinxcontrib-trio/issues/260 - local -x PYTHONPATH="${BUILD_DIR}/install/usr/lib/${EPYTHON}/site-packages" - epytest --deselect tests/test_sphinxcontrib_trio.py::test_end_to_end + local EPYTEST_DESELECT=( + # https://github.com/python-trio/sphinxcontrib-trio/issues/260 + tests/test_sphinxcontrib_trio.py::test_end_to_end + ) + + local -x PYTHONPATH="${BUILD_DIR}/install$(python_get_sitedir)" + epytest } |
