pipdeptree/setup.py

53 lines
1.4 KiB
Python
Raw Normal View History

2014-06-12 19:57:36 +00:00
import sys
import re
import ast
2014-06-12 19:57:36 +00:00
2014-02-05 16:15:36 +00:00
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('pipdeptree.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
2014-02-05 16:15:36 +00:00
with open('./README.rst') as f:
long_desc = f.read()
2014-06-12 19:57:36 +00:00
install_requires = ["pip >= 1.4.1"]
if sys.version_info < (2, 7):
install_requires.append('argparse')
2014-02-05 16:15:36 +00:00
2014-02-05 16:15:36 +00:00
setup(
name='pipdeptree',
version=version,
2014-02-05 16:15:36 +00:00
author='Vineet Naik',
author_email='naikvin@gmail.com',
url='https://github.com/naiquevin/pipdeptree',
license='MIT License',
description='Command line utility to show dependency tree of packages',
long_description=long_desc,
2014-06-12 19:57:36 +00:00
install_requires=install_requires,
2014-02-05 16:15:36 +00:00
py_modules=['pipdeptree'],
entry_points={
'console_scripts': [
'pipdeptree = pipdeptree:main'
]
2015-04-09 12:55:57 +00:00
},
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4'
]
2014-02-05 16:15:36 +00:00
)