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 44 45 46 47 48 49 50 51 52
|
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
extras = {}
else:
extras = {
'test_suite': 'pkginfo.tests',
'zip_safe': False,
'extras_require': {
'testing': ['nose', 'coverage'],
},
}
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
setup(
name='pkginfo',
version='1.1',
description='Query metadatdata from sdists / bdists / installed packages.',
platforms=['Unix', 'Windows'],
long_description='\n\n'.join([README, CHANGES]),
keywords='distribution sdist installed metadata',
url='http://pypi.python.org/pypi/pkginfo/',
author='Tres Seaver, Agendaless Consulting',
author_email='tseaver@agendaless.com',
license='Python',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: Python Software Foundation License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Software Distribution',
],
entry_points={
'console_scripts': [
['pkginfo = pkginfo.commandline:main']
]
},
packages=['pkginfo', 'pkginfo.tests'],
**extras
)
|