summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-04-21 16:41:37 +0200
committerMichał Górny <mgorny@gentoo.org>2022-04-21 17:19:36 +0200
commitac8c44f2dbfc48b852bd4e79040b6da0782080b5 (patch)
treed661e3dad705289cdaafe347a0461e174d509e56
parentdev-python/setuptools_scm: Bump to 6.4.2 (diff)
downloadgentoo-ac8c44f2dbfc48b852bd4e79040b6da0782080b5.tar.gz
gentoo-ac8c44f2dbfc48b852bd4e79040b6da0782080b5.tar.bz2
gentoo-ac8c44f2dbfc48b852bd4e79040b6da0782080b5.zip
dev-python/flit_scm: New package, v1.5.0
New NIH build system, needed for exceptiongroup that is needed for dev-python/cattrs. Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--dev-python/flit_scm/Manifest1
-rw-r--r--dev-python/flit_scm/flit_scm-1.5.0.ebuild37
-rw-r--r--dev-python/flit_scm/metadata.xml10
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/flit_scm/Manifest b/dev-python/flit_scm/Manifest
new file mode 100644
index 000000000000..b0394997d589
--- /dev/null
+++ b/dev-python/flit_scm/Manifest
@@ -0,0 +1 @@
+DIST flit_scm-1.5.0.tar.bz2 3230 BLAKE2B f29f7c0cc341fe12d621d0a8f91b5d983f8f7e4259155a7119b07d8e159a12755ae60e007d1ace9054385104aa2a572454653ef9f92a3043777b1e631dfd5f20 SHA512 1b8d4a653dffb4685ad91843147ba6dc693b6d1d4f21e8766782d04edc1ec992e3ad4a3ce82d25e01a089816648f86228db75024e39a7a277b6fae9f8fc4567a
diff --git a/dev-python/flit_scm/flit_scm-1.5.0.ebuild b/dev-python/flit_scm/flit_scm-1.5.0.ebuild
new file mode 100644
index 000000000000..3a77f0846d78
--- /dev/null
+++ b/dev-python/flit_scm/flit_scm-1.5.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=standalone
+PYTHON_COMPAT=( pypy3 python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="A PEP 518 build backend combining flit with setuptools_scm"
+HOMEPAGE="
+ https://gitlab.com/WillDaSilva/flit_scm/
+ https://pypi.org/project/flit-scm/
+"
+SRC_URI="
+ https://gitlab.com/WillDaSilva/flit_scm/-/archive/${PV}/${P}.tar.bz2
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ >=dev-python/flit_core-3.5.0[${PYTHON_USEDEP}]
+ >=dev-python/setuptools_scm-6.4.2[${PYTHON_USEDEP}]
+ <dev-python/tomli-3[${PYTHON_USEDEP}]
+ >=dev-python/tomli-2[${PYTHON_USEDEP}]
+"
+
+src_prepare() {
+ # unpin deps
+ sed -i -e 's:==[0-9.]*::' pyproject.toml || die
+ distutils-r1_src_prepare
+}
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
diff --git a/dev-python/flit_scm/metadata.xml b/dev-python/flit_scm/metadata.xml
new file mode 100644
index 000000000000..8b225bb29829
--- /dev/null
+++ b/dev-python/flit_scm/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">flit-scm</remote-id>
+ </upstream>
+</pkgmetadata>