diff options
author | Joerg Steffens <joerg.steffens@bareos.com> | 2020-04-17 19:48:22 +0300 |
---|---|---|
committer | Joerg Steffens <joerg.steffens@bareos.com> | 2020-05-15 11:15:56 +0300 |
commit | 7a116dc0e5b4dc9ff2fb85ed8fb3724f5c339980 (patch) | |
tree | 5e09273214ce3004ff3310470f6a61a09f3d492e /python-bareos | |
parent | 80bb33162956428bf5aa0cd39f131487434a4baa (diff) |
python-bareos: publish to PyPI.org by using Github Actions
Diffstat (limited to 'python-bareos')
-rw-r--r-- | python-bareos/setup.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python-bareos/setup.py b/python-bareos/setup.py index 824b6668d..0d954c44d 100644 --- a/python-bareos/setup.py +++ b/python-bareos/setup.py @@ -11,7 +11,9 @@ def get_version(): with open( os.path.join(base_dir, "bareos", "VERSION.txt") ) as version_file: - __version__ = version_file.read().strip() + # read version + # and adapt it according to https://www.python.org/dev/peps/pep-0440/. + __version__ = version_file.read().strip().replace('~pre','.dev') except IOError: # Fallback version. # First protocol implemented |