Skip to content

Commit

Permalink
SETUP: Changed version to be PEP440 compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Meinhard authored and Praveen M committed Oct 8, 2024
1 parent 6e91686 commit 5287948
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
version_py = os.path.join(os.path.dirname(__file__), 'src', 'SnmpLibrary',
'version.py')
try:
version = subprocess.check_output(
['git', 'describe', '--tags', '--always', '--dirty'],
stderr=subprocess.STDOUT).rstrip().decode('ascii')
version = '0.2.1'
# subprocess.check_output(
# ['git', 'describe', '--tags', '--abbrev=0'],
# stderr=subprocess.STDOUT).rstrip().decode('ascii')
with open(version_py, 'w') as f:
f.write('# This file was autogenerated by setup.py\n')
f.write('__version__ = \'%s\'\n' % (version,))
Expand All @@ -22,7 +23,7 @@
exec(f.read(), d)
version = d['__version__']
except IOError:
version = 'unknown'
version = 'unknown' + e

with open('README.rst') as f:
readme = f.read()
Expand Down

0 comments on commit 5287948

Please sign in to comment.