forked from PyCQA/modernize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
39 lines (36 loc) · 1.3 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
from __future__ import absolute_import
import os, re
from setuptools import setup
readme = open(os.path.join(os.path.dirname(__file__), 'README.rst'), 'r').read()
module_file = open(os.path.join(os.path.dirname(__file__), 'libmodernize', '__init__.py'), 'r').read()
version_match = re.search(r"__version__ = ['\"]([^'\"]*)['\"]", module_file, re.M)
if not version_match:
raise Exception("couldn't find version number")
version = version_match.group(1)
setup(
name='modernize',
author='Armin Ronacher',
author_email='[email protected]',
version=version,
url='https://github.com/python-modernize/python-modernize',
packages=['libmodernize', 'libmodernize.fixes'],
py_modules=['modernize'],
description='A hack on top of 2to3 for modernizing code for '
'hybrid codebases.',
long_description=readme,
entry_points={
'console_scripts': [
'python-modernize = libmodernize.main:main'
]
},
zip_safe=False,
tests_require='nose',
test_suite='nose.collector',
classifiers=[
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 3',
]
)