File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 30
30
"Operating System :: OS Independent" ,
31
31
"License :: OSI Approved :: Apache Software License"
32
32
]
33
+ SOURCE_FOLDER = 'python_setup'
34
+ CONSOLE_SCRIPTS = 'print_hello = python_setup.tools.cli:main'
35
+
36
+
33
37
# ---------------------- #
34
38
35
39
@@ -72,7 +76,7 @@ def run(self):
72
76
73
77
74
78
def get_version ():
75
- init_py_path = os .path .join (os .path .abspath (os .path .dirname (__file__ )), "python_setup" , "__init__.py" )
79
+ init_py_path = os .path .join (os .path .abspath (os .path .dirname (__file__ )), SOURCE_FOLDER , "__init__.py" )
76
80
init_py = open (init_py_path , "r" ).readlines ()
77
81
version_line = [l .strip () for l in init_py if l .startswith ("__version__" )][0 ]
78
82
version = version_line .split ("=" )[- 1 ].strip ().strip ("'\" " )
@@ -97,7 +101,7 @@ def get_version():
97
101
python_requires = PYTHON_REQUIRES ,
98
102
entry_points = {
99
103
'console_scripts' : [
100
- 'print_hello = python_setup.tools.cli:main'
104
+ CONSOLE_SCRIPTS
101
105
]
102
106
},
103
107
cmdclass = {
You can’t perform that action at this time.
0 commit comments