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 53 54 55 56 57
|
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': ['pytest', 'pytest-cov', 'wheel'],
},
}
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.12.1.2',
description='Query metadata from sdists / bdists / installed packages.',
platforms=['Unix', 'Windows'],
long_description='\n\n'.join([README, CHANGES]),
long_description_content_type='text/x-rst',
keywords='distribution sdist installed metadata',
url='https://code.launchpad.net/~tseaver/pkginfo/trunk',
author='Tres Seaver, Agendaless Consulting',
author_email='tseaver@agendaless.com',
license='MIT',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Software Distribution',
],
python_requires='>=3.8',
entry_points={
'console_scripts': [
'pkginfo = pkginfo.commandline:main',
]
},
packages=['pkginfo', 'pkginfo.tests'],
package_data={'pkginfo': ['py.typed', '*.pyi']},
**extras
)
|