forked from saghul/pythonz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·43 lines (36 loc) · 1.71 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
41
42
43
import os
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def find_packages(toplevel):
return [directory.replace(os.path.sep, '.') for directory, subdirs, files in os.walk(toplevel) if '__init__.py' in files]
def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('pythonz/version.py').read()).group('version')
setup(name='pythonz',
version = get_version(),
description = 'Manage python installations in your system',
long_description = open('README.rst').read(),
author = 'saghul',
author_email = 'saghul@gmail.com',
url = 'https://github.com/saghul/pythonz',
license = 'MIT',
packages = find_packages('pythonz'),
extras_require = {':python_version>="3.5"': ['resumable-urlretrieve']},
include_package_data = True,
entry_points = dict(console_scripts=['pythonz=pythonz:main',
'pythonz_install=pythonz.installer:install_pythonz']),
zip_safe = False,
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Build Tools',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
])