File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
from setuptools import setup , find_packages
3
3
from setuptools .command .develop import develop
4
4
from setuptools .command .install import install
5
+ from pip .req import parse_requirements
5
6
6
7
cwd = os .path .dirname (os .path .abspath (__file__ ))
7
- requirements = open ( os . path . join ( cwd , " requirements.txt" ), "r" ). readlines ( )
8
-
8
+ install_reqs = parse_requirements ( ' requirements.txt' )
9
+ reqs = [ str ( ir . req ) for ir in install_reqs ]
9
10
class PostInstallCommand (install ):
10
11
"""Post-installation for installation mode."""
11
12
def run (self ):
@@ -21,10 +22,10 @@ def run(self):
21
22
22
23
setup (
23
24
name = 'melotts' ,
24
- version = '0.1.1 ' ,
25
+ version = '0.1.2 ' ,
25
26
packages = find_packages (),
26
27
include_package_data = True ,
27
- install_requires = requirements ,
28
+ install_requires = reqs ,
28
29
package_data = {
29
30
'' : ['*.txt' , 'cmudict_*' ],
30
31
},
You can’t perform that action at this time.
0 commit comments