This repository has been archived by the owner on May 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
70 lines (61 loc) · 1.95 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from setuptools import setup
from os import walk
import os
import sys
from 版本 import 版本
# tar無法度下傷長的檔案名,所以愛用zip
# python setup.py sdist --format=zip upload
try:
# travis攏先`python setup.py sdist`才閣上傳
sys.argv.insert(sys.argv.index('sdist') + 1, '--format=zip')
except ValueError:
# 無upload
pass
def 讀(檔名):
return open(os.path.join(os.path.dirname(__file__), 檔名)).read()
def 揣工具包(頭):
'setup的find_packages無支援windows中文檔案'
工具包 = []
for 目錄, _, 檔案 in walk(頭):
if '__init__.py' in 檔案:
工具包.append(目錄.replace('/', '.'))
return 工具包
github網址 = 'https://github.com/sih4sing5hong5/tai5-uan5_gian5-gi2_hok8-bu7'
setup(
name='tai5-uan5_gian5-gi2_hok8-bu7',
packages=揣工具包('臺灣言語服務'),
version=版本,
description='臺灣語言服務',
long_description=讀('README.md'),
long_description_content_type="text/markdown",
author='薛丞宏',
author_email='[email protected]',
url='https://xn--v0qr21b.xn--kpry57d/',
download_url=github網址,
keywords=[
'語料庫', '語言合成', '機器翻譯',
'Taiwan', 'Natural Language', 'Corpus',
'Text to Speech', 'TTS',
'Machine Translateion',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Operating System :: Unix',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Text Processing',
'Topic :: Text Processing :: Linguistic',
],
install_requires=[
'django',
'tai5-uan5_gian5-gi2_tsu1-liau7-khoo3>=3.1.21',
'pyro4',
'gunicorn',
'django-ranged-response',
'jsonfield',
'celery',
'librosa',
],
)