1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
Description: Fix version
Author: Thomas Goirand <zigo@debian.org>
Forwarded: not-needed
Last-Update: 2024-09-13
--- a/testrepository/__init__.py
+++ b/testrepository/__init__.py
@@ -22,22 +22,4 @@
The tests package contains tests and test specific support code.
"""
-try:
- # If setuptools_scm is installed (e.g. in a development environment with
- # an editable install), then use it to determine the version dynamically.
- from setuptools_scm import get_version
-
- # This will fail with LookupError if the package is not installed in
- # editable mode or if Git is not installed.
- version = get_version(root="..", relative_to=__file__)
- __version__ = tuple(version.split("."))
-except (ImportError, LookupError):
- # As a fallback, use the version that is hard-coded in the file.
- try:
- from ._version import __version__, version
- except ModuleNotFoundError:
- # The user is probably trying to run this without having installed
- # the package, so complain.
- raise RuntimeError(
- "testrepository is not correctly installed. Please install it with pip."
- )
+__version__ = (0, 0, 21)
--- a/setup.py
+++ b/setup.py
@@ -2,4 +2,4 @@
import setuptools
-setuptools.setup()
+setuptools.setup(version='0.0.21')
|