8000 Add Python 3.8 to the test matrix by jacebrowning · Pull Request #110 · flask-api/flask-api · GitHub
[go: up one dir, main page]

Skip to content

Add Python 3.8 to the test matrix #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ dist: xenial

language: python
python:
- 3.5
- 3.6
- 3.7
- 3.8

cache:
pip: true
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Markdown = "<3"
[dev-packages]

# Linters
flake8 = "~=2.1"
flake8 = "~=3.7.9"

# Testing
nose = "*"
Expand Down
225 changes: 132 additions & 93 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Flask API is a drop-in replacement for Flask that provides an implementation of

Requirements:

* Python 3.5+
* Python 3.6+
* Flask 1.1.+

Install using `pip`:
Expand Down
2 changes: 1 addition & 1 deletion docs/about/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Version 2.0 (unreleased)

* Dropped support for Python `<3.5`.
* Dropped support for Python `<3.6`.
* Dropped support for Flask `<1.1`.

## Version 1.1
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Flask API is a drop-in replacement for Flask that provides an implementation of

Requirements:

* Python 3.5+
* Python 3.6+
* Flask 1.1+

The following packages are optional:
Expand Down
3 changes: 1 addition & 2 deletions flask_api/mediatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def __hash__(self):
def __eq__(self, other):
# Compare two MediaType instances, ignoring parameter ordering.
return (
self.full_type == other.full_type and
self.params == other.params
self.full_type == other.full_type and self.params == other.params
)


Expand Down
4 changes: 2 additions & 2 deletions flask_api/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ def _parse(self):
try:
parser, media_type = negotiator.select_parser(parsers)
ret = parser.parse(self.stream, media_type, **options)
except:
except Exception as e:
# Ensure that accessing `request.data` again does not reraise
# the exception, so that eg exceptions can handle properly.
self._set_empty_data()
raise
raise e from None

if parser.handles_file_uploads:
assert isinstance(ret, tuple) and len(ret) == 2, 'Expected a two-tuple of (data, files)'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def get_package_data(package):
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Internet :: WWW/HTTP',
]
)
0