2011-12-15 11:13:03 +00:00
|
|
|
#!/usr/bin/env python
|
2017-04-24 19:53:34 +00:00
|
|
|
try:
|
|
|
|
|
from setuptools import setup
|
|
|
|
|
except ImportError:
|
|
|
|
|
from distutils.core import setup
|
2012-05-01 10:42:19 +00:00
|
|
|
|
2024-05-22 11:59:53 +00:00
|
|
|
# Note: The minimum Python version requirement is set on the basis of
|
|
|
|
|
# "if it's not tested, it's broken".
|
|
|
|
|
# Specifically, if a Python version is no longer available for testing
|
|
|
|
|
# in CI, then the minimum supported Python version will be increased.
|
|
|
|
|
# That way there's no risk of a release that breaks older Python versions.
|
|
|
|
|
|
2011-12-13 12:41:17 +00:00
|
|
|
setup(
|
|
|
|
|
name='contextlib2',
|
2011-12-16 13:37:53 +00:00
|
|
|
version=open('VERSION.txt').read().strip(),
|
2024-05-22 11:59:53 +00:00
|
|
|
python_requires='>=3.7',
|
2021-06-26 10:43:11 +00:00
|
|
|
packages=['contextlib2'],
|
|
|
|
|
include_package_data=True,
|
2011-12-13 12:41:17 +00:00
|
|
|
license='PSF License',
|
|
|
|
|
description='Backports and enhancements for the contextlib module',
|
2016-01-13 12:43:32 +00:00
|
|
|
long_description=open('README.rst').read(),
|
2024-05-22 11:13:35 +00:00
|
|
|
author='Alyssa Coghlan',
|
2011-12-13 12:41:17 +00:00
|
|
|
author_email='ncoghlan@gmail.com',
|
2024-06-19 12:13:48 +00:00
|
|
|
url='https://github.com/jazzband/contextlib2',
|
|
|
|
|
project_urls= {
|
|
|
|
|
'Documentation': 'https://contextlib2.readthedocs.org',
|
|
|
|
|
'Source': 'https://github.com/jazzband/contextlib2.git',
|
|
|
|
|
'Issue Tracker': 'https://github.com/jazzband/contextlib2.git',
|
|
|
|
|
}
|
2016-01-12 11:08:23 +00:00
|
|
|
classifiers=[
|
|
|
|
|
'Development Status :: 5 - Production/Stable',
|
2021-06-26 10:43:11 +00:00
|
|
|
'License :: OSI Approved :: Apache Software License',
|
2016-01-12 11:08:23 +00:00
|
|
|
'License :: OSI Approved :: Python Software Foundation License',
|
|
|
|
|
# These are the Python versions tested, it may work on others
|
2021-06-26 05:38:48 +00:00
|
|
|
# It definitely won't work on versions without native async support
|
2016-01-12 11:08:23 +00:00
|
|
|
'Programming Language :: Python :: 3',
|
2019-03-26 22:36:14 +00:00
|
|
|
'Programming Language :: Python :: 3.7',
|
2021-06-26 05:38:48 +00:00
|
|
|
'Programming Language :: Python :: 3.8',
|
|
|
|
|
'Programming Language :: Python :: 3.9',
|
|
|
|
|
'Programming Language :: Python :: 3.10',
|
2024-05-22 11:59:53 +00:00
|
|
|
'Programming Language :: Python :: 3.11',
|
|
|
|
|
'Programming Language :: Python :: 3.12',
|
2016-01-12 11:08:23 +00:00
|
|
|
],
|
|
|
|
|
|
2016-05-02 06:54:31 +00:00
|
|
|
)
|