commit:     f546ea770d4d418f20064fbe0d6ac9da71ad0238
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 16 03:51:54 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Sep 16 03:59:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f546ea77

dev-python/pypiserver: Bump to 2.2.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pypiserver/Manifest                |  1 +
 dev-python/pypiserver/pypiserver-2.2.0.ebuild | 77 +++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/dev-python/pypiserver/Manifest b/dev-python/pypiserver/Manifest
index 240b9ba1ca91..0a10a646fe9c 100644
--- a/dev-python/pypiserver/Manifest
+++ b/dev-python/pypiserver/Manifest
@@ -1 +1,2 @@
 DIST pypiserver-2.1.1.gh.tar.gz 157393 BLAKE2B 
e80c73b2422dc87bba09d8c9c2e1ffc72017ec58c5530d3debb95560b50a776e1603cb5641c7e4af1ed87d64750843ae025a6a47ab4cc28ce0de1051dd5b214f
 SHA512 
d85afb0d2c85c76a62e393d7d7824e91ff052a04e985278db48010b6f71d12c7749139245e69932b78aefbf3152ba8a8b463bfcd21d1772d047d64f0b164681a
+DIST pypiserver-2.2.0.gh.tar.gz 158107 BLAKE2B 
8c5e68201a4d376bc04ca8a5dc243c8c176f6a1bfd362fd5b0eb2875ca071cd124d15814312c2c14ded57c8476f72d41ccf1057eced2247d17f1cc6b7b12e86c
 SHA512 
e1c313b52c852b90ee3efe07b754d91ac842483718fe30f0c59951aad9aa84bc36c9264956fd931a98aaad5ee151089a06472f19e4ae5e9eb1d20c72cc98f436

diff --git a/dev-python/pypiserver/pypiserver-2.2.0.ebuild 
b/dev-python/pypiserver/pypiserver-2.2.0.ebuild
new file mode 100644
index 000000000000..f44e272eb10a
--- /dev/null
+++ b/dev-python/pypiserver/pypiserver-2.2.0.ebuild
@@ -0,0 +1,77 @@
+# 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_{10..13} pypy3 )
+
+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-0.13[${PYTHON_USEDEP}]
+       >=dev-python/packaging-23.2[${PYTHON_USEDEP}]
+       >=dev-python/pip-7[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep '
+               dev-python/importlib-resources[${PYTHON_USEDEP}]
+       ' 3.{10..11})
+"
+# 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/passlib-1.6[${PYTHON_USEDEP}]
+               dev-python/setuptools[${PYTHON_USEDEP}]
+               dev-python/webtest[${PYTHON_USEDEP}]
+       )
+"
+
+DOCS=( CHANGES.rst README.md )
+
+PATCHES=(
+       "${FILESDIR}/${PN}-1.5.0-unbundle-bottle.patch"
+)
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       # remove bundled bottle (sic!)
+       rm pypiserver/bottle.py || die
+       distutils-r1_src_prepare
+}
+
+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
+
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest tests
+}

Reply via email to