-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
64 lines (57 loc) · 2.33 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
#!/usr/bin/env python
# coding: utf-8
import os
import re
from setuptools import setup
_VERSION_RE = re.compile(r"__version__\s*?=\s*?'(.*?)'", flags=re.M)
def get_version():
path = os.path.join(
os.path.dirname(os.path.abspath(__file__)), 'pangu.py')
with open(path) as f:
return _VERSION_RE.findall(f.read())[-1]
setup(
name='pangu',
version=get_version(),
description='Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).',
long_description=open('README.rst').read() + '\n' + open('HISTORY.rst').read(),
keywords='pangu text-spacing spacing text typesetting readability chinese japanese korean obsessive-compulsive-disorder ocd paranoia',
author='Vinta Chen',
author_email='[email protected]',
url='https://github.com/vinta/pangu.py',
license='MIT',
include_package_data=True,
py_modules=['pangu'],
test_suite='test_pangu',
entry_points={
'console_scripts': ['pangu=pangu:cli'],
},
zip_safe=False,
classifiers=(
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Natural Language :: Chinese (Traditional)',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: Japanese',
'Natural Language :: Korean',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Education',
'Topic :: Software Development :: Internationalization',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing',
'Topic :: Text Processing :: General',
'Topic :: Text Processing :: Linguistic',
'Topic :: Utilities',
),
)