| 1 |
#!/usr/bin/python3 |
| 2 |
|
| 3 |
#----------------------------------------------------------------------------- |
| 4 |
# Copyright (c) 2013, The BiPy Development Team. |
| 5 |
# |
| 6 |
# Distributed under the terms of the Modified BSD License. |
| 7 |
# |
| 8 |
# The full license is in the file COPYING.txt, distributed with this software. |
| 9 |
#----------------------------------------------------------------------------- |
| 10 |
|
| 11 |
__author__ = "Greg Caporaso" |
| 12 |
__copyright__ = "Copyright 2013, The pyqi project" |
| 13 |
__credits__ = ["Rob Knight", "Greg Caporaso", "Jai Ram Rideout", |
| 14 |
"Daniel McDonald", "Doug Wendel"] |
| 15 |
__license__ = "BSD" |
| 16 |
__version__ = '0.3.2' |
| 17 |
__maintainer__ = "Greg Caporaso" |
| 18 |
__email__ = "[email protected]" |
| 19 |
|
| 20 |
from setuptools import setup |
| 21 |
from glob import glob |
| 22 |
import sys |
| 23 |
|
| 24 |
# classes/classifiers code adapted from Celery: |
| 25 |
# https://github.com/celery/celery/blob/master/setup.py |
| 26 |
# |
| 27 |
# PyPI's list of classifiers can be found here: |
| 28 |
# https://pypi.python.org/pypi?%3Aaction=list_classifiers |
| 29 |
classes = """ |
| 30 |
Development Status :: 4 - Beta |
| 31 |
License :: OSI Approved :: BSD License |
| 32 |
Topic :: Software Development :: Libraries :: Application Frameworks |
| 33 |
Topic :: Software Development :: User Interfaces |
| 34 |
Programming Language :: Python |
| 35 |
Programming Language :: Python :: 3.9 |
| 36 |
Programming Language :: Python :: 3.10 |
| 37 |
Programming Language :: Python :: 3.11 |
| 38 |
Programming Language :: Python :: 3.12 |
| 39 |
Programming Language :: Python :: 3.13 |
| 40 |
Programming Language :: Python :: Implementation :: CPython |
| 41 |
Operating System :: OS Independent |
| 42 |
Operating System :: POSIX |
| 43 |
Operating System :: MacOS :: MacOS X |
| 44 |
""" |
| 45 |
classifiers = [s.strip() for s in classes.split('\n') if s] |
| 46 |
|
| 47 |
# Verify Python version |
| 48 |
ver = '.'.join(map(str, [sys.version_info.major, sys.version_info.minor])) |
| 49 |
if ver not in ['3.9', '3.10', '3.11', '3.12', '3.13']: |
| 50 |
sys.stderr.write("Only Python 3.9 to 3.13 are supported.") |
| 51 |
sys.exit(1) |
| 52 |
|
| 53 |
long_description = """pyqi (canonically pronounced pie chee) is a Python framework designed to support wrapping general commands in multiple types of interfaces, including at the command line, HTML, and API levels.""" |
| 54 |
|
| 55 |
setup(name='pyqi', |
| 56 |
version=__version__, |
| 57 |
license=__license__, |
| 58 |
description='pyqi: expose your interface', |
| 59 |
long_description=long_description, |
| 60 |
author=__maintainer__, |
| 61 |
author_email=__email__, |
| 62 |
maintainer=__maintainer__, |
| 63 |
maintainer_email=__email__, |
| 64 |
url='http://bipy.github.io/pyqi', |
| 65 |
packages=['pyqi', |
| 66 |
'pyqi/commands', |
| 67 |
'pyqi/core', |
| 68 |
'pyqi/core/interfaces', |
| 69 |
'pyqi/core/interfaces/optparse', |
| 70 |
'pyqi/core/interfaces/html', |
| 71 |
'pyqi/interfaces', |
| 72 |
'pyqi/interfaces/optparse', |
| 73 |
'pyqi/interfaces/html', |
| 74 |
'pyqi/interfaces/optparse/config', |
| 75 |
'pyqi/interfaces/html/config', |
| 76 |
], |
| 77 |
scripts=glob('scripts/pyqi*'), |
| 78 |
install_requires=[], |
| 79 |
extras_require={'test':["nose >= 0.10.1", |
| 80 |
"tox >= 1.6.1"], |
| 81 |
'doc':"Sphinx >= 0.3" |
| 82 |
}, |
| 83 |
classifiers=classifiers |
| 84 |
) |