Skip to content

Commit 285b377

Browse files
committed
- Move package metadata from setup.py to pyproject.toml
1 parent ae1659f commit 285b377

File tree

13 files changed

+74
-88
lines changed

13 files changed

+74
-88
lines changed

.editorconfig

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
#
44
# EditorConfig Configuration file, for more details see:
55
# https://EditorConfig.org

.github/workflows/pre-commit.yml

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
name: pre-commit
44

55
on:

.github/workflows/tests.yml

Lines changed: 4 additions & 8 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:
@@ -45,8 +45,8 @@ jobs:
4545
with:
4646
persist-credentials: false
4747
- name: Install uv + caching
48-
# astral/setup-uv@7.1.3
49-
uses: astral-sh/setup-uv@5a7eac68fb9809dea845d802897dc5c723910fa3
48+
# astral/setup-uv@7.5.0
49+
uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82
5050
with:
5151
enable-cache: true
5252
cache-dependency-glob: |
@@ -55,11 +55,7 @@ jobs:
5555
python-version: ${{ matrix.config[0] }}
5656
github-token: ${{ secrets.GITHUB_TOKEN }}
5757
- name: Test
58-
if: ${{ !startsWith(runner.os, 'Mac') }}
5958
run: uvx --with tox-uv tox -e ${{ matrix.config[1] }}
60-
- name: Test (macOS)
61-
if: ${{ startsWith(runner.os, 'Mac') }}
62-
run: uvx --with tox-uv tox -e ${{ matrix.config[1] }}-universal2
6359
- name: Coverage
6460
if: matrix.config[1] == 'coverage'
6561
run: |

.gitignore

Lines changed: 3 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
@@ -28,5 +28,6 @@ lib64
2828
log/
2929
parts/
3030
pyvenv.cfg
31+
share/
3132
testing.log
3233
var/

.meta.toml

Lines changed: 4 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 = "08e52d38"
5+
commit-id = "9832deed"
66

77
[python]
88
with-pypy = true
@@ -11,6 +11,7 @@ with-windows = true
1111
with-future-python = true
1212
with-macos = false
1313
with-docs = false
14+
with-free-threaded-python = false
1415

1516
[coverage]
1617
fail-under = 88

.pre-commit-config.yaml

Lines changed: 4 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
minimum_pre_commit_version: '3.6'
44
repos:
55
- repo: https://github.com/pycqa/isort
@@ -12,14 +12,15 @@ repos:
1212
- id: autopep8
1313
args: [--in-place, --aggressive, --aggressive]
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v3.21.0
15+
rev: v3.21.2
1616
hooks:
1717
- id: pyupgrade
1818
args: [--py310-plus]
1919
- repo: https://github.com/isidentical/teyit
2020
rev: 0.4.3
2121
hooks:
2222
- id: teyit
23+
language_version: python3.13
2324
- repo: https://github.com/PyCQA/flake8
2425
rev: "7.3.0"
2526
hooks:

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Changelog
44
6.1 (unreleased)
55
----------------
66

7-
- Nothing changed yet.
7+
- Move package metadata from setup.py to pyproject.toml.
88

99

1010
6.0 (2025-11-25)

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: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,50 @@
1-
# Generated from:
2-
# https://github.com/zopefoundation/meta/tree/master/config/zope-product
3-
1+
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
2+
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/zope-product
43
[build-system]
54
requires = [
65
"setuptools >= 78.1.1,< 81",
76
"wheel",
87
]
98
build-backend = "setuptools.build_meta"
109

10+
11+
[project]
12+
name = "DateTime"
13+
version = "6.1.dev0"
14+
license = "ZPL-2.1"
15+
classifiers = [
16+
"Development Status :: 6 - Mature",
17+
"Environment :: Web Environment",
18+
"Framework :: Zope :: 5",
19+
"Operating System :: OS Independent",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
26+
"Programming Language :: Python :: 3.14",
27+
"Programming Language :: Python :: Implementation :: CPython",
28+
"Programming Language :: Python :: Implementation :: PyPy",
29+
]
30+
dynamic = ["readme"]
31+
requires-python = ">=3.10"
32+
authors = [
33+
{name = "Zope Foundation and contributors",email = "zope-dev@zope.dev"},
34+
]
35+
maintainers = [
36+
{name = "Plone Foundation and contributors",email = "zope-dev@zope.dev"},
37+
]
38+
dependencies = [
39+
"zope.interface",
40+
"pytz",
41+
]
42+
43+
[project.urls]
44+
Source = "https://github.com/zopefoundation/DateTime"
45+
Issues = "https://github.com/zopefoundation/DateTime/issues"
46+
Changelog = "https://github.com/zopefoundation/DateTime/blob/master/CHANGES.rst"
47+
1148
[tool.coverage.run]
1249
branch = true
1350
source = ["DateTime"]
@@ -30,3 +67,7 @@ exclude_lines = [
3067

3168
[tool.coverage.html]
3269
directory = "parts/htmlcov"
70+
71+
[tool.setuptools.dynamic]
72+
readme = {file = ["README.rst", "CHANGES.rst"]}
73+

0 commit comments

Comments
 (0)