Browse Source

use __version__ as version name

Guénaël Muller 5 years ago
parent
commit
4eedbc952b
2 changed files with 3 additions and 1 deletions
  1. 1 0
      hapic/__init__.py
  2. 2 1
      setup.py

+ 1 - 0
hapic/__init__.py View File

@@ -2,6 +2,7 @@
2 2
 from hapic.hapic import Hapic
3 3
 from hapic.data import HapicData
4 4
 
5
+__version__ = '0.41'
5 6
 _hapic_default = Hapic()
6 7
 
7 8
 with_api_doc = _hapic_default.with_api_doc

+ 2 - 1
setup.py View File

@@ -4,6 +4,7 @@ from setuptools import setup
4 4
 from setuptools import find_packages
5 5
 from os import path
6 6
 import sys
7
+import hapic
7 8
 
8 9
 here = path.abspath(path.dirname(__file__))
9 10
 
@@ -35,7 +36,7 @@ setup(
35 36
     # Versions should comply with PEP440.  For a discussion on single-sourcing
36 37
     # the version across setup.py and the project code, see
37 38
     # https://packaging.python.org/en/latest/single_source_version.html
38
-    version='0.41',
39
+    version=hapic.__version__,
39 40
 
40 41
     description='HTTP api input/output manager',
41 42
     # long_description=long_description,