summaryrefslogtreecommitdiff
path: root/dev-python/pypiserver
diff options
context:
space:
mode:
authorCrucible <crucible@localhost>2026-09-24 17:00:15 -0500
committerCrucible <crucible@localhost>2026-09-24 17:00:15 -0500
commit80e6fcef01171b9705c9c9ffefb41bc4c0b43256 (patch)
treeec29cf3f4a6121d38563db399369efe625967680 /dev-python/pypiserver
parent6295f37a70d50a32011b5a1ee7793fea329cd5f2 (diff)
downloadsrcux-80e6fcef01171b9705c9c9ffefb41bc4c0b43256.tar.gz
srcux-80e6fcef01171b9705c9c9ffefb41bc4c0b43256.tar.xz
srcux-80e6fcef01171b9705c9c9ffefb41bc4c0b43256.zip
Publish srcux candidate 0000000386-20260924-165828
Diffstat (limited to 'dev-python/pypiserver')
-rw-r--r--dev-python/pypiserver/Manifest1
-rw-r--r--dev-python/pypiserver/pypiserver-2.4.2.ebuild77
2 files changed, 78 insertions, 0 deletions
diff --git a/dev-python/pypiserver/Manifest b/dev-python/pypiserver/Manifest
index 7c27ebbbd8e8..b0138a2d008e 100644
--- a/dev-python/pypiserver/Manifest
+++ b/dev-python/pypiserver/Manifest
@@ -1 +1,2 @@
DIST pypiserver-2.4.1.gh.tar.gz 157182 BLAKE2B 37d8898360070465f90f706401d94cc73502d8aefef8867281b52de527a162595b6707a862bf5bbaeba55c7c112cc04b8ec2d75fccc85a712cd10664288299a5 SHA512 11e1d224f5a001748e41e766431228af69f449562af70294194561b9f567da66a7f94a29ca107e1eb919694ad5d7a4325ed85c785885991bacaf705d63e7542a
+DIST pypiserver-2.4.2.gh.tar.gz 243167 BLAKE2B 2cc1fcefc1e3cda41cdca60f6dfce521e18d7ea47a1aaa54c725dd9b34e81f3270be86c282176662bca49f12fd2b0c22dbdf5bbd00daf4b8c9b39500bfd120bf SHA512 3e9f6bab9d8d8c4fab4f4a6c5c043380cad814f90fd270fc5f59e2d2a6ad11c1a012db6fce303916956d4a8207692af5866c2b28245e215ed0ec09798bbd9eb3
diff --git a/dev-python/pypiserver/pypiserver-2.4.2.ebuild b/dev-python/pypiserver/pypiserver-2.4.2.ebuild
new file mode 100644
index 000000000000..30382504928e
--- /dev/null
+++ b/dev-python/pypiserver/pypiserver-2.4.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1
+
+DESCRIPTION="Minimal PyPI server"
+HOMEPAGE="
+ https://github.com/pypiserver/pypiserver/
+ https://pypi.org/project/pypiserver/
+"
+SRC_URI="
+ https://github.com/pypiserver/pypiserver/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+ dev-python/bottle[${PYTHON_USEDEP}]
+ >=dev-python/defusedxml-0.7.1[${PYTHON_USEDEP}]
+ >=dev-python/packaging-26.0[${PYTHON_USEDEP}]
+ >=dev-python/pip-26.0.1[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/legacy-cgi[${PYTHON_USEDEP}]
+ ' 3.{14..15})
+"
+# NB: many test deps are optional/specific to tests we skip
+BDEPEND="
+ dev-python/setuptools-git[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/build-1.2.0[${PYTHON_USEDEP}]
+ >=dev-python/libpass-1.6[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/webtest[${PYTHON_USEDEP}]
+ )
+"
+
+DOCS=( CHANGES.rst README.md )
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # unbundle bottle
+ sed -e 's:pypiserver[.]bottle_wrapper[.]::' \
+ -i pypiserver/bottle_wrapper/__init__.py || die
+ rm pypiserver/bottle_wrapper/bottle.py || die
+}
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # Internet
+ tests/test_server.py::test_hash_algos
+ tests/test_server.py::test_pip_install_open_succeeds
+ tests/test_server.py::test_pip_install_authed_succeeds
+ # seems to rely on internal bottle details
+ tests/test_main.py::test_auto_servers
+ )
+
+ if ! has_version "dev-python/twine[${PYTHON_USEDEP}]"; then
+ EPYTEST_DESELECT+=(
+ tests/test_server.py::test_twine_upload
+ tests/test_server.py::test_twine_register
+ )
+ fi
+
+ epytest tests
+}