diff options
| author | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-08-04 14:33:19 +0900 |
|---|---|---|
| committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-08-05 19:18:11 +0900 |
| commit | bb44bf7c42a1797fc9a6d22c5be7ba3eff4b8744 (patch) | |
| tree | 42d717ecab809d50aedee38f6b460ce431dce1aa | |
| parent | ee0a7001bf42c4fee00b480865bede265bffaf22 (diff) | |
| download | pygerrit-bb44bf7c42a1797fc9a6d22c5be7ba3eff4b8744.tar.gz | |
Don't hard code version in setup.py
We're currently only using the version number in the setup
script, but in future we might need it in other places too.
Define the version number in the module itself and import
it in setup.
Change-Id: Idbf246d3a9777f6de710cb01fa05f8fbf031d192
| -rw-r--r-- | pygerrit/__init__.py | 3 | ||||
| -rwxr-xr-x | setup.py | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/pygerrit/__init__.py b/pygerrit/__init__.py index 5fa98be..b268fb3 100644 --- a/pygerrit/__init__.py +++ b/pygerrit/__init__.py @@ -24,6 +24,9 @@ THE SOFTWARE. """ +__numversion__ = (0, 0, 7) +__version__ = '.'.join([str(num) for num in __numversion__]) + def from_json(json_data, key): """ Helper method to extract values from JSON data. @@ -26,10 +26,12 @@ THE SOFTWARE. from setuptools import setup +from pygerrit import __version__ + setup( name="pygerrit", description="Client library for interacting with Gerrit", - version="0.0.7", + version=__version__, license="The MIT License", author="David Pursehouse", author_email="david.pursehouse@sonymobile.com", |
