Skip to content

Commit

Permalink
Merge pull request #28 from fakerybakery/patch-6
Browse files Browse the repository at this point in the history
Fix pip package
  • Loading branch information
Zengyi-Qin authored Feb 29, 2024
2 parents 69983af + b1204f0 commit b633f24
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
from pip.req import parse_requirements

cwd = os.path.dirname(os.path.abspath(__file__))
requirements = open(os.path.join(cwd, "requirements.txt"), "r").readlines()

install_reqs = parse_requirements('requirements.txt')
reqs = [str(ir.req) for ir in install_reqs]
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
Expand All @@ -21,10 +22,10 @@ def run(self):

setup(
name='melotts',
version='0.1.1',
version='0.1.2',
packages=find_packages(),
include_package_data=True,
install_requires=requirements,
install_requires=reqs,
package_data={
'': ['*.txt', 'cmudict_*'],
},
Expand Down

0 comments on commit b633f24

Please sign in to comment.