forked from roedoejet/g2p
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (37 loc) · 1.26 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
''' Setup for g2p
'''
from os import path
import datetime as dt
from setuptools import setup, find_packages
build_no = dt.datetime.today().strftime('%Y%m%d')
# Ugly hack to read the current version number without importing g2p:
# (works by )
with open("g2p/_version.py", "r", encoding="utf8") as version_file:
namespace = {}
exec(version_file.read(), namespace)
VERSION = namespace['VERSION'] + "." + build_no
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf8') as f:
long_description = f.read()
with open(path.join(this_directory, 'requirements.txt'), encoding='utf8') as f:
REQS = f.read().splitlines()
setup(
name='g2p',
python_requires='>=3.6',
version=VERSION,
author="Aidan Pine",
author_email="[email protected]",
license="MIT",
url="https://github.com/roedoejet/g2p",
description='Module for creating context-aware, rule-based G2P mappings that preserve indices',
long_description=long_description,
long_description_content_type='text/markdown',
packages=find_packages(),
include_package_data=True,
install_requires=REQS,
entry_points={
'console_scripts': [
'g2p = g2p.cli:cli'
]},
zip_safe=False
)