-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (35 loc) · 1.07 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
# setup.py
import sys, re, pathlib
from setuptools import setup, find_packages
# --- Get the text of README.md
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
# --- Get the version number
reVersion = re.compile(r'^__version__\s*=\s*\"(.*)\"')
version = ''
with open('./pinyin_utils.py', encoding='utf8') as fh:
for line in fh:
result = reVersion.match(line)
if result:
version = result.group(1)
break
setup(
name = "pinyin_utils",
version = version,
author = "John Deighan",
author_email = "john.deighan@gmail.com",
description = "Utilities for handling Chinese pinyin",
long_description = README,
long_description_content_type = "text/markdown",
license="MIT",
url = "https://github.com/johndeighan/pinyin_utils",
packages = find_packages(),
py_modules = ['pinyin_utils','translate','tabdb','englisWords','ChineseDB'],
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
# --- All 3rd party packages required:
python_requires = '>=3.6',
)