Skip to content

Commit

Permalink
Clarify Plone/Python compatibility. (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Apr 7, 2023
1 parent f185561 commit 082d7fa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
13 changes: 13 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ Install ``plone.restapi`` by adding it to your buildout.
…and then running ``bin/buildout``.


Python / Plone Compatibility
============================

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

plone.restapi 8 does not officially support Python 3.6.

Python versions that reached there End-of-Live (EOL), like Python 3.6 might still work.
Though, we do not guarantee this in any way.

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


Contribute
==========

Expand Down
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

version = "8.35.4.dev0"

assert sys.version_info >= (
3,
6,
0,
), "plone.restapi 8 requires Python 3.7.0+. Please downgrade to plone.restapi 7 for Python 2 and Plone 4.3/5.1."
if sys.version_info.major == 2:
raise ValueError(
"plone.restapi 8 requires Python 3. "
"Please downgrade to plone.restapi 7 for Python 2 and Plone 4.3/5.1."
)


def read(filename):
Expand Down Expand Up @@ -84,7 +84,7 @@ def read(filename):
packages=find_packages("src"),
package_dir={"": "src"},
namespace_packages=["plone"],
python_requires=">=3.7.0",
python_requires=">=3.6",
include_package_data=True,
zip_safe=False,
install_requires=[
Expand Down

0 comments on commit 082d7fa

Please sign in to comment.