mirror of
https://github.com/jazzband/contextlib2.git
synced 2026-03-17 06:00:23 +00:00
* Add Python 3.11 and 3.12 to CI (adjusting affected test cases) * Add Python 3.11 and 3.12 to package metadata * Drop Python 3.6 from package metadata Note: typechecking is still disabled in CI for now
40 lines
1.6 KiB
Python
Executable file
40 lines
1.6 KiB
Python
Executable file
#!/usr/bin/env python
|
|
try:
|
|
from setuptools import setup
|
|
except ImportError:
|
|
from distutils.core import setup
|
|
|
|
# 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.
|
|
|
|
setup(
|
|
name='contextlib2',
|
|
version=open('VERSION.txt').read().strip(),
|
|
python_requires='>=3.7',
|
|
packages=['contextlib2'],
|
|
include_package_data=True,
|
|
license='PSF License',
|
|
description='Backports and enhancements for the contextlib module',
|
|
long_description=open('README.rst').read(),
|
|
author='Alyssa Coghlan',
|
|
author_email='ncoghlan@gmail.com',
|
|
url='http://contextlib2.readthedocs.org',
|
|
classifiers=[
|
|
'Development Status :: 5 - Production/Stable',
|
|
'License :: OSI Approved :: Apache Software License',
|
|
'License :: OSI Approved :: Python Software Foundation License',
|
|
# These are the Python versions tested, it may work on others
|
|
# It definitely won't work on versions without native async support
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.7',
|
|
'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',
|
|
],
|
|
|
|
)
|