diff options
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/django-redis/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/django-redis/django-redis-6.0.0.ebuild | 103 | ||||
| -rw-r--r-- | dev-python/fitsio/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/fitsio/files/fitsio-1.2.6-numpy-2.3.patch | 49 | ||||
| -rw-r--r-- | dev-python/fitsio/fitsio-1.2.5.ebuild | 41 | ||||
| -rw-r--r-- | dev-python/fitsio/fitsio-1.2.6-r1.ebuild (renamed from dev-python/fitsio/fitsio-1.2.6.ebuild) | 5 | ||||
| -rw-r--r-- | dev-python/flask-restx/flask-restx-1.3.0.ebuild | 19 | ||||
| -rw-r--r-- | dev-python/guidata/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/guidata/guidata-3.10.0.ebuild (renamed from dev-python/guidata/guidata-3.6.3.ebuild) | 0 | ||||
| -rw-r--r-- | dev-python/langdetect/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/langdetect/files/langdetect-1.0.9-explicit-config.patch | 13 | ||||
| -rw-r--r-- | dev-python/langdetect/langdetect-1.0.9.ebuild | 6 | ||||
| -rw-r--r-- | dev-python/langdetect/metadata.xml | 10 |
13 files changed, 191 insertions, 61 deletions
diff --git a/dev-python/django-redis/Manifest b/dev-python/django-redis/Manifest index ac9c29bbbe25..54bf95ca08fa 100644 --- a/dev-python/django-redis/Manifest +++ b/dev-python/django-redis/Manifest @@ -1 +1,2 @@ DIST django-redis-5.4.0.tar.gz 52567 BLAKE2B f3ac670500dbe57d795905d10d3a63102c60de6b61e96af257c0e654cd7aa7dc2e70e512bad55ef4129dd11f60ceaaeeccf78b94486550a555a843e4dea98f1f SHA512 12eb85ee3ce2c8fcf013c804a630bd3eb943de0980d1f6d365b5b5ed762ab956db80329f3e170f330ccc5b9e6f178ffa7938b1880477b7fb609d2cc3680b984a +DIST django_redis-6.0.0.tar.gz 56904 BLAKE2B 795c285fde69dff4809323e7da2aa0d2720c5939ab68197cbc8ab2b3cf468397146d25791e46b148e0214ff25169a8ac9dac990befb07ade16ed695e4b28c7c0 SHA512 616f3a81d986c5958b2d2740ad1becbd304ed395b9907758fd80a1cf2a5457c8f66a158874ee4b416b85c3540dc45f4127587cdf15d7b884c624ab7e8f84272e diff --git a/dev-python/django-redis/django-redis-6.0.0.ebuild b/dev-python/django-redis/django-redis-6.0.0.ebuild new file mode 100644 index 000000000000..a17375a42892 --- /dev/null +++ b/dev-python/django-redis/django-redis-6.0.0.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Full featured redis cache backend for Django" +HOMEPAGE=" + https://github.com/jazzband/django-redis/ + https://pypi.org/project/django-redis/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/django-4.2[${PYTHON_USEDEP}] + >=dev-python/redis-4.0.2[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-db/redis + dev-python/lz4[${PYTHON_USEDEP}] + dev-python/msgpack[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + sed -e '/--cov/d' \ + -e '/--no-cov/d' \ + -i setup.cfg || die + distutils-r1_src_prepare +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + # no clue why we need to set it explicitly + local -x DJANGO_SETTINGS_MODULE=settings.sqlite + # sqlite_zstd requires pyzstd + # the test suite only works with -n4 + # https://github.com/jazzband/django-redis/issues/777 + epytest -p xdist -n 4 -p pytest_mock -k "not sqlite_zstd" +} + +src_test() { + local redis_pid="${T}"/redis.pid + local redis_port=6379 + local redis_sock="${T}"/redis.sock + local redis_test_config=" + daemonize yes + pidfile ${redis_pid} + port ${redis_port} + unixsocket ${redis_sock} + bind 127.0.0.1 + logfile ${T}/redis.log + enable-debug-command yes + " + local sentinel_pid="${T}"/sentinel.pid + local sentinel_port=26379 + + # Spawn Redis itself for testing purposes + einfo "Spawning Redis" + einfo "NOTE: Port ${redis_port} must be free" + "${EPREFIX}"/usr/sbin/redis-server - <<< "${redis_test_config}" || die + + # Also Redis sentinel + cat > "${T}"/sentinel.conf <<-EOF || die + # from docker/sentinel.conf + sentinel monitor default_service 127.0.0.1 ${redis_port} 1 + sentinel down-after-milliseconds default_service 3200 + sentinel failover-timeout default_service 10000 + + # for some reason, tests expect 127.0.0.1 too + sentinel monitor 127.0.0.1 127.0.0.1 ${redis_port} 1 + sentinel down-after-milliseconds 127.0.0.1 3200 + sentinel failover-timeout 127.0.0.1 10000 + + daemonize yes + pidfile ${sentinel_pid} + port ${sentinel_port} + logfile ${T}/sentinel.log + EOF + "${EPREFIX}"/usr/sbin/redis-sentinel "${T}"/sentinel.conf || die + + # Update the socket path, we don't want hardcoded /tmp + sed -e "s^/tmp/redis.sock^${redis_sock}^g" \ + -i tests/settings/sqlite_usock.py || die + + # Run the tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${sentinel_pid}")" "$(<"${redis_pid}")" || die +} diff --git a/dev-python/fitsio/Manifest b/dev-python/fitsio/Manifest index 8a2173ee67fc..988e869511f6 100644 --- a/dev-python/fitsio/Manifest +++ b/dev-python/fitsio/Manifest @@ -1,2 +1 @@ -DIST fitsio-1.2.5.gh.tar.gz 4540023 BLAKE2B 9a10a4643524bc8e1219eea19776c067ab14c929825baf2ebd3b9b4565db975ea545397359e24eb452f573a8a068df7452b374c07b46ee88e30fb386e61509ac SHA512 e47e95561cc9b6ca7922b131c953d9f40608e4c755f86bd9b96e66f981b3427633631861e5e4e3eef546d207465021f404e3feae234db222244b6c8738c4a9fa DIST fitsio-1.2.6.gh.tar.gz 4540865 BLAKE2B a5acb2cbc105ce055255196c840708414b4da46fa3274da8c617590d1ab96fc36da3c19a79bca6fd2525b0c1d10802881fbed70ad69a5aea2d969529f57ccf9f SHA512 e8ffed41633c261bdb4663745396d94a3e36e70feb9fe8bca32e0d46d4d126e94df2d723e4fbf82a4b910315b211ca3c9fba44fcba387649cb8f48c6a917463e diff --git a/dev-python/fitsio/files/fitsio-1.2.6-numpy-2.3.patch b/dev-python/fitsio/files/fitsio-1.2.6-numpy-2.3.patch new file mode 100644 index 000000000000..da2d7e7d175a --- /dev/null +++ b/dev-python/fitsio/files/fitsio-1.2.6-numpy-2.3.patch @@ -0,0 +1,49 @@ +From b3b1af26b1c23a3e3e1b185b1e80bd7f55771fe7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 18 Jun 2025 10:57:02 +0200 +Subject: [PATCH] Replace deprecated `NPY_*` constants + +Replaced the deprecated `NPY_*` constants with `NPY_ARRAY_*`. +The latter were introduced in NumPy 1.7, and the former were finally +removed in 2.3.0. + +Fixes #429 +--- + fitsio/fitsio_pywrap.c | 8 ++++---- + setup.py | 4 ++-- + 2 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/fitsio/fitsio_pywrap.c b/fitsio/fitsio_pywrap.c +index 8bba6be..957643d 100644 +--- a/fitsio/fitsio_pywrap.c ++++ b/fitsio/fitsio_pywrap.c +@@ -2356,10 +2356,10 @@ int write_var_num_column( + int mindepth=1, maxdepth=0; + PyObject* context=NULL; + int requirements = +- NPY_C_CONTIGUOUS +- | NPY_ALIGNED +- | NPY_NOTSWAPPED +- | NPY_ELEMENTSTRIDES; ++ NPY_ARRAY_C_CONTIGUOUS ++ | NPY_ARRAY_ALIGNED ++ | NPY_ARRAY_NOTSWAPPED ++ | NPY_ARRAY_ELEMENTSTRIDES; + + int res=0; + +diff --git a/setup.py b/setup.py +index 7de67a7..ef549c5 100644 +--- a/setup.py ++++ b/setup.py +@@ -327,8 +327,8 @@ def check_system_cfitsio_objects(self, obj_name): + url="https://github.com/esheldon/fitsio", + author="Erin Scott Sheldon", + author_email="erin.sheldon@gmail.com", +- setup_requires=['numpy'], +- install_requires=['numpy'], ++ setup_requires=['numpy>=1.7'], ++ install_requires=['numpy>=1.7'], + packages=find_packages(), + include_package_data=True, + ext_modules=[ext], diff --git a/dev-python/fitsio/fitsio-1.2.5.ebuild b/dev-python/fitsio/fitsio-1.2.5.ebuild deleted file mode 100644 index 0d0dbcc28c85..000000000000 --- a/dev-python/fitsio/fitsio-1.2.5.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2025 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_{9,10,11,12,13} ) - -inherit distutils-r1 - -DESCRIPTION="Python library to read from and write to FITS files" -HOMEPAGE=" - https://github.com/esheldon/fitsio/ - https://pypi.org/project/fitsio/ -" -SRC_URI=" - https://github.com/esheldon/fitsio/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" - -DEPEND=" - >=dev-python/numpy-1.11:=[${PYTHON_USEDEP}] - >=sci-libs/cfitsio-4.4.0:0= -" -RDEPEND=" - ${DEPEND} -" - -distutils_enable_tests pytest - -export FITSIO_USE_SYSTEM_FITSIO=1 - -python_test() { - cd "${BUILD_DIR}/install$(python_get_sitedir)" || die - epytest -} diff --git a/dev-python/fitsio/fitsio-1.2.6.ebuild b/dev-python/fitsio/fitsio-1.2.6-r1.ebuild index ef2a0fd59f77..533576bfd154 100644 --- a/dev-python/fitsio/fitsio-1.2.6.ebuild +++ b/dev-python/fitsio/fitsio-1.2.6-r1.ebuild @@ -33,6 +33,11 @@ RDEPEND=" distutils_enable_tests pytest +PATCHES=( + # https://github.com/esheldon/fitsio/pull/430 + "${FILESDIR}/${P}-numpy-2.3.patch" +) + export FITSIO_USE_SYSTEM_FITSIO=1 python_test() { diff --git a/dev-python/flask-restx/flask-restx-1.3.0.ebuild b/dev-python/flask-restx/flask-restx-1.3.0.ebuild index b4d17eda54e1..c15022558b4a 100644 --- a/dev-python/flask-restx/flask-restx-1.3.0.ebuild +++ b/dev-python/flask-restx/flask-restx-1.3.0.ebuild @@ -39,12 +39,15 @@ PATCHES=( "${FILESDIR}/${PN}-avoid-importlib_resources.patch" ) distutils_enable_tests pytest -python_test() { - skip_tests=" \ - not ReqParseTest and \ - not EmailTest and \ - not URLTest and \ - not LoggingTest" +EPYTEST_DESELECT=( + "tests/test_swagger.py::SwaggerTest::test_specs_endpoint_host_and_subdomain" + "tests/test_fields.py::DatetimeFieldTest::test_iso8601_value" + "tests/test_fields.py::DatetimeFieldTest::test_rfc822_value" + "tests/test_inputs.py::URLTest::test_check" + "tests/test_inputs.py::EmailTest::test_valid_value_check" +) - epytest tests/test_*.py -k "${skip_tests}" -} +EPYTEST_IGNORE=( + "tests/benchmarks/bench_marshalling.py" + "tests/benchmarks/bench_swagger.py" +) diff --git a/dev-python/guidata/Manifest b/dev-python/guidata/Manifest index 9eda3ede3801..a9064560eff5 100644 --- a/dev-python/guidata/Manifest +++ b/dev-python/guidata/Manifest @@ -1,3 +1,3 @@ -DIST guidata-3.6.3.tar.gz 718459 BLAKE2B f3ec7bd4d367afe05741498df15ddef1904962c826fc0ce8200a72d3f46fdc198ba0facb5f9010f94be21506e7f43a02c4ffab6ca7d8adf27ab01efae493a1fe SHA512 b3e53dace35c19e30be19bdf91454322445446d87f2d278f6749b3c7d5b7029dc7786ccdd48baa9b10991a076d83084fac4cfb39a86f695659e37c5be28ed28a +DIST guidata-3.10.0.tar.gz 720221 BLAKE2B b3cb9e0fdce80ae16d22a64739c983ba1e97c00fc26ce07eb81f75742ef2dc37ffc880ca5753277a4d9eb729fa763fc80bbd6900fa13420216bcdc02dfda10a9 SHA512 5747907ee4d95b57953cc77f02f6c2b89675cb9478ab0314f87067ada4e03de594c70269e5a90e2e593831cf6257400a805202bde1c25e9df8cfb65c8e5cbb52 DIST guidata-3.7.1.tar.gz 719179 BLAKE2B 8b59ed049c2bb765d9a3d57db02e07ffe3732fb28084d56c0f193c3d525d946f084293c45db1feade4ffa9418331d4cdc7091b15c8d2c3cfdfe9e3b0baedccf9 SHA512 04238f61e6eeb8e8ac85f09a8ad5945026ef7d65ef793e047ff86c5783ced35cbcce53fdd0688814107986782ab159560de77692c4720db5d85efb829b4ffd57 DIST guidata-3.9.0.tar.gz 718554 BLAKE2B bdf60ad59d196c4701e8e2a93730ebfb916f85f10fd94222f1c1bcf72f5b1300359329dcf9ebf5bd5fe793b7f91aca68082c59c8d9ac025900d08fda6211c0d6 SHA512 3c0bdfe541ef28e4bd90c6749714157d4344c1bc50811533ed46ae4cc9a48d14289af6729ce0a9f7a49398d17f0ef779530675c2a56262b18f3e36ae5c892a46 diff --git a/dev-python/guidata/guidata-3.6.3.ebuild b/dev-python/guidata/guidata-3.10.0.ebuild index 1ff7e925b769..1ff7e925b769 100644 --- a/dev-python/guidata/guidata-3.6.3.ebuild +++ b/dev-python/guidata/guidata-3.10.0.ebuild diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index d12ab8aeaca8..a11d7c268c91 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1,3 +1 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db -EBUILD langdetect-1.0.9.ebuild 494 BLAKE2B 9cd8a2a93a8d45bf51fe2324402b175d641762ea591fcb99459427f977a95eccffa6ca4777ca4df39814eea6eac62711567faa654456d32f79023a4685804504 SHA512 d973b85ba1a44389a4275f02a779a93a005f7c2e096467b94b072862e4984d5b42cf33f9821ac68aa5b85b12c98983a90b96049989d8c84497969174b6bb838e -MISC metadata.xml 457 BLAKE2B 630128a3e982b6d60cc7b9f74c79fcb5ee47a71a02c73a50af9da8cedb6fad8e20a7f74b881e5b25c6483b92c9edbd56552cd38b2d9cbfa8b3eb4530facea969 SHA512 674f4f5cd809c6c77bc14e0f5687fa972bef14bdfa0b3343c5d66b7163eef1906eb87d060c8288732f825de71dce291ad0b841a5f2f0dd230f957b5687e45d45 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 56733bbffc48..99577c43fc3e 100644 --- a/dev-python/langdetect/langdetect-1.0.9.ebuild +++ b/dev-python/langdetect/langdetect-1.0.9.ebuild @@ -1,9 +1,9 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 pypi @@ -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/langdetect/metadata.xml b/dev-python/langdetect/metadata.xml index 020e07f2a3dd..c0f74ac187e2 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,11 +2,9 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>marcin.deranek@slonko.net</email> - <name>Marcin Deranek</name> + <email>pastalian46@gmail.com</email> + <name>Takuya Wakazono</name> </maintainer> - <upstream> - <bugs-to>https://github.com/Mimino666/langdetect/issues</bugs-to> - </upstream> - <origin>slonko-overlay</origin> + + <origin>gentoo-guru-overlay</origin> </pkgmetadata>
\ No newline at end of file |
