Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Mar 6, 2025
1 parent 4d929f1 commit 54da0e7
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 274 deletions.
9 changes: 0 additions & 9 deletions Dockerfile

This file was deleted.

2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ exclude .editorconfig
exclude .flake8
exclude Dockerfile
exclude Makefile
exclude bootstrap-buildout.py
exclude CODEOWNERS
exclude docs/make.bat
exclude .python-version
Expand All @@ -28,5 +27,4 @@ global-exclude *.pyc
include pyproject.toml
include netlify.toml
prune ideas
exclude test-no-sphinx-warnings
exclude test-no-uncommitted-doc-changes
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,9 @@ curl -i -X POST https://demo.plone.org/++api++ \
# Installation

Install `plone.restapi` by adding it to your buildout.
`plone.restapi` is included in Plone 6 if you install the `Plone` package.

```ini
[buildout]

# ...

eggs =
plone.restapi
```

...and then running `bin/buildout`.
If it is not installed, add it using requirements.txt or as a dependency of another package.

# Python / Plone Compatibility

Expand Down
181 changes: 0 additions & 181 deletions base.cfg

This file was deleted.

42 changes: 11 additions & 31 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,39 +1,24 @@
from setuptools import find_packages
from setuptools import setup

import pathlib
import sys


version = "9.11.1.dev0"
version = "10.0.0.dev0"

if sys.version_info.major == 2:
raise ValueError(
"plone.restapi 8 requires Python 3. "
"plone.restapi 10 requires Python 3. "
"Please downgrade to plone.restapi 7 for Python 2 and Plone 4.3/5.1."
)


def read(filename):
with open(filename) as myfile:
try:
return myfile.read()
except UnicodeDecodeError:
# Happens on one Jenkins node on Python 3.6,
# so maybe it happens for users too.
pass
# Opening and reading as text failed, so retry opening as bytes.
with open(filename, "rb") as myfile:
contents = myfile.read()
return contents.decode("utf-8")


long_description = (
read("README.md")
+ "\n"
+ read("CONTRIBUTORS.md")
+ "\n"
+ read("CHANGES.md")
+ "\n"
long_description = "\n".join(
[
pathlib.Path(filename).read_text()
for filename in ("README.md", "CONTRIBUTORS.md", "CHANGES.md")
]
)

TEST_REQUIRES = [
Expand Down Expand Up @@ -61,15 +46,11 @@ def read(filename):
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Plone",
"Framework :: Plone :: 5.2",
"Framework :: Plone :: 6.0",
"Framework :: Plone :: 6.1",
"Framework :: Plone :: 6.2",
"Framework :: Plone :: Core",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
Expand All @@ -84,16 +65,15 @@ def read(filename):
packages=find_packages("src"),
package_dir={"": "src"},
namespace_packages=["plone"],
python_requires=">=3.8",
python_requires=">=3.10",
include_package_data=True,
zip_safe=False,
install_requires=[
"setuptools",
"importlib-metadata; python_version<'3.8'",
"python-dateutil",
"plone.rest", # json renderer moved to plone.restapi
"plone.schema>=1.2.1", # new/fixed json field
"Products.CMFPlone>=5.2",
"Products.CMFPlone>=6.0",
"PyJWT>=1.7.0",
"pytz",
],
Expand Down
40 changes: 0 additions & 40 deletions test-no-sphinx-warnings

This file was deleted.

0 comments on commit 54da0e7

Please sign in to comment.