1
- import sys
1
+ import io
2
2
from setuptools import setup
3
3
from setuptools .command .test import test as TestCommand
4
+ import sys
4
5
5
6
import wordsegment
6
7
@@ -14,11 +15,8 @@ def run_tests(self):
14
15
errno = tox .cmdline (self .test_args )
15
16
sys .exit (errno )
16
17
17
- with open ('README.rst' ) as fptr :
18
- readme = fptr .read ()
19
-
20
- with open ('LICENSE' ) as fptr :
21
- license = fptr .read ()
18
+ with io .open ('README.rst' , encoding = 'UTF-8' ) as reader :
19
+ readme = reader .read ()
22
20
23
21
setup (
24
22
name = 'wordsegment' ,
@@ -28,18 +26,18 @@ def run_tests(self):
28
26
author = 'Grant Jenks' ,
29
27
30
28
url = 'http://www.grantjenks.com/docs/wordsegment/' ,
31
- license = license ,
32
29
py_modules = ['wordsegment' ],
33
30
packages = ['wordsegment_data' ],
34
31
package_data = {'wordsegment_data' : ['*.txt' ]},
35
32
tests_require = ['tox' ],
36
33
cmdclass = {'test' : Tox },
37
- platforms = 'any' ,
34
+ license = 'Apache 2.0' ,
35
+ install_requires = [],
38
36
classifiers = [
39
37
'Development Status :: 4 - Beta' ,
40
38
'Intended Audience :: Developers' ,
41
- 'Natural Language :: English' ,
42
39
'License :: OSI Approved :: Apache Software License' ,
40
+ 'Natural Language :: English' ,
43
41
'Programming Language :: Python' ,
44
42
'Programming Language :: Python :: 2' ,
45
43
'Programming Language :: Python :: 2.6' ,
0 commit comments