File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 12
12
from os import path
13
13
14
14
15
+
16
+ HERE = path .abspath (path .dirname (__file__ ))
17
+
18
+ # Get the long description from the relevant file
19
+ with open (path .join (HERE , 'README.md' ), encoding = 'utf-8' ) as f :
20
+ long_description = f .read ()
21
+
22
+
15
23
def get_version ():
16
24
version = '0.1.0'
17
- with open ('metsrw/ __init__.py' ) as fi :
25
+ with open (path . join ( HERE , 'metsrw' , ' __init__.py') ) as fi :
18
26
for line in fi :
19
27
if line .startswith ('__version__' ):
20
28
parts = line .strip ().split ()
@@ -25,13 +33,6 @@ def get_version():
25
33
return version
26
34
27
35
28
- here = path .abspath (path .dirname (__file__ ))
29
-
30
- # Get the long description from the relevant file
31
- with open (path .join (here , 'README.md' ), encoding = 'utf-8' ) as f :
32
- long_description = f .read ()
33
-
34
-
35
36
setup (
36
37
name = 'metsrw' ,
37
38
version = get_version (),
You can’t perform that action at this time.
0 commit comments