Skip to content
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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ repos:
rev: "0.24.2"
hooks:
- id: check-python-versions
args: ['--only', 'setup.py,tox.ini']
args: ['--only', 'pyproject.toml,tox.ini']
- repo: https://github.com/collective/i18ndude
rev: "6.3.0"
hooks:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# plone.api

[![Latest PyPI version](https://img.shields.io/pypi/v/plone.api.svg "Latest PyPI version")](https://pypi.python.org/pypi/plone.api/)
[![Latest PyPI version](https://img.shields.io/pypi/v/plone.api.svg "Latest PyPI version")](https://pypi.org/project/plone.api/)


[![Number of PyPI downloads](https://img.shields.io/pypi/dm/plone.api.svg "Number of PyPI downloads")](https://pypi.python.org/pypi/plone.api/)
[![Number of PyPI downloads](https://img.shields.io/pypi/dm/plone.api.svg "Number of PyPI downloads")](https://pypi.org/project/plone.api/)

A simple API, built for humans wishing to develop with Plone.

Expand All @@ -25,7 +25,7 @@ Recipes try to assume the user does not have extensive knowledge about Plone int

## Source Code and Contribution

[![Testing Status](https://github.com/plone/plone.api/actions/workflows/plone_python.yml/badge.svg "Testing Status")](https://github.com/plone/plone.api/actions/workflows/plone_python.yml)
[![Testing Status](https://github.com/plone/plone.api/actions/workflows/test-matrix.yml/badge.svg "Testing Status")](https://github.com/plone/plone.api/actions/workflows/test-matrix.yml)


Contributors
Expand Down
1 change: 1 addition & 0 deletions news/+setup-to-pyproject.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Move package metadata from `setup.py` to `pyproject.toml` @plone
84 changes: 84 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,91 @@
[build-system]
requires = ["setuptools>=68.2,<83", "wheel"]

# START-MARKER-MANUAL-CONFIG
# Anything from here until END-MARKER-MANUAL-CONFIG
# will be kept by plone.meta

[project]
name = "plone.api"
version = "3.0.3.dev0"
description = "A Plone API."
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Plone",
"Framework :: Plone :: 6.2",
"Framework :: Plone :: Core",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
license = "GPL-2.0-only"
dynamic = ["readme"]
requires-python = ">=3.10"
authors = [
{name = "Plone Foundation",email = "plone-developers@lists.sourceforge.net"},
]
maintainers = [
{name = "Plone Foundation and contributors",email = "plone-developers@lists.sourceforge.net"},
]
dependencies = [
"Acquisition",
"Products.CMFCore",
"Products.CMFPlone",
"Products.PlonePAS",
"Products.statusmessages",
"Zope",
"decorator",
"plone.app.dexterity",
"plone.app.intid",
"plone.app.linkintegrity",
"plone.app.users",
"plone.app.uuid",
"plone.base",
"plone.dexterity",
"plone.i18n",
"plone.registry",
"plone.supermodel",
"plone.uuid",
"z3c.relationfield",
"zc.relation",
"zope.globalrequest",
"zope.intid",
]
keywords = ["plone", "api"]

[project.optional-dependencies]
test = [
"borg.localrole",
"manuel>=1.11.2",
"packaging",
"plone.app.contenttypes",
"plone.app.testing",
"plone.app.textfield",
"plone.indexer",
"plone.registry",
"plone.testing",
]

[project.urls]
Documentation = "https://6.docs.plone.org/plone.api/index.html"
Changelog = "https://github.com/plone/plone.api/blob/main/CHANGES.md"
Repository = "https://github.com/plone/plone.api"
Sponsor = "https://github.com/sponsors/plone"
Discord = "https://discord.com/channels/786421998426521600/786421998426521603"
Mastodon = "https://plone.social/@plone"
YouTube = "https://www.youtube.com/@plonecms"
Source = "https://github.com/plone/plone.api"
Issues = "https://github.com/plone/plone.api/issues"

[tool.setuptools.dynamic]
readme = {file = ["README.md", "CHANGES.md"], content-type = "text/markdown"}
# END-MARKER-MANUAL-CONFIG

[tool.towncrier]
directory = "news/"
Expand Down
90 changes: 2 additions & 88 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,90 +1,4 @@
from pathlib import Path
from setuptools import setup

version = "3.0.3.dev0"

long_description = "\n".join(
[Path("README.md").read_text(), Path("CHANGES.md").read_text()]
)

setup(
name="plone.api",
version=version,
description="A Plone API.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Plone Foundation",
author_email="plone-developers@lists.sourceforge.net",
license="GPL version 2",
include_package_data=True,
zip_safe=False,
url="https://github.com/plone/plone.api",
keywords="plone api",
python_requires=">=3.10",
install_requires=[
"Acquisition",
"Products.statusmessages",
"Products.PlonePAS",
"Products.CMFPlone",
"decorator",
"plone.app.users",
"plone.app.uuid",
"plone.app.dexterity",
"plone.app.intid",
"plone.app.linkintegrity",
"plone.base",
"plone.dexterity",
"plone.i18n",
"plone.registry",
"plone.supermodel",
"plone.uuid",
"zope.globalrequest",
"Products.CMFCore",
"z3c.relationfield",
"zc.relation",
"Zope",
"zope.intid",
],
extras_require={
"test": [
"borg.localrole",
"manuel>=1.11.2",
"packaging",
"plone.app.contenttypes",
"plone.app.textfield",
"plone.app.testing",
"plone.testing",
"plone.indexer",
"plone.registry",
],
},
# Get more strings from
# https://pypi.org/classifiers/
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Plone",
"Framework :: Plone :: 6.2",
"Framework :: Plone :: Core",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
],
platforms="Any",
project_urls={
"Documentation": "https://6.docs.plone.org/plone.api/index.html",
"Changelog": "https://github.com/plone/plone.api/blob/main/CHANGES.md",
"Issue Tracker": "https://github.com/plone/plone.api/issues",
"Repository": "https://github.com/plone/plone.api",
"Sponsor": "https://github.com/sponsors/plone",
"Discord": "https://discord.com/channels/786421998426521600/786421998426521603",
"Mastodon": "https://plone.social/@plone",
"YouTube": "https://www.youtube.com/@plonecms",
},
)
# See pyproject.toml for package metadata
setup()