-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove support for end-of-life Python versions
- Loading branch information
1 parent
ac5e46d
commit fedaa71
Showing
28 changed files
with
68 additions
and
135 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
import sys | ||
|
||
|
||
if sys.version_info[0] == 2: # pragma: no cover # py2 | ||
from functools32 import wraps # noqa: F401 | ||
else: # pragma: no cover # py3+ | ||
from functools import wraps # noqa: F401 | ||
|
||
|
||
try: | ||
from collections.abc import Mapping # noqa: F401 # pragma: no cover # py3.3+ | ||
except ImportError: # pragma: no cover | ||
from collections import Mapping # noqa: F401 # py3.2 or older | ||
|
||
|
||
if sys.version_info[0:2] <= (3, 4): # pragma: no cover # py3.4 or older | ||
from inspect import getargspec as get_function_spec # noqa: F401 | ||
else: # pragma: no cover # py3.5+ | ||
from inspect import getfullargspec as get_function_spec # noqa: F401 | ||
# TODO: remove this module entirely. | ||
from collections.abc import Mapping # noqa: F401 | ||
from functools import wraps # noqa: F401 | ||
from inspect import getfullargspec as get_function_spec # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
import typing | ||
|
||
from mypy_extensions import Arg | ||
|
||
try: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
import logging | ||
|
||
import typing | ||
|
||
from six import iteritems | ||
from six import PY2 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
import copy | ||
|
||
import typing | ||
|
||
from six import iteritems | ||
from six import string_types | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
# Unit test dependencies | ||
# TODO: avoids an issue with hanging forever in tests (CORESERV-12009). | ||
jsonschema<4 | ||
mock | ||
mypy-extensions; python_version>='3.5' | ||
mypy; python_version>='3.5' | ||
mypy | ||
mypy-extensions | ||
pre-commit | ||
pytest | ||
pytest-benchmark[histogram] | ||
pytest-cov | ||
pytest<4.7 # need support for Python 2.7, see https://docs.pytest.org/en/latest/py27-py34-deprecation.html | ||
types-mock | ||
types-python-dateutil | ||
types-pytz | ||
types-pyyaml | ||
types-requests | ||
types-simplejson | ||
types-six |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,28 +3,11 @@ | |
# Copyright (c) 2013, Digium, Inc. | ||
# Copyright (c) 2014-2015, Yelp, Inc. | ||
import os | ||
import sys | ||
|
||
from setuptools import setup | ||
|
||
import bravado_core | ||
|
||
install_requires = [ | ||
"jsonref", | ||
"jsonschema[format]>=2.5.1", | ||
"python-dateutil", | ||
"pyyaml", | ||
'requests', | ||
"simplejson", | ||
"six", | ||
"swagger-spec-validator>=2.0.1", | ||
"pytz", | ||
"msgpack>=0.5.2", | ||
] | ||
|
||
# pyrsistent dropped python2 support in 0.17.0 | ||
if sys.version_info < (3, 5): | ||
install_requires.append('pyrsistent<0.17') | ||
|
||
setup( | ||
name="bravado-core", | ||
|
@@ -37,6 +20,7 @@ | |
"README.rst", | ||
), | ||
).read(), | ||
long_description_content_type='text/markdown', | ||
author="Digium, Inc. and Yelp, Inc.", | ||
author_email="[email protected]", | ||
url="https://github.com/Yelp/bravado-core", | ||
|
@@ -47,20 +31,26 @@ | |
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
], | ||
install_requires=[ | ||
"jsonref", | ||
"jsonschema[format]>=2.5.1", | ||
"python-dateutil", | ||
"pyyaml", | ||
'requests', | ||
"simplejson", | ||
"six", | ||
"swagger-spec-validator>=2.0.1", | ||
"pytz", | ||
"msgpack>=0.5.2", | ||
], | ||
install_requires=install_requires, | ||
package_data={ | ||
'bravado_core': ['py.typed'], | ||
}, | ||
# https://mypy.readthedocs.io/en/latest/installed_packages.html | ||
zip_safe=False, | ||
extras_require={ | ||
':python_version<"3.5"': ['typing'], | ||
':python_version<"3.4"': ['enum34'], | ||
':python_version<"3.2"': ['functools32'], | ||
}, | ||
python_requires='!=3.0,!=3.1,!=3.2,!=3.3,!=3.4,!=3.5.0', | ||
python_requires='>=3.8', | ||
) |
Oops, something went wrong.