|
|
@ -27,7 +27,7 @@ from setuptools.command.install import install
|
|
|
|
|
|
|
|
|
|
|
|
HERE = Path(os.path.abspath(os.path.dirname(__file__)))
|
|
|
|
HERE = Path(os.path.abspath(os.path.dirname(__file__)))
|
|
|
|
|
|
|
|
|
|
|
|
PADDLESPEECH_VERSION = '0.1.1'
|
|
|
|
VERSION = '0.1.1'
|
|
|
|
|
|
|
|
|
|
|
|
requirements = {
|
|
|
|
requirements = {
|
|
|
|
"install": [
|
|
|
|
"install": [
|
|
|
@ -84,13 +84,12 @@ requirements = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def write_version_py(filename='paddlespeech/version.py'):
|
|
|
|
def write_version_py(filename='paddlespeech/__init__.py'):
|
|
|
|
ver_str = """# THIS FILE IS GENERATED FROM PADDLESPEECH SETUP.PY
|
|
|
|
import paddlespeech
|
|
|
|
#
|
|
|
|
if hasattr(paddlespeech, "__version__") and paddlespeech.__version__ == VERSION:
|
|
|
|
full_version = '%(version)s'
|
|
|
|
return
|
|
|
|
"""
|
|
|
|
with open(filename, "a") as f:
|
|
|
|
with open(filename, 'w') as f:
|
|
|
|
f.write(f"\n__version__ = '{VERSION}'\n")
|
|
|
|
f.write(ver_str % {'version': PADDLESPEECH_VERSION})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@contextlib.contextmanager
|
|
|
|
@contextlib.contextmanager
|
|
|
@ -185,7 +184,7 @@ write_version_py()
|
|
|
|
setup_info = dict(
|
|
|
|
setup_info = dict(
|
|
|
|
# Metadata
|
|
|
|
# Metadata
|
|
|
|
name='paddlespeech',
|
|
|
|
name='paddlespeech',
|
|
|
|
version=PADDLESPEECH_VERSION,
|
|
|
|
version=VERSION,
|
|
|
|
author='PaddlePaddle Speech and Language Team',
|
|
|
|
author='PaddlePaddle Speech and Language Team',
|
|
|
|
author_email='paddlesl@baidu.com',
|
|
|
|
author_email='paddlesl@baidu.com',
|
|
|
|
url='https://github.com/PaddlePaddle/PaddleSpeech',
|
|
|
|
url='https://github.com/PaddlePaddle/PaddleSpeech',
|
|
|
|