9
setup.py
9
setup.py
@@ -2,10 +2,11 @@ import os
|
||||
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):
|
||||
@@ -21,10 +22,10 @@ class PostDevelopCommand(develop):
|
||||
|
||||
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_*'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user