This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
/
setup.py
66 lines (54 loc) · 1.66 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
# -*- coding: utf-8 -*-
#
# setup.py
# cjktools
#
"""
Package setup file for the cjktools package.
"""
import sys
from setuptools import setup
from scripts.load_as_rst import convert
try:
from setuptools_scm import get_version
VERSION = get_version()
with open('cjktools/__version__.py', 'w') as f:
f.write('# Autogenerated by setup.py\n')
f.write('version = "%s"\n' % VERSION)
except ImportError:
pass
LONG_DESCRIPTION = convert('README.md', strict=False)
# For Python <= 3.4, we need to pull in the backport of enum
REQUIRES = ['six']
if sys.version_info < (3, 4, 0):
REQUIRES.append('enum34')
# For Python <= 3.3 we need to pull in the backport of ExitStack
if sys.version_info < (3, 3, 0):
REQUIRES.append('contextlib2>=0.5.3')
# Set up the classifiers
CLASSIFIERS = [
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
]
setup(
name='cjktools',
description="A library for basic CJK processing and lexicography.",
long_description=LONG_DESCRIPTION,
classifiers=CLASSIFIERS,
url="https://github.com/larsyencken/cjktools",
author="Lars Yencken",
author_email="lars@yencken.org",
license="BSD",
install_requires=REQUIRES,
package_dir={'cjktools': 'cjktools'},
packages=['cjktools', 'cjktools.resources'],
test_suite='cjktools.tests',
setup_requires=['setuptools_scm'],
tests_require=['nose-parameterized'],
use_scm_version=True,
)