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
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
#
# EditorConfig Configuration file, for more details see:
# https://EditorConfig.org
Expand All @@ -12,7 +12,7 @@
root = true


[*] # For All Files
[*]
# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
name: pre-commit

on:
Expand All @@ -21,7 +21,7 @@ jobs:
name: linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.13'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
name: tests

on:
Expand Down Expand Up @@ -35,12 +35,12 @@ jobs:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
name: ${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install uv + caching
# astral/setup-uv@7.1.3
uses: astral-sh/setup-uv@5a7eac68fb9809dea845d802897dc5c723910fa3
# astral/setup-uv@7.1.4
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244
with:
enable-cache: true
cache-dependency-glob: |
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
*.dll
*.egg-info/
*.profraw
Expand Down
6 changes: 3 additions & 3 deletions .meta.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
[meta]
template = "zope-product"
commit-id = "9fcd3d67"
commit-id = "446e9797"

[python]
with-pypy = false
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
minimum_pre_commit_version: '3.6'
repos:
- repo: https://github.com/pycqa/isort
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changelog
5.3 (unreleased)
----------------

- Move package metadata from setup.py to pyproject.toml.


5.2 (2025-11-20)
----------------
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Generated from:
https://github.com/zopefoundation/meta/tree/master/config/zope-product
Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
-->
# Contributing to zopefoundation projects

Expand Down
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
include *.md
include *.rst
include *.txt
Expand Down
56 changes: 52 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,58 @@
#
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product

# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
[build-system]
requires = [
"setuptools >= 78.1.1,< 81",
"wheel",
]
build-backend = "setuptools.build_meta"


[project]
name = "Products.PythonScripts"
version = "5.3.dev0"
description = "Provides support for restricted execution of Python scripts in Zope."
license = "ZPL-2.1"
classifiers = [
"Development Status :: 6 - Mature",
"Environment :: Web Environment",
"Framework :: Zope",
"Framework :: Zope :: 5",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: Implementation :: CPython",
]
dynamic = ["readme"]
requires-python = ">=3.10"
authors = [
{name = "Zope Foundation and contributors",email = "zope-dev@zope.dev"},
]
maintainers = [
{name = "Plone Foundation and contributors",email = "zope-dev@zope.dev"},
]
dependencies = [
"AccessControl",
"Acquisition",
"DateTime",
"DocumentTemplate",
"RestrictedPython >= 4.0b5",
"zExceptions",
"Zope >= 5",
]

[project.entry-points."zodbupdate.decode"]
decodes = "Products.PythonScripts:zodbupdate_decode_dict"

[project.urls]
Source = "https://github.com/zopefoundation/Products.PythonScripts"
Issues = "https://github.com/zopefoundation/Products.PythonScripts/issues"

[tool.coverage.run]
branch = true
source = ["Products.PythonScripts"]
Expand All @@ -31,3 +75,7 @@ exclude_lines = [

[tool.coverage.html]
directory = "parts/htmlcov"

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

4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product

[flake8]
doctests = 1
Expand Down
51 changes: 2 additions & 49 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,5 @@
from setuptools import setup


setup(name='Products.PythonScripts',
version='5.3.dev0',
url='https://github.com/zopefoundation/Products.PythonScripts',
project_urls={
'Issue Tracker': ('https://github.com/zopefoundation/'
'Products.PythonScripts/issues'),
'Sources': ('https://github.com/zopefoundation/'
'Products.PythonScripts'),
},
license='ZPL-2.1',
description='Provides support for restricted execution of Python '
'scripts in Zope.',
author='Zope Foundation and Contributors',
author_email='zope-dev@zope.dev',
long_description=('{}\n{}'.format(open('README.rst').read(),
open('CHANGES.rst').read())),
classifiers=[
'Development Status :: 6 - Mature',
'Environment :: Web Environment',
'Framework :: Zope',
'Framework :: Zope :: 5',
'License :: OSI Approved :: Zope Public License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'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',
'Programming Language :: Python :: Implementation :: CPython',
],
python_requires='>=3.10',
install_requires=[
'AccessControl',
'Acquisition',
'DateTime',
'DocumentTemplate',
'RestrictedPython >= 4.0b5',
'zExceptions',
'Zope >= 4.1.2',
],
entry_points={
'zodbupdate.decode': [
'decodes = Products.PythonScripts:zodbupdate_decode_dict',
],
},
include_package_data=True,
)
# See pyproject.toml for package metadata
setup()
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
[tox]
minversion = 3.18
envlist =
Expand Down