File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 6
6
HERE = os .path .abspath (os .path .dirname (__file__ ))
7
7
8
8
version_ns = {}
9
- with open (os .path .join (HERE , NAME , '_version.py' )) as f :
9
+
10
+ def _open (subpath ):
11
+ path = os .path .join (HERE , subpath )
12
+ return open (path , encoding = "utf-8" )
13
+
14
+ with _open (NAME + '/_version.py' ) as f :
10
15
exec (f .read (), {}, version_ns )
11
16
12
- with open ( os . path . join ( HERE , "requirements.txt" ) ) as f :
17
+ with _open ( "requirements.txt" ) as f :
13
18
base_reqs = f .read ().strip ().split ("\n " )
14
19
15
- with open ( os . path . join ( HERE , "requirements-dev.txt" ) ) as f :
20
+ with _open ( "requirements-dev.txt" ) as f :
16
21
dev_reqs = f .read ().strip ().split ("\n " )
17
22
18
- with open ( os . path . join ( HERE , "README.md" ) ) as f :
23
+ with _open ( "README.md" ) as f :
19
24
long_description = f .read ()
20
25
21
26
setup (
You can’t perform that action at this time.
0 commit comments