|
@@ -5,6 +5,16 @@ from setuptools import find_packages
|
5
|
5
|
from os import path
|
6
|
6
|
import sys
|
7
|
7
|
|
|
8
|
+# INFO - G.M - 29-05-2018 - exec info.py file in order to obtain version
|
|
9
|
+# without any dependencies trouble.
|
|
10
|
+# see https://milkr.io/kfei/5-common-patterns-to-version-your-Python-package
|
|
11
|
+# section "Exec/execfile" for other example and "Import from the package" for
|
|
12
|
+# information about import strategy problem.
|
|
13
|
+infos_dict = {}
|
|
14
|
+with open("hapic/infos.py") as fp:
|
|
15
|
+ exec(fp.read(), infos_dict)
|
|
16
|
+version = infos_dict['__version__']
|
|
17
|
+
|
8
|
18
|
here = path.abspath(path.dirname(__file__))
|
9
|
19
|
|
10
|
20
|
install_requires = [
|
|
@@ -35,7 +45,7 @@ setup(
|
35
|
45
|
# Versions should comply with PEP440. For a discussion on single-sourcing
|
36
|
46
|
# the version across setup.py and the project code, see
|
37
|
47
|
# https://packaging.python.org/en/latest/single_source_version.html
|
38
|
|
- version='0.41',
|
|
48
|
+ version=version,
|
39
|
49
|
|
40
|
50
|
description='HTTP api input/output manager',
|
41
|
51
|
# long_description=long_description,
|