Skip to content

Commit b633f24

Browse files
authored
Merge pull request #28 from fakerybakery/patch-6
Fix pip package
2 parents 69983af + b1204f0 commit b633f24

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
from setuptools import setup, find_packages
33
from setuptools.command.develop import develop
44
from setuptools.command.install import install
5+
from pip.req import parse_requirements
56

67
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]
910
class PostInstallCommand(install):
1011
"""Post-installation for installation mode."""
1112
def run(self):
@@ -21,10 +22,10 @@ def run(self):
2122

2223
setup(
2324
name='melotts',
24-
version='0.1.1',
25+
version='0.1.2',
2526
packages=find_packages(),
2627
include_package_data=True,
27-
install_requires=requirements,
28+
install_requires=reqs,
2829
package_data={
2930
'': ['*.txt', 'cmudict_*'],
3031
},

0 commit comments

Comments
 (0)