Skip to content

Commit a4db49d

Browse files
committed
prepare for v0.0.2 release
1 parent 0b6fecb commit a4db49d

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
README.rst
12
pretrained_models
23
deepvoice3_pytorch/version.py
34
checkpoints*

setup.py

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
import setuptools.command.build_py
66
import os
77
import subprocess
8+
from os.path import exists
89

9-
version = '0.0.1'
10+
version = '0.0.2'
1011

1112
# Adapted from https://github.com/pytorch/pytorch
1213
cwd = os.path.dirname(os.path.abspath(__file__))
@@ -43,9 +44,31 @@ def run(self):
4344
setuptools.command.develop.develop.run(self)
4445

4546

47+
def create_readme_rst():
48+
global cwd
49+
try:
50+
subprocess.check_call(
51+
["pandoc", "--from=markdown", "--to=rst", "--output=README.rst",
52+
"README.md"], cwd=cwd)
53+
print("Generated README.rst from README.md using pandoc.")
54+
except subprocess.CalledProcessError:
55+
pass
56+
except OSError:
57+
pass
58+
59+
60+
if not exists('README.rst'):
61+
create_readme_rst()
62+
63+
if exists('README.rst'):
64+
README = open('README.rst', 'rb').read().decode("utf-8")
65+
else:
66+
README = ''
67+
4668
setup(name='deepvoice3_pytorch',
4769
version=version,
48-
description='PyTorch implementation of Tacotron speech synthesis model.',
70+
description='PyTorch implementation of convolutional networks-based text-to-speech synthesis models.',
71+
long_description=README,
4972
packages=find_packages(),
5073
cmdclass={
5174
'build_py': build_py,

0 commit comments

Comments
 (0)