commit:     11895c3e8d1e8d42d8019a795f3bfb41edb39c52
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Jan 25 16:06:09 2023 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Jan 26 20:52:04 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=11895c3e

dev-python/pure-protobuf: add 2.2.1, drop 2.1.1

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-python/pure-protobuf/Manifest                             |  2 +-
 ...{pure-protobuf-2.1.1.ebuild => pure-protobuf-2.2.1.ebuild} | 11 +++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/dev-python/pure-protobuf/Manifest 
b/dev-python/pure-protobuf/Manifest
index e54eac54f..7baa36ca0 100644
--- a/dev-python/pure-protobuf/Manifest
+++ b/dev-python/pure-protobuf/Manifest
@@ -1,2 +1,2 @@
-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
+DIST pure_protobuf-2.2.1.tar.gz 16458 BLAKE2B 
6a461f0f1b56341ee4288a5990d713cafcdce6788111c7b011e72e742cf5060fb4c535cf9c197183a72e886eab7b72bf5790105c578467e3f6f3d1fa9d063b0f
 SHA512 
fa142061fc33e2a646e5392d22f0f80012b3c08f3133b00e0aa661762cd693702eb64a3e4db09e270e5d8de751d7a15167295d242c6db73f8153bb4a49fbdc10

diff --git a/dev-python/pure-protobuf/pure-protobuf-2.1.1.ebuild 
b/dev-python/pure-protobuf/pure-protobuf-2.2.1.ebuild
similarity index 65%
rename from dev-python/pure-protobuf/pure-protobuf-2.1.1.ebuild
rename to dev-python/pure-protobuf/pure-protobuf-2.2.1.ebuild
index f03068519..ba4403245 100644
--- a/dev-python/pure-protobuf/pure-protobuf-2.1.1.ebuild
+++ b/dev-python/pure-protobuf/pure-protobuf-2.2.1.ebuild
@@ -4,15 +4,18 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{8..11} )
-DISTUTILS_USE_PEP517=setuptools
+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}

Reply via email to