-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b1a6e0
commit ec17452
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="tinkerforge_async/_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='tinkerforge_async', | ||
version='1.1.4', | ||
version=version, | ||
author='Patrick Baus', | ||
author_email='[email protected]', | ||
url='https://github.com/PatrickBaus/TinkerforgeAsync', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from _version import __version__ |