Skip to content

Commit 321d2c5

Browse files
authored
Merge pull request #70 from zopefoundation/config-with-zope-product-template-446e9797
Move package metadata from setup.py to pyproject.toml
2 parents e86d81d + f40dd17 commit 321d2c5

File tree

13 files changed

+82
-79
lines changed

13 files changed

+82
-79
lines changed

.editorconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
33
#
44
# EditorConfig Configuration file, for more details see:
55
# https://EditorConfig.org
@@ -12,7 +12,7 @@
1212
root = true
1313

1414

15-
[*] # For All Files
15+
[*]
1616
# Unix-style newlines with a newline ending every file
1717
end_of_line = lf
1818
insert_final_newline = true

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
33
name: pre-commit
44

55
on:
@@ -21,7 +21,7 @@ jobs:
2121
name: linting
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
2525
- uses: actions/setup-python@v6
2626
with:
2727
python-version: '3.13'

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
33
name: tests
44

55
on:
@@ -35,12 +35,12 @@ jobs:
3535
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
3636
name: ${{ matrix.config[1] }}
3737
steps:
38-
- uses: actions/checkout@v5
38+
- uses: actions/checkout@v6
3939
with:
4040
persist-credentials: false
4141
- name: Install uv + caching
42-
# astral/[email protected].3
43-
uses: astral-sh/setup-uv@5a7eac68fb9809dea845d802897dc5c723910fa3
42+
# astral/[email protected].4
43+
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244
4444
with:
4545
enable-cache: true
4646
cache-dependency-glob: |

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
33
*.dll
44
*.egg-info/
55
*.profraw

.meta.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
33
[meta]
44
template = "zope-product"
5-
commit-id = "9fcd3d67"
5+
commit-id = "446e9797"
66

77
[python]
88
with-pypy = false

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
33
minimum_pre_commit_version: '3.6'
44
repos:
55
- repo: https://github.com/pycqa/isort

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Changelog
44
5.3 (unreleased)
55
----------------
66

7+
- Move package metadata from setup.py to pyproject.toml.
8+
79

810
5.2 (2025-11-20)
911
----------------

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
2-
Generated from:
3-
https://github.com/zopefoundation/meta/tree/master/config/zope-product
2+
Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
3+
https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
44
-->
55
# Contributing to zopefoundation projects
66

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
33
include *.md
44
include *.rst
55
include *.txt

pyproject.toml

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,58 @@
1-
#
2-
# Generated from:
3-
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
4-
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
53
[build-system]
64
requires = [
75
"setuptools >= 78.1.1,< 81",
86
"wheel",
97
]
108
build-backend = "setuptools.build_meta"
119

10+
11+
[project]
12+
name = "Products.PythonScripts"
13+
version = "5.3.dev0"
14+
description = "Provides support for restricted execution of Python scripts in Zope."
15+
license = "ZPL-2.1"
16+
classifiers = [
17+
"Development Status :: 6 - Mature",
18+
"Environment :: Web Environment",
19+
"Framework :: Zope",
20+
"Framework :: Zope :: 5",
21+
"Operating System :: OS Independent",
22+
"Programming Language :: Python",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
28+
"Programming Language :: Python :: 3.14",
29+
"Programming Language :: Python :: Implementation :: CPython",
30+
]
31+
dynamic = ["readme"]
32+
requires-python = ">=3.10"
33+
authors = [
34+
{name = "Zope Foundation and contributors",email = "[email protected]"},
35+
]
36+
maintainers = [
37+
{name = "Plone Foundation and contributors",email = "[email protected]"},
38+
]
39+
dependencies = [
40+
"AccessControl",
41+
"Acquisition",
42+
"DateTime",
43+
"DocumentTemplate",
44+
"RestrictedPython >= 4.0b5",
45+
"zExceptions",
46+
"Zope >= 5",
47+
]
48+
49+
[project.entry-points."zodbupdate.decode"]
50+
decodes = "Products.PythonScripts:zodbupdate_decode_dict"
51+
52+
[project.urls]
53+
Source = "https://github.com/zopefoundation/Products.PythonScripts"
54+
Issues = "https://github.com/zopefoundation/Products.PythonScripts/issues"
55+
1256
[tool.coverage.run]
1357
branch = true
1458
source = ["Products.PythonScripts"]
@@ -31,3 +75,7 @@ exclude_lines = [
3175

3276
[tool.coverage.html]
3377
directory = "parts/htmlcov"
78+
79+
[tool.setuptools.dynamic]
80+
readme = {file = ["README.rst", "CHANGES.rst"]}
81+

0 commit comments

Comments
 (0)