summaryrefslogtreecommitdiff
path: root/dev-python/flit
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-05-31 20:59:14 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-05-31 20:59:14 +0100
commite748ba9741f6540f4675c23e3e37b73e822c13a4 (patch)
tree23dece8beabb3a3d7c6c0273b0eb40b21c62a889 /dev-python/flit
parent908778078736bd36f7a60a2d576d415cb8e000fa (diff)
gentoo resync : 31.05.2021
Diffstat (limited to 'dev-python/flit')
-rw-r--r--dev-python/flit/Manifest5
-rw-r--r--dev-python/flit/files/flit-3.2.0-tests.patch12
-rw-r--r--dev-python/flit/flit-2.1.0.ebuild4
-rw-r--r--dev-python/flit/flit-3.2.0.ebuild48
4 files changed, 66 insertions, 3 deletions
diff --git a/dev-python/flit/Manifest b/dev-python/flit/Manifest
index 386595e36b1d..e949b068feb0 100644
--- a/dev-python/flit/Manifest
+++ b/dev-python/flit/Manifest
@@ -1,4 +1,7 @@
AUX flit-2.1.0-tests.patch 287 BLAKE2B e2deed39a206096f1c4be29678a93fbfc7dabd7cb26bbf8e1e249bc506e5c8550e5531d3252f93d99cc2bad9e317b61d10f1d87e3094f3dd8c1c2d34a85b9049 SHA512 2e628275e3db217c9d5c1a593d3ea6a8539902737da8ed2d98f96f5fc99e0e25da1d427ea153f8279f3de0d7afde14684a7898c7e01e55ebeab4a5572479724b
+AUX flit-3.2.0-tests.patch 445 BLAKE2B 313f975352b67a1dbc5c582ac854dea1625f1819fb1ae147d3fed254dddf69e416d79fb4d787f9deb48d2992d4deea8bfaad681c8a506959a142b8e065a73adb SHA512 737d97e8d9b2c1d1c9a5ef6d6ddd719245a3550092034097899c1917f99604dcd2c5b183f51a7cce8f70c98df9c679adbf3d29068782687018cf085e3cdf931a
DIST flit-2.1.0.tar.gz 106459 BLAKE2B db51d8cc119ae8aa5f8d0ac1655cd29390065567391cbdf06ca7dbb98a79e96a6d8f318273c2f9a58aaf549090a903360701a844ac071d15304a21ea54052a91 SHA512 0fcbfaa1e5e83216a5c98cc87b0a8f2aa17e2c184ec3f09c7dd0dd5e695311be62344ac4f101cb71f87390513496f8c1152a2cd8d7363202f7696ee002f07a55
-EBUILD flit-2.1.0.ebuild 1405 BLAKE2B 4fceadf47ffbab46a393ce4e31cbddc5282344ea7aff580a1c0f7558338b05af097139a3f51cfe53ce028c8a8c9531c0d50e1f88188eabaff90304003bc46039 SHA512 7b4fc9b6809ab934247f113ef01ecc90fbd4af2da44914d0fd4549b858ba3337cfa3e5d4561091d4021cd29b3651a11607e26aab668bd7ba4bf5cc31eefc50af
+DIST flit-3.2.0.tar.gz 115192 BLAKE2B dda4b9f5b56b9868d737516841d7fc49c0e97ef8a71f9f0628112f68c3dadae89a87aef56cebfe8ec3762af5970d206fe462add146d52b3893fb8852fd7f9625 SHA512 1db7c4118fe1d70d1e318db3bc282747d6cc3f3b626ad68420fa056e585caad9ff0a3f230e17c919ea260ddeb6330effc4bbed8b30d11ed7b27e78d9d7af0445
+EBUILD flit-2.1.0.ebuild 1417 BLAKE2B 070718c185f263ebd450cee23d6ea7cb08a9c7c35638e07f2725b66f54cb201836ee2c288153baa9b0723c129fb82daa469f0035731e0cb870f897dc449d8a48 SHA512 61ca338e64c5537a25a1fd326acf55d31eb376c61d16af2403e8a77a7709951f4fb77bc63c9264a8ccaa3a68f8a6bc7be470d126994ee0da06c9c79eac6a1b0b
+EBUILD flit-3.2.0.ebuild 1209 BLAKE2B 651d171f9c9b79aaee9b42486fd4840a78a47b04a1e9059eda2523c59cbe24f3e9870438d68cfbc640f3e5d2e4db3415d4d952eb2d68780f150b4a0254028c41 SHA512 1ec0cfaf96533b12d77e76b9a8486699c7ef03e7f936fad09e1e3062a269bd57f070f9c92bc8d0abace09cdb0732bc2d7a6c2efe6d8dbc8df77ee66f747f7be3
MISC metadata.xml 382 BLAKE2B fc966604e8ce9f4f1d09745dfcebf3f5ca4ef00471079c13aa04c52b31d2cc84512a9509151a7c96a216dd80368c5d00e2802ba0c8bcbbbf386c2bbde3ee82b0 SHA512 de756a5fab204417b2a52b90ca02e9b38cb4a261ee4133e2e986d5cab06fb82172e2f8d2bf8d177841a4dfb24af45e3ec39ebdef7075fd9c6daa436d1c481f1d
diff --git a/dev-python/flit/files/flit-3.2.0-tests.patch b/dev-python/flit/files/flit-3.2.0-tests.patch
new file mode 100644
index 000000000000..7a0a4c5c7a72
--- /dev/null
+++ b/dev-python/flit/files/flit-3.2.0-tests.patch
@@ -0,0 +1,12 @@
+diff --git a/tests/test_config.py b/tests/test_config.py
+index 214cd17..815005b 100644
+--- a/tests/test_config.py
++++ b/tests/test_config.py
+@@ -5,6 +5,7 @@ from flit.config import read_flit_config, ConfigError
+
+ samples_dir = Path(__file__).parent / 'samples'
+
++@pytest.mark.skip("Needs internet access")
+ def test_invalid_classifier():
+ with pytest.raises(ConfigError):
+ read_flit_config(samples_dir / 'invalid_classifier.toml')
diff --git a/dev-python/flit/flit-2.1.0.ebuild b/dev-python/flit/flit-2.1.0.ebuild
index 2b61057002d7..4dd0cc171729 100644
--- a/dev-python/flit/flit-2.1.0.ebuild
+++ b/dev-python/flit/flit-2.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019 Gentoo Authors
+# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -16,7 +16,7 @@ KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="
- dev-python/flit_core[${PYTHON_USEDEP}]
+ <dev-python/flit_core-3.0.0[${PYTHON_USEDEP}]
dev-python/intreehooks[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/requests_download[${PYTHON_USEDEP}]
diff --git a/dev-python/flit/flit-3.2.0.ebuild b/dev-python/flit/flit-3.2.0.ebuild
new file mode 100644
index 000000000000..289ae9807716
--- /dev/null
+++ b/dev-python/flit/flit-3.2.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..10} pypy3 )
+inherit distutils-r1
+
+DESCRIPTION="Simplified packaging of Python modules"
+HOMEPAGE="https://github.com/takluyver/flit https://flit.readthedocs.io/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/flit_core-3.2.0[${PYTHON_USEDEP}]
+ dev-python/intreehooks[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/requests_download[${PYTHON_USEDEP}]
+ dev-python/toml[${PYTHON_USEDEP}]
+"
+BDEPEND="${RDEPEND}
+ sys-apps/grep
+ sys-apps/findutils
+ test? (
+ dev-python/responses[${PYTHON_USEDEP}]
+ dev-python/testpath[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/flit-3.2.0-tests.patch"
+)
+
+distutils_enable_tests pytest
+distutils_enable_sphinx doc \
+ dev-python/sphinxcontrib-github-alt \
+ dev-python/pygments-github-lexers \
+
+python_prepare_all() {
+ printf -- "from setuptools import setup, find_packages\nsetup(name='%s',version='%s',%s)" \
+ "${PN}" "${PV}" "packages=find_packages(exclude=['tests'])" > setup.py || die
+
+ distutils-r1_python_prepare_all
+}