commit: 984bd95a5633a6fb96b3811c1cf4ac40ae0d046d
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 5 16:25:45 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov 5 16:27:43 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=984bd95a
dev-python/qstylizer: Use PBR_VERSION to set version
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/qstylizer/qstylizer-0.2.2.ebuild | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/dev-python/qstylizer/qstylizer-0.2.2.ebuild
b/dev-python/qstylizer/qstylizer-0.2.2.ebuild
index 7ed9d79cd031..e7bb30029705 100644
--- a/dev-python/qstylizer/qstylizer-0.2.2.ebuild
+++ b/dev-python/qstylizer/qstylizer-0.2.2.ebuild
@@ -31,7 +31,6 @@ RDEPEND="
BDEPEND="
dev-python/pbr[${PYTHON_USEDEP}]
- dev-vcs/git
test? (
dev-python/pytest-mock[${PYTHON_USEDEP}]
dev-python/pytest-xdist[${PYTHON_USEDEP}]
@@ -44,23 +43,12 @@ distutils_enable_sphinx doc \
dev-python/sphinxcontrib-autoprogram
python_prepare_all() {
- # Exception: Versioning for this project requires either an sdist
tarball, or access to an
- # upstream git repository. It's also possible that there is a mismatch
between the package
- # name in setup.cfg and the argument given to pbr.version.VersionInfo.
Project name qstylizer
- # was given, but was not able to be found.
- #
- # There are no tarballs on PyPI, so we do this as a workaround
- git init -q || die
- git config user.email "[email protected]" || die
- git config user.name "Larry the Cow" || die
- git add . || die
- git commit -m "init" || die
- git tag -a "${PV}" -m "${PV}" || die
-
# fix test
# https://github.com/blambright/qstylizer/pull/17
sed -e 's:[.]called_once_with:.assert_called_once_with:' \
-i test/unit/test_style.py || die
distutils-r1_python_prepare_all
+
+ export PBR_VERSION=${PV}
}