Skip to content

Convert setup.py to pyproject.toml#107

Open
gforcada wants to merge 5 commits intomasterfrom
convert-setup-py-to-pyproject-toml
Open

Convert setup.py to pyproject.toml#107
gforcada wants to merge 5 commits intomasterfrom
convert-setup-py-to-pyproject-toml

Conversation

@gforcada
Copy link
Copy Markdown
Member

@gforcada gforcada commented Mar 17, 2026

  • feat: move package metadata from setup.py to pyproject.toml.
  • Add news entry
  • chore: manually clean up
  • chore: move tool.setuptools table
  • Configuring with plone.meta

@mister-roboto
Copy link
Copy Markdown

@gforcada thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@gforcada gforcada force-pushed the convert-setup-py-to-pyproject-toml branch from ed2c297 to ccaa77e Compare March 18, 2026 10:43
Copy link
Copy Markdown
Member

@mauritsvanrees mauritsvanrees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mostly fine, but I added some suggestions.

Comment on lines +24 to +25
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are editing this, let's update the classifiers:

Suggested change
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"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",

{name = "Plone Foundation",email = "plone-developers@lists.sourceforge.net"},
]
maintainers = [
{name = "Plone Foundation and contributors",email = "zope-dev@zope.dev"},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure where the zope.dev email came from.

Suggested change
{name = "Plone Foundation and contributors",email = "zope-dev@zope.dev"},
{name = "Plone Foundation and contributors",email = "plone-developers@lists.sourceforge.net"},

Changelog = "https://github.com/plone/plone.batching/blob/master/CHANGES.rst"

[tool.setuptools.dynamic]
readme = {file = ["README.rst", "CHANGES.rst"]}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We included docs/usage.rst until now. Would be good to keep that.

This worked for me, but it may fail on Windows:

readme = {file = ["README.rst", "CHANGES.rst", "docs/usage.rst"]}

We could just copy the contents of docs/usage.rst to the readme, and remove the rest of the docs dir, as it seems unused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants