Skip to content
This repository was archived by the owner on Jan 28, 2020. It is now read-only.

Commit c071a53

Browse files
committed
some bug fixes
1 parent 7e76214 commit c071a53

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

setup.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55

66
NAME = "yandex_speech"
7-
with open(os.path.join(NAME, "VERSION.txt")) as f:
7+
VERSION_PATH = os.path.join(os.path.dirname(__file__), NAME, "VERSION.txt")
8+
with open(VERSION_PATH) as f:
89
version = f.read().strip()
910

1011
setup(
@@ -14,18 +15,19 @@
1415
url="https://github.com/art1415926535/Yandex_speech",
1516
version=version,
1617
packages=[NAME],
18+
package_data={NAME: ["VERSION.txt"]},
1719
install_requires=["requests"],
1820
license="MIT",
1921
author="Artem Fedotov",
2022
author_email="art1415926535@ya.ru",
2123
classifiers=[
2224
"Development Status :: 3 - Alpha",
23-
"Programming Language :: Python :: 2.7"
24-
"Programming Language :: Python :: 3.3"
25-
"Programming Language :: Python :: 3.4"
26-
"Programming Language :: Python :: 3.5"
27-
"Programming Language :: Python :: 3.6"
28-
"Programming Language :: Python :: Implementation :: PyPy"
25+
"Programming Language :: Python :: 2.7",
26+
"Programming Language :: Python :: 3.3",
27+
"Programming Language :: Python :: 3.4",
28+
"Programming Language :: Python :: 3.5",
29+
"Programming Language :: Python :: 3.6",
30+
"Programming Language :: Python :: Implementation :: PyPy",
2931
"Intended Audience :: Developers",
3032
"License :: OSI Approved :: MIT License",
3133
"Natural Language :: Russian",

yandex_speech/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3
1+
0.3.2

yandex_speech/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
from .tts import TTS
44

55

6-
with open(os.path.join("yandex_speech", "VERSION.txt")) as f:
6+
VERSION_PATH = os.path.join(os.path.dirname(__file__), "VERSION.txt")
7+
with open(VERSION_PATH) as f:
78
__version__ = f.read().strip()

0 commit comments

Comments
 (0)