1 |
commit: 728daace33307d1d9d8bd345626cc852183e7c54 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 07:58:43 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 08:26:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=728daace |
7 |
|
8 |
dev-python/pypiserver: Bump to 1.5.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pypiserver/Manifest | 1 + |
13 |
dev-python/pypiserver/pypiserver-1.5.0.ebuild | 57 +++++++++++++++++++++++++++ |
14 |
2 files changed, 58 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pypiserver/Manifest b/dev-python/pypiserver/Manifest |
17 |
index bb98457d43ed..97fc380b6622 100644 |
18 |
--- a/dev-python/pypiserver/Manifest |
19 |
+++ b/dev-python/pypiserver/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pypiserver-1.4.2.tar.gz 511019 BLAKE2B fe9a41c35d601ee20f2cfe0773ce341b8c8fe387a2b825d1e6d669d5f358846b436158beb8a1222fa33cf1841cad5aceacc0f5063f899445ad15ca9eb5b8efd7 SHA512 8597a6a7e83cb3f5ead3418ee91167e1764c123b244c05397fa892c8ebe84b58569f27ce85cd9849d6a41d20342de21cf9cc46e00b233d9d94d0540470e1c49b |
22 |
+DIST pypiserver-1.5.0.gh.tar.gz 149963 BLAKE2B bfc0760982f97e93357702342eb5b1776f72c43e66742a8741ee2ba3109839006e99e49b65e04380097500c400e09bce77b74fc5f9072c7670349817ae3a73cb SHA512 c93e724a3aa6ec265d483c2989129292a05132d3d52db6d9b9c1429610ee23b56e106c9389bdfaad142f34071ee258bdd4291668c11f8bb412df043bf4555611 |
23 |
|
24 |
diff --git a/dev-python/pypiserver/pypiserver-1.5.0.ebuild b/dev-python/pypiserver/pypiserver-1.5.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..e7d898a095cf |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pypiserver/pypiserver-1.5.0.ebuild |
29 |
@@ -0,0 +1,57 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Minimal PyPI server" |
41 |
+HOMEPAGE=" |
42 |
+ https://github.com/pypiserver/pypiserver/ |
43 |
+ https://pypi.org/project/pypiserver/ |
44 |
+" |
45 |
+SRC_URI=" |
46 |
+ https://github.com/pypiserver/pypiserver/archive/v${PV}.tar.gz |
47 |
+ -> ${P}.gh.tar.gz |
48 |
+" |
49 |
+ |
50 |
+LICENSE="ZLIB MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ dev-python/pip[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/wheel-0.25.0[${PYTHON_USEDEP}] |
57 |
+" |
58 |
+# NB: many test deps are optional/specific to tests we skip |
59 |
+BDEPEND=" |
60 |
+ dev-python/setuptools-git[${PYTHON_USEDEP}] |
61 |
+ test? ( |
62 |
+ >=dev-python/passlib-1.6[${PYTHON_USEDEP}] |
63 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
64 |
+ dev-python/twine[${PYTHON_USEDEP}] |
65 |
+ dev-python/webtest[${PYTHON_USEDEP}] |
66 |
+ ) |
67 |
+" |
68 |
+ |
69 |
+DOCS=( README.rst ) |
70 |
+ |
71 |
+distutils_enable_tests pytest |
72 |
+ |
73 |
+python_test() { |
74 |
+ local EPYTEST_DESELECT=( |
75 |
+ # Internet |
76 |
+ tests/test_server.py::test_hash_algos |
77 |
+ tests/test_server.py::test_pipInstall_openOk |
78 |
+ tests/test_server.py::test_pipInstall_authedOk |
79 |
+ # TODO |
80 |
+ tests/test_app.py::test_root_count |
81 |
+ tests/test_server.py::test_pip_install_open_succeeds |
82 |
+ tests/test_server.py::test_pip_install_authed_succeeds |
83 |
+ ) |
84 |
+ |
85 |
+ epytest tests |
86 |
+} |