-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from coqui-ai/list-handling-fixes
List handling fix for STT + improved error message for paths + SemVer versioning
- Loading branch information
Showing
4 changed files
with
54 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,63 +6,65 @@ | |
import setuptools.command.develop | ||
from setuptools import find_packages, setup | ||
|
||
version = '0.0.6.6' | ||
version = "0.0.7" | ||
cwd = os.path.dirname(os.path.abspath(__file__)) | ||
|
||
|
||
class build_py(setuptools.command.build_py.build_py): # pylint: disable=too-many-ancestors | ||
def run(self): | ||
self.create_version_file() | ||
setuptools.command.build_py.build_py.run(self) | ||
|
||
@staticmethod | ||
def create_version_file(): | ||
print('-- Building version ' + version) | ||
version_path = os.path.join(cwd, 'version.py') | ||
with open(version_path, 'w') as f: | ||
print("-- Building version " + version) | ||
version_path = os.path.join(cwd, "version.py") | ||
with open(version_path, "w") as f: | ||
f.write("__version__ = '{}'\n".format(version)) | ||
|
||
|
||
class develop(setuptools.command.develop.develop): | ||
def run(self): | ||
build_py.create_version_file() | ||
setuptools.command.develop.develop.run(self) | ||
|
||
|
||
requirements = open(os.path.join(cwd, 'requirements.txt'), 'r').readlines() | ||
with open('README.md', "r", encoding="utf-8") as readme_file: | ||
requirements = open(os.path.join(cwd, "requirements.txt"), "r").readlines() | ||
with open("README.md", "r", encoding="utf-8") as readme_file: | ||
README = readme_file.read() | ||
|
||
|
||
setup( | ||
name='coqpit', | ||
name="coqpit", | ||
version=version, | ||
url='https://github.com/erogol/coqpit', | ||
author='Eren Gölge', | ||
author_email='[email protected]', | ||
description='Simple (maybe too simple), light-weight config management through python data-classes.', | ||
url="https://github.com/erogol/coqpit", | ||
author="Eren Gölge", | ||
author_email="[email protected]", | ||
description="Simple (maybe too simple), light-weight config management through python data-classes.", | ||
long_description=README, | ||
long_description_content_type="text/markdown", | ||
license='', | ||
license="", | ||
include_package_data=True, | ||
packages=find_packages(include=['coqpit*']), | ||
packages=find_packages(include=["coqpit*"]), | ||
project_urls={ | ||
'Tracker': 'https://github.com/coqui-ai/coqpit/issues', | ||
'Repository': 'https://github.com/coqui-ai/coqpit', | ||
'Discussions': 'https://github.com/coqui-ai/coqpit/discussions', | ||
"Tracker": "https://github.com/coqui-ai/coqpit/issues", | ||
"Repository": "https://github.com/coqui-ai/coqpit", | ||
"Discussions": "https://github.com/coqui-ai/coqpit/discussions", | ||
}, | ||
cmdclass={ | ||
'build_py': build_py, | ||
'develop': develop, | ||
"build_py": build_py, | ||
"develop": develop, | ||
}, | ||
install_requires=requirements, | ||
python_requires='>=3.6.0', | ||
python_requires=">=3.6.0", | ||
classifiers=[ | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
'Development Status :: 4 - Beta', | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: MacOS", | ||
"Operating System :: Microsoft :: Windows" | ||
"Operating System :: Microsoft :: Windows", | ||
], | ||
zip_safe=False | ||
zip_safe=False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters