Skip to content
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

Drop Python 3.7 support #1710

Merged
merged 5 commits into from
Sep 22, 2023
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
7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@ Install ``plone.restapi`` by adding it to your buildout.
Python / Plone Compatibility
============================

plone.restapi 8 requires Python 3 and works with Plone 5.2 and Plone 6.x.
plone.restapi 9 requires Python 3 and works with Plone 5.2 and Plone 6.x.

plone.restapi 8 does not officially support Python 3.6.
plone.restapi 8 entered "maintenance" mode with the release of plone.restapi 9 (September 2023).
It is not planned to backport any features to this version and we highly recommend to upgrade to plone.restapi 9.

Python versions that reached their `end-of-life <https://devguide.python.org/versions/>`_,
including Python 3.6, might still work, but the maintainers do not guarantee this in any way.
including Python 3.6 and Python 3.7 are not supported any longer.

Use plone.restapi 7 if you are running Python 2.7 or Plone versions below 5.2.

Expand Down
4 changes: 4 additions & 0 deletions docs/source/upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ It explains the steps that are needed to upgrade to the latest version.

## Upgrading to `plone.restapi` 9.x

`plone.restapi` 9.x dropped support for Python 3.7, which reached its `end-of-life <https://devguide.python.org/versions/>`_ in July 2023.

Upgrading to `plone.restapi` 9.x might require minor changes to your code base that are described in this section. If you are using a recent version of Volto, there are no changes necessary.

### Link Integrity

When calling the @linkintegrity endpoint in `plone.restapi` before 9.0.0, a content object with no link integrity breaches would return just an empty list in the response body:
Expand Down
3 changes: 1 addition & 2 deletions news/1.bugfix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Fix stored XSS (Cross Site Scripting) for SVG image in user portrait.
Done by forcing a download instead of displaying inline.
Normal accessing via an image tag is not affected and is safe.
See `security advisory <https://github.com/plone/plone.restapi/security/advisories/GHSA-hc5c-r8m5-2gfh>`_.
[maurits]
See `security advisory <https://github.com/plone/plone.restapi/security/advisories/GHSA-hc5c-r8m5-2gfh>`_. @maurits
3 changes: 1 addition & 2 deletions news/1570.bugfix
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Use incoming request to produce location for @tus-upload
[instification]
Use incoming request to produce location for `@tus-upload`. @instification
1 change: 1 addition & 0 deletions news/1709.breaking
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Drop support for Python 3.7. Set python_requires to >= 3.8 @tisto
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def read(filename):
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -83,7 +82,7 @@ def read(filename):
packages=find_packages("src"),
package_dir={"": "src"},
namespace_packages=["plone"],
python_requires=">=3.6",
python_requires=">=3.8",
include_package_data=True,
zip_safe=False,
install_requires=[
Expand Down