Fix pip package
Please also make a new GH release to push to PyPI
This commit is contained in:
5
setup.py
5
setup.py
@@ -2,9 +2,10 @@ import os
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
from setuptools.command.develop import develop
|
from setuptools.command.develop import develop
|
||||||
from setuptools.command.install import install
|
from setuptools.command.install import install
|
||||||
|
from pip.req import parse_requirements
|
||||||
|
|
||||||
cwd = os.path.dirname(os.path.abspath(__file__))
|
cwd = os.path.dirname(os.path.abspath(__file__))
|
||||||
requirements = open(os.path.join(cwd, "requirements.txt"), "r").readlines()
|
requirements = parse_requirements('requirements.txt')
|
||||||
|
|
||||||
class PostInstallCommand(install):
|
class PostInstallCommand(install):
|
||||||
"""Post-installation for installation mode."""
|
"""Post-installation for installation mode."""
|
||||||
@@ -21,7 +22,7 @@ class PostDevelopCommand(develop):
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='melotts',
|
name='melotts',
|
||||||
version='0.1.1',
|
version='0.1.2',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=requirements,
|
install_requires=requirements,
|
||||||
|
|||||||
Reference in New Issue
Block a user