Skip to content

Commit 48b169a

Browse files
committed
Shorten license text and other minor changes
1 parent e985664 commit 48b169a

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

setup.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import sys
1+
import io
22
from setuptools import setup
33
from setuptools.command.test import test as TestCommand
4+
import sys
45

56
import wordsegment
67

@@ -14,11 +15,8 @@ def run_tests(self):
1415
errno = tox.cmdline(self.test_args)
1516
sys.exit(errno)
1617

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()
2220

2321
setup(
2422
name='wordsegment',
@@ -28,18 +26,18 @@ def run_tests(self):
2826
author='Grant Jenks',
2927
author_email='[email protected]',
3028
url='http://www.grantjenks.com/docs/wordsegment/',
31-
license=license,
3229
py_modules=['wordsegment'],
3330
packages=['wordsegment_data'],
3431
package_data={'wordsegment_data': ['*.txt']},
3532
tests_require=['tox'],
3633
cmdclass={'test': Tox},
37-
platforms='any',
34+
license='Apache 2.0',
35+
install_requires=[],
3836
classifiers=[
3937
'Development Status :: 4 - Beta',
4038
'Intended Audience :: Developers',
41-
'Natural Language :: English',
4239
'License :: OSI Approved :: Apache Software License',
40+
'Natural Language :: English',
4341
'Programming Language :: Python',
4442
'Programming Language :: Python :: 2',
4543
'Programming Language :: Python :: 2.6',

0 commit comments

Comments
 (0)