summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-07-01 17:43:57 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-07-01 17:43:57 +0000
commit92f138c6c660a6a68a843c8c394a93999455bee7 (patch)
treebc5f2b61024cea20c7bbed714634b64b4c8c3955 /dev-python
parent2f038d1a0bc791d17fb3e5fe366be075a7f68aac (diff)
downloadbaldeagleos-repo-92f138c6c660a6a68a843c8c394a93999455bee7.tar.gz
baldeagleos-repo-92f138c6c660a6a68a843c8c394a93999455bee7.tar.xz
baldeagleos-repo-92f138c6c660a6a68a843c8c394a93999455bee7.zip
Adding metadata
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/asyncssh/asyncssh-2.14.2.ebuild7
-rw-r--r--dev-python/asyncssh/files/asyncssh-2.14.2-py313.patch151
-rw-r--r--dev-python/flatbuffers/files/flatbuffers-24.3.25-numpy-2.patch72
-rw-r--r--dev-python/flatbuffers/flatbuffers-24.3.25-r1.ebuild46
-rw-r--r--dev-python/jplephem/Manifest1
-rw-r--r--dev-python/jplephem/files/jplephem-fix-numpy-compat.patch13
-rw-r--r--dev-python/jplephem/jplephem-2.22.ebuild33
-rw-r--r--dev-python/plexapi/Manifest1
-rw-r--r--dev-python/plexapi/plexapi-4.15.14.ebuild37
9 files changed, 358 insertions, 3 deletions
diff --git a/dev-python/asyncssh/asyncssh-2.14.2.ebuild b/dev-python/asyncssh/asyncssh-2.14.2.ebuild
index 136512b4e1b3..f1922a5a62bd 100644
--- a/dev-python/asyncssh/asyncssh-2.14.2.ebuild
+++ b/dev-python/asyncssh/asyncssh-2.14.2.ebuild
@@ -35,11 +35,12 @@ BDEPEND="
)
"
-EPYTEST_DESELECT=(
- # https://github.com/ronf/asyncssh/pull/578
- tests/test_process.py::_TestAsyncFileRedirection::test_stdout_aiofile
+PATCHES=(
+ # https://github.com/ronf/asyncssh/issues/616
+ "${FILESDIR}/${P}-py313.patch"
)
+EPYTEST_XDIST=1
distutils_enable_tests pytest
distutils_enable_sphinx docs
diff --git a/dev-python/asyncssh/files/asyncssh-2.14.2-py313.patch b/dev-python/asyncssh/files/asyncssh-2.14.2-py313.patch
new file mode 100644
index 000000000000..fa3752a2b516
--- /dev/null
+++ b/dev-python/asyncssh/files/asyncssh-2.14.2-py313.patch
@@ -0,0 +1,151 @@
+From 58168139adcaa4bf12448904137cd77812636b18 Mon Sep 17 00:00:00 2001
+From: Ron Frederick <ronf@timeheart.net>
+Date: Sat, 23 Dec 2023 10:25:14 -0800
+Subject: [PATCH] Guard against possible UNIX domain socket cleanup in Python
+ 3.13
+
+This commit adds guards around code which cleans up UNIX domain
+sockets, to protect against a change proposed at
+https://github.com/python/cpython/issues/111246
+which would cause the socket to clean itself up on close.
+---
+ tests/test_agent.py | 5 ++++-
+ tests/test_forward.py | 50 +++++++++++++++++++++++++++++++++----------
+ 2 files changed, 43 insertions(+), 12 deletions(-)
+
+diff --git a/tests/test_agent.py b/tests/test_agent.py
+index 28ca730..2f0b83c 100644
+--- a/tests/test_agent.py
++++ b/tests/test_agent.py
+@@ -85,7 +85,10 @@ async def stop(self):
+ self._server.close()
+ await self._server.wait_closed()
+
+- os.remove(self._path)
++ try:
++ os.remove(self._path)
++ except OSError:
++ pass
+
+
+ class _TestAgent(AsyncTestCase):
+diff --git a/tests/test_forward.py b/tests/test_forward.py
+index cae199d..4d30eda 100644
+--- a/tests/test_forward.py
++++ b/tests/test_forward.py
+@@ -651,7 +651,10 @@ async def test_forward_local_path_to_port(self):
+ async with conn.forward_local_path_to_port('local', '', 7):
+ await self._check_local_unix_connection('local')
+
+- os.remove('local')
++ try:
++ os.remove('local')
++ except OSError:
++ pass
+
+ @unittest.skipIf(sys.platform == 'win32',
+ 'skip UNIX domain socket tests on Windows')
+@@ -665,7 +668,10 @@ async def test_forward_local_path_to_port_failure(self):
+ with self.assertRaises(OSError):
+ await conn.forward_local_path_to_port('local', '', 7)
+
+- os.remove('local')
++ try:
++ os.remove('local')
++ except OSError:
++ pass
+
+ @asynctest
+ async def test_forward_local_port_pause(self):
+@@ -798,7 +804,11 @@ async def test_forward_remote_port_to_path(self):
+
+ server.close()
+ await server.wait_closed()
+- os.remove('local')
++
++ try:
++ os.remove('local')
++ except OSError:
++ pass
+
+ @asynctest
+ async def test_forward_remote_specific_port(self):
+@@ -1020,7 +1030,10 @@ async def test_unix_server(self):
+ await listener.wait_closed()
+ listener.close()
+
+- os.remove('echo')
++ try:
++ os.remove('echo')
++ except OSError:
++ pass
+
+ @asynctest
+ async def test_unix_server_open(self):
+@@ -1053,7 +1066,10 @@ async def test_unix_server_non_async(self):
+ async with conn.start_unix_server(_unix_listener_non_async, path):
+ await self._check_local_unix_connection('echo')
+
+- os.remove('echo')
++ try:
++ os.remove('echo')
++ except OSError:
++ pass
+
+ @asynctest
+ async def test_unix_server_failure(self):
+@@ -1071,7 +1087,10 @@ async def test_forward_local_path(self):
+ async with conn.forward_local_path('local', '/echo'):
+ await self._check_local_unix_connection('local')
+
+- os.remove('local')
++ try:
++ os.remove('local')
++ except OSError:
++ pass
+
+ @asynctest
+ async def test_forward_local_port_to_path_accept_handler(self):
+@@ -1149,8 +1168,11 @@ async def test_forward_remote_path(self):
+ server.close()
+ await server.wait_closed()
+
+- os.remove('echo')
+- os.remove('local')
++ try:
++ os.remove('echo')
++ os.remove('local')
++ except OSError:
++ pass
+
+ @asynctest
+ async def test_forward_remote_path_to_port(self):
+@@ -1167,11 +1189,14 @@ async def test_forward_remote_path_to_port(self):
+ path, '127.0.0.1', server_port):
+ await self._check_local_unix_connection('echo')
+
+- os.remove('echo')
+-
+ server.close()
+ await server.wait_closed()
+
++ try:
++ os.remove('echo')
++ except OSError:
++ pass
++
+ @asynctest
+ async def test_forward_remote_path_failure(self):
+ """Test failure of forwarding a remote UNIX domain path"""
+@@ -1184,7 +1209,10 @@ async def test_forward_remote_path_failure(self):
+ with self.assertRaises(asyncssh.ChannelListenError):
+ await conn.forward_remote_path(path, 'local')
+
+- os.remove('echo')
++ try:
++ os.remove('echo')
++ except OSError:
++ pass
+
+ @asynctest
+ async def test_forward_remote_path_not_permitted(self):
diff --git a/dev-python/flatbuffers/files/flatbuffers-24.3.25-numpy-2.patch b/dev-python/flatbuffers/files/flatbuffers-24.3.25-numpy-2.patch
new file mode 100644
index 000000000000..cc5846404764
--- /dev/null
+++ b/dev-python/flatbuffers/files/flatbuffers-24.3.25-numpy-2.patch
@@ -0,0 +1,72 @@
+From d053fbd391610e72fff1f8ee02c1222305f15de9 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20Van=C4=9Bk?= <arkamar@gentoo.org>
+Date: Mon, 1 Jul 2024 10:29:39 +0000
+Subject: [PATCH] Support for Numpy 2.0 in tests
+
+The newbyteorder has been removed in Numpy 2.0 [1]. Its usages are
+replaced with respect to migration guide.
+
+[1] https://numpy.org/devdocs/numpy_2_0_migration_guide.html#ndarray-and-scalar-methods
+
+Fixes: #8332
+
+Upstream-PR: https://github.com/google/flatbuffers/pull/8346
+
+diff --git a/tests/py_test.py b/tests/py_test.py
+index 7d6c0a37966..fc13a490f71 100644
+--- a/tests/py_test.py
++++ b/tests/py_test.py
+@@ -1095,7 +1095,7 @@ def test_create_numpy_vector_int8(self):
+
+ # Reverse endian:
+ b = flatbuffers.Builder(0)
+- x_other_endian = x.byteswap().newbyteorder()
++ x_other_endian = x.byteswap().view(x.dtype.newbyteorder())
+ b.CreateNumpyVector(x_other_endian)
+ self.assertBuilderEquals(
+ b,
+@@ -1144,7 +1144,7 @@ def test_create_numpy_vector_uint16(self):
+
+ # Reverse endian:
+ b = flatbuffers.Builder(0)
+- x_other_endian = x.byteswap().newbyteorder()
++ x_other_endian = x.byteswap().view(x.dtype.newbyteorder())
+ b.CreateNumpyVector(x_other_endian)
+ self.assertBuilderEquals(
+ b,
+@@ -1213,7 +1213,7 @@ def test_create_numpy_vector_int64(self):
+
+ # Reverse endian:
+ b = flatbuffers.Builder(0)
+- x_other_endian = x.byteswap().newbyteorder()
++ x_other_endian = x.byteswap().view(x.dtype.newbyteorder())
+ b.CreateNumpyVector(x_other_endian)
+ self.assertBuilderEquals(
+ b,
+@@ -1287,7 +1287,7 @@ def test_create_numpy_vector_float32(self):
+
+ # Reverse endian:
+ b = flatbuffers.Builder(0)
+- x_other_endian = x.byteswap().newbyteorder()
++ x_other_endian = x.byteswap().view(x.dtype.newbyteorder())
+ b.CreateNumpyVector(x_other_endian)
+ self.assertBuilderEquals(
+ b,
+@@ -1361,7 +1361,7 @@ def test_create_numpy_vector_float64(self):
+
+ # Reverse endian:
+ b = flatbuffers.Builder(0)
+- x_other_endian = x.byteswap().newbyteorder()
++ x_other_endian = x.byteswap().view(x.dtype.newbyteorder())
+ b.CreateNumpyVector(x_other_endian)
+ self.assertBuilderEquals(
+ b,
+@@ -1427,7 +1427,7 @@ def test_create_numpy_vector_bool(self):
+
+ # Reverse endian:
+ b = flatbuffers.Builder(0)
+- x_other_endian = x.byteswap().newbyteorder()
++ x_other_endian = x.byteswap().view(x.dtype.newbyteorder())
+ b.CreateNumpyVector(x_other_endian)
+ self.assertBuilderEquals(
+ b,
diff --git a/dev-python/flatbuffers/flatbuffers-24.3.25-r1.ebuild b/dev-python/flatbuffers/flatbuffers-24.3.25-r1.ebuild
new file mode 100644
index 000000000000..813fed0c5c23
--- /dev/null
+++ b/dev-python/flatbuffers/flatbuffers-24.3.25-r1.ebuild
@@ -0,0 +1,46 @@
+# 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
+
+DESCRIPTION="RFC 7049 - Concise Binary Object Representation"
+HOMEPAGE="
+ https://github.com/google/flatbuffers/
+ https://pypi.org/project/flatbuffers/
+"
+SRC_URI="
+ https://github.com/google/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+S=${WORKDIR}/${P}/python
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~sparc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ test? (
+ dev-python/numpy[${PYTHON_USEDEP}]
+ )
+"
+
+src_prepare() {
+ cd "${WORKDIR}/${P}" || die
+ eapply "${FILESDIR}/${PN}-24.3.25-numpy-2.patch"
+ cd "${S}" || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ cd "${WORKDIR}/${P}/tests" || die
+ # zeroes means without benchmarks
+ "${EPYTHON}" py_test.py 0 0 0 0 false || die
+ "${EPYTHON}" py_flexbuffers_test.py -v || die
+}
diff --git a/dev-python/jplephem/Manifest b/dev-python/jplephem/Manifest
index 8bf4c89d2a23..9eed65a15ca2 100644
--- a/dev-python/jplephem/Manifest
+++ b/dev-python/jplephem/Manifest
@@ -1 +1,2 @@
DIST jplephem-2.21.tar.gz 44359 BLAKE2B 53e816f9eb6ffed8635cd93b4ca68d904c130af2e2dcfcae58c0575ad11c0269487cef1eb73934184c84773387f18ba2eec7c850a383757cf7be649fd5a2e8f6 SHA512 1cd8df8c96dd6bdd73b2615cc78fcf845d2d6d44daa99754662e2449e2c185052983056a9f0de11bfce390cc6c09a798b2ad1908b3eb0bca113e8c0ba16445e2
+DIST jplephem-2.22.gh.tar.gz 59000132 BLAKE2B 1ddd9a911698530e134383491a30df12491dea61d7a3f1d1d41eee3c2cb239bd2da261c543c62c766675d1be94d7c10bc7fbbcc4dbfb7c6cb710b77bdaffadbf SHA512 5ed8f6e071d1cd1d3ee394d3c7aa000ac3163abce0b324072f795cd9ff5e6e55aaa23bdeacbca78ec8e6dd9acc378e5daa923953e0a4387867772a1abae77952
diff --git a/dev-python/jplephem/files/jplephem-fix-numpy-compat.patch b/dev-python/jplephem/files/jplephem-fix-numpy-compat.patch
new file mode 100644
index 000000000000..f781933abf79
--- /dev/null
+++ b/dev-python/jplephem/files/jplephem-fix-numpy-compat.patch
@@ -0,0 +1,13 @@
+If numpy version has a suffix it will break
+diff --git a/jplephem/test.py b/jplephem/test.py
+index 660d5b5..b50cef2 100644
+--- a/jplephem/test.py
++++ b/jplephem/test.py
+@@ -515,6 +515,7 @@ File type DAF/SPK and format LTL-IEEE with 15 segments:
+
+ def load_tests(loader, tests, ignore):
+ """Run our main documentation as a test."""
++ return tests
+
+ # If we are running in CI, where we test against an old version of
+ # NumPy, skip the doctests since NumPy will print whitespace
diff --git a/dev-python/jplephem/jplephem-2.22.ebuild b/dev-python/jplephem/jplephem-2.22.ebuild
new file mode 100644
index 000000000000..4ee118fe3873
--- /dev/null
+++ b/dev-python/jplephem/jplephem-2.22.ebuild
@@ -0,0 +1,33 @@
+# 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} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python version of NASA DE4xx ephemerides for Astronomical Alamanac"
+HOMEPAGE="https://pypi.org/project/jplephem/"
+SRC_URI="https://github.com/brandon-rhodes/python-jplephem/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+S="${WORKDIR}/python-${P}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-fix-numpy-compat.patch" )
+
+distutils_enable_tests unittest
+
+python_test() {
+ cd ci || die
+ eunittest .
+}
diff --git a/dev-python/plexapi/Manifest b/dev-python/plexapi/Manifest
index f66b9c343ab9..e7c77f4bc271 100644
--- a/dev-python/plexapi/Manifest
+++ b/dev-python/plexapi/Manifest
@@ -1 +1,2 @@
DIST plexapi-4.15.11.gh.tar.gz 22519567 BLAKE2B 20f5e3d426475c63aa39f960838a0501abbf6af6f2c214163825e53d052076cd8a8ba982eafe0faa9971d0b6f857a266f092a3d4fb3b6cb7fff8c7f9380f4e03 SHA512 c68b414aa9262c3505dc2490c38e8d5dd896970f4df7fe8d382a0c5f2276ecc9833767e243b596c4f0f625e6d8984f5f89790fe7a71e9b6cab1c439f26b9cde1
+DIST plexapi-4.15.14.gh.tar.gz 22523062 BLAKE2B ced898e7e4fdfbf605882e683afea9e12161dc8ff633bc8c03a788f0684252ae4bd2a33d24d921ed6924e6831b976f564213ad8a5d2bf9b5fd9d38874163a3a2 SHA512 1bacbb0fe37d6d9c9807f25d794305e3da0b532e1108299335fbc8b4a9398d4c5c57fdb7aadc61f8edd0b14b58df78adaea655b5193439069bfa22cc5b553089
diff --git a/dev-python/plexapi/plexapi-4.15.14.ebuild b/dev-python/plexapi/plexapi-4.15.14.ebuild
new file mode 100644
index 000000000000..b1050ad4b03c
--- /dev/null
+++ b/dev-python/plexapi/plexapi-4.15.14.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# left here in case we switch to pypi
+PYPI_PN="PlexAPI"
+PYPI_NO_NORMALIZE=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8,9,10,11,12} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for the Plex API."
+HOMEPAGE="
+ https://pypi.org/project/plexapi/
+ https://github.com/pkkid/python-plexapi
+"
+
+# pypi release don't have docs
+SRC_URI="https://github.com/pkkid/python-plexapi/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+S="${WORKDIR}/python-${P}"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# almost all tests requires a running server
+RESTRICT="test"
+
+RDEPEND="
+ dev-python/requests[${PYTHON_USEDEP}]
+"
+
+BDEPEND="doc? ( dev-python/sphinx-rtd-theme )"
+
+distutils_enable_sphinx docs