Skip to content
Open
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 @@ -69,7 +69,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
2 changes: 2 additions & 0 deletions news/+setup-to-pyproject.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Move package metadata from ``setup.py`` to ``pyproject.toml``.
[plone devs]
52 changes: 52 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,59 @@
[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.app.uuid"
version = "3.0.1.dev0"
description = "Plone integration for the basic plone.uuid package"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Plone",
"Framework :: Plone :: 6.2",
"Framework :: Plone :: Core",
"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 = "Martin Aspeli",email = "optilude@gmail.com"},
]
maintainers = [
{name = "Plone Foundation and contributors",email = "plone-developers@lists.sourceforge.net"},
]
dependencies = [
"Products.CMFCore",
"Products.ZCatalog",
"Zope",
"plone.indexer",
"plone.uuid",
]
keywords = ["plone", "uuid"]

[project.optional-dependencies]
test = [
"plone.app.testing",
"plone.dexterity",
"plone.testing",
]

[project.urls]
Source = "https://github.com/plone/plone.app.uuid"
Issues = "https://github.com/plone/Products.CMFPlone/issues"
Changelog = "https://github.com/plone/plone.app.uuid/blob/master/CHANGES.rst"

[tool.setuptools.dynamic]
readme = {file = ["README.rst", "CHANGES.rst"]}
# END-MARKER-MANUAL-CONFIG

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

version = "3.0.1.dev0"

long_description = "{}\n{}".format(
open("README.rst").read(),
open("CHANGES.rst").read(),
)

setup(
name="plone.app.uuid",
version=version,
description="Plone integration for the basic plone.uuid package",
long_description=long_description,
# Get more strings from
# https://pypi.org/classifiers/
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Plone",
"Framework :: Plone :: 6.2",
"Framework :: Plone :: Core",
"License :: OSI Approved :: GNU General Public License (GPL)",
"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",
],
keywords="plone uuid",
author="Martin Aspeli",
author_email="optilude@gmail.com",
url="http://plone.org",
license="GPL",
include_package_data=True,
zip_safe=False,
python_requires=">=3.10",
install_requires=[
"Products.CMFCore",
"Products.ZCatalog",
"plone.uuid",
"plone.indexer",
"Zope",
],
extras_require={
"test": [
"plone.app.testing",
"plone.dexterity",
"plone.testing",
]
},
entry_points="""
""",
)
# See pyproject.toml for package metadata
setup()