commit: 19c4e883b08aa41ab1b5f0a0a7142ddf135665b6
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Fri Dec 23 22:22:40 2022 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sun Dec 25 02:19:21 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=19c4e883
dev-python/pure-protobuf: add 2.2.0, drop 2.1.0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/pure-protobuf/Manifest | 2 +-
...ure-protobuf-2.1.0.ebuild => pure-protobuf-2.2.0.ebuild} | 13 ++++++++++---
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/dev-python/pure-protobuf/Manifest
b/dev-python/pure-protobuf/Manifest
index 0dc3ee71b..e54eac54f 100644
--- a/dev-python/pure-protobuf/Manifest
+++ b/dev-python/pure-protobuf/Manifest
@@ -1,2 +1,2 @@
-DIST pure-protobuf-2.1.0.tar.gz 15566 BLAKE2B
9e07c5dc70c928bfb20504c58f60cdea51dbc45a41134cf95056829b1aec3b5f1f4e684d101332c5764349fda863aa11301c6eab99eb4c34b74a43161640ba8b
SHA512
7c76eaf866a7cdddc886a583883f4aec502c4edb1952902b8a6a259b10d0577adc94874e1e1dfc0378690791872248d878e0448925ab68468bd71a194dc100fc
DIST pure-protobuf-2.1.1.tar.gz 16883 BLAKE2B
29c5011536ac034703ce796d38a9a35c7523784b9887eef4c548c842a19dd4fa9aae0d27260b3ff076e3f3ee2e3113351d0d9b47ad7f8c538e9af624756a3469
SHA512
57af254ecd43fb672c885b5cd5b26b025e3aeecdd7ef0f9811fc9501211df0e17b41293df59dc1b30b59c394f26caf879d211ac53502255fa79faa3a582535cf
+DIST pure_protobuf-2.2.0.tar.gz 16165 BLAKE2B
0845d173bf18453907a767324b6d61a0ef4765870ff81464bb81cdd0afdf65c34222a32119968ec7bf203d40a07fba91c8727fd50ddfbc3c04185300fab9acb2
SHA512
d503ad9c5473a172e3f55a233f2047c78e55d24bd0cfa68293c5343daf892416bbe85720fe43ae6beb9850078bb4a9d793daf1780a6ea5adf004732b457f5df0
diff --git a/dev-python/pure-protobuf/pure-protobuf-2.1.0.ebuild
b/dev-python/pure-protobuf/pure-protobuf-2.2.0.ebuild
similarity index 60%
rename from dev-python/pure-protobuf/pure-protobuf-2.1.0.ebuild
rename to dev-python/pure-protobuf/pure-protobuf-2.2.0.ebuild
index a40af5b53..ba4403245 100644
--- a/dev-python/pure-protobuf/pure-protobuf-2.1.0.ebuild
+++ b/dev-python/pure-protobuf/pure-protobuf-2.2.0.ebuild
@@ -3,16 +3,19 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
-DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} )
+DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1
+MY_PN="${PN/-/_}"
+MY_P="${MY_PN}-${PV}"
DESCRIPTION="Python implementation of Protocol Buffers data types with
dataclasses support"
HOMEPAGE="
https://github.com/eigenein/protobuf
https://pypi.org/project/pure-protobuf/
"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
LICENSE="MIT"
SLOT="0"
@@ -21,4 +24,8 @@ KEYWORDS="~amd64"
# ModuleNotFoundError
RESTRICT="test"
+BDEPEND="dev-python/hatch-vcs[${PYTHON_USEDEP}]"
+
distutils_enable_tests pytest
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}