Fix pip package

Please also make a new GH release to push to PyPI
This commit is contained in:
mrfakename
2024-02-28 21:18:49 -08:00
committed by GitHub
parent 69983af7b1
commit f713b0075c

View File

@@ -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,