Browse Source

use __version__ as version name

Guénaël Muller 6 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
 from hapic.hapic import Hapic
2
 from hapic.hapic import Hapic
3
 from hapic.data import HapicData
3
 from hapic.data import HapicData
4
 
4
 
5
+__version__ = '0.41'
5
 _hapic_default = Hapic()
6
 _hapic_default = Hapic()
6
 
7
 
7
 with_api_doc = _hapic_default.with_api_doc
8
 with_api_doc = _hapic_default.with_api_doc

+ 2 - 1
setup.py View File

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