9
9
@license: MIT
10
10
'''
11
11
12
- # Copyright (c) 2015, Le Tuan Anh <[email protected] >
13
- #
14
- # Permission is hereby granted, free of charge, to any person obtaining a copy
15
- # of this software and associated documentation files (the "Software"), to deal
16
- # in the Software without restriction, including without limitation the rights
17
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
- # copies of the Software, and to permit persons to whom the Software is
19
- # furnished to do so, subject to the following conditions:
20
- #
21
- # The above copyright notice and this permission notice shall be included in
22
- # all copies or substantial portions of the Software.
23
- #
24
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
- # THE SOFTWARE.
31
-
32
12
########################################################################
33
13
34
14
import io
35
15
import os
36
- from setuptools import setup , find_packages
37
- from setuptools .command .test import test as TestCommand
38
-
39
- from coolisf import __author__ , __email__
40
- from coolisf import __version__ , __license__
41
- from coolisf import __url__ , __description__
42
- # from coolisf import __credits__, __maintainer__
43
- # from coolisf import __copyright__, __status__
44
-
45
- ########################################################################
16
+ from setuptools import setup
46
17
47
18
48
19
here = os .path .abspath (os .path .dirname (__file__ ))
@@ -58,18 +29,20 @@ def read(*filenames, **kwargs):
58
29
return sep .join (buf )
59
30
60
31
61
- long_description = read ('README.md' , 'CHANGES.md' )
32
+ long_description = read ('README.md' )
33
+ pkg_info = {}
34
+ exec (read ('coolisf/__version__.py' ), pkg_info )
62
35
63
36
setup (
64
37
name = 'coolisf' ,
65
- version = __version__ ,
66
- url = __url__ ,
67
- license = __license__ ,
68
- author = __author__ ,
38
+ version = pkg_info [ " __version__" ] ,
39
+ url = pkg_info [ " __url__" ] ,
40
+ license = pkg_info [ " __license__" ] ,
41
+ author = pkg_info [ " __author__" ] ,
69
42
tests_require = [],
70
43
install_requires = [],
71
- author_email = __email__ ,
72
- description = __description__ ,
44
+ author_email = pkg_info [ " __email__" ] ,
45
+ description = pkg_info [ " __description__" ] ,
73
46
long_description = long_description ,
74
47
packages = ['coolisf' ,
75
48
'coolisf/dao' ,
@@ -80,11 +53,15 @@ def read(*filenames, **kwargs):
80
53
platforms = 'any' ,
81
54
test_suite = 'test' ,
82
55
classifiers = ['Programming Language :: Python' ,
83
- 'Development Status :: 0.1 - Alpha' ,
56
+ 'Development Status :: ' + pkg_info [ "__status__" ] ,
84
57
'Natural Language :: English' ,
58
+ 'Natural Language :: Japanese' ,
59
+ 'Natural Language :: Indonesian' ,
60
+ 'Natural Language :: Chinese (Simplified)' ,
61
+ 'Natural Language :: Chinese (Traditional)' ,
85
62
'Environment :: Console Application' ,
86
63
'Intended Audience :: Developers' ,
87
- 'License :: OSI Approved :: MIT License' ,
64
+ 'License :: OSI Approved :: ' + pkg_info [ "__license__" ] ,
88
65
'Operating System :: OS Independent' ,
89
66
'Topic :: Software Development :: Libraries :: Python Modules' ]
90
67
)
0 commit comments