-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
40 lines (37 loc) · 1.46 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
# -*- coding: utf-8 -*-
from setuptools import setup
import sys
import unittest
import jcconv
from jcconv import __version__, __license__, __author__
if __name__ == '__main__':
from jcconv import jcconv_test
# run module test
loader = unittest.TestLoader()
result = unittest.TestResult()
suite = loader.loadTestsFromModule(jcconv_test)
suite.run(result)
if not result.wasSuccessful():
print "unit tests have failed!"
print "aborted to make a source distribution"
sys.exit(1)
# build distribution package
setup(
packages = ('jcconv',),
name = 'jcconv',
version = __version__,
py_modules = ['jcconv', 'jcconv_test'],
description = 'jcconv "JapaneseCharacterCONVerter", interconvert hiragana, katakana, halfwidth kana',
long_description = jcconv.__doc__,
author = __author__,
author_email = '[email protected]',
url = 'http://github.com/taichino/jcconv',
keywords = 'japanese converter, hiragana, katakana, half-width kana',
license = __license__,
classifiers = ["Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules"]
)