Skip to content

Commit

Permalink
Updated versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickBaus committed Jul 16, 2021
1 parent d8946ee commit 20d9ba7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion async_gpib/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from _version import __version__
1 change: 1 addition & 0 deletions async_gpib/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.0.2"
14 changes: 13 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
import re
from setuptools import setup

with open('README.md', 'r') as f:
long_description = f.read()

# Read the version information from the verion file
VERSION_FILE="async_gpib/_version.py"
VERSION_REGEX = r'^__version__ = [\'"]([^\'"]+)[\'"]$'
with open(VERSION_FILE, 'r') as f:
version = f.read()
result = re.search(VERSION_REGEX, version, re.M)
if result:
version = result.group(1)
else:
raise RuntimeError('No version string found in file %s.', VERSION_FILE)

setup(
name='async_gpib',
version='1.0.1',
version=version,
author='Patrick Baus',
author_email='patrick.baus@physik.tu-darmstadt.de',
url='https://github.com/PatrickBaus/pyAsyncGpib',
Expand Down

0 comments on commit 20d9ba7

Please sign in to comment.