commit:     bef4ad3b0453ce385a02b2c8bb4717e39aa6e8bc
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  7 14:34:15 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb  7 14:34:15 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bef4ad3b

dev-python/aesara: Use SETUPTOOLS_SCM_PRETEND_VERSION

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/aesara/aesara-2.8.10.ebuild | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/dev-python/aesara/aesara-2.8.10.ebuild 
b/dev-python/aesara/aesara-2.8.10.ebuild
index 4198b85c58d7..1379f57e7cec 100644
--- a/dev-python/aesara/aesara-2.8.10.ebuild
+++ b/dev-python/aesara/aesara-2.8.10.ebuild
@@ -36,7 +36,6 @@ RDEPEND="
        dev-python/typing-extensions[${PYTHON_USEDEP}]
 "
 BDEPEND="
-       dev-vcs/git
        dev-python/setuptools_scm[${PYTHON_USEDEP}]
        test? (
                dev-python/pytest-xdist[${PYTHON_USEDEP}]
@@ -54,14 +53,9 @@ distutils_enable_tests pytest
 src_prepare() {
        # do not claim "bin" package (sic!)
        rm bin/__init__.py || die
-       # setuptools_scm wants to read PV from git
-       git init -q || die
-       git config --global user.email "[email protected]" || die
-       git config --global user.name "Larry the Cow" || die
-       git add . || die
-       git commit -qm "init" || die
-       git tag -a "rel-${PV}" -m "rel-${PV}" || die
        distutils-r1_src_prepare
+
+       export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
 }
 
 python_test() {

Reply via email to