Skip to content

Commit 20dccd3

Browse files
committed
Move package metadata from setup.py to pyproject.toml.
1 parent edd3ae8 commit 20dccd3

2 files changed

Lines changed: 55 additions & 66 deletions

File tree

pyproject.toml

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,61 @@
11
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
22
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/buildout-recipe
3-
# Generated from:
4-
# https://github.com/zopefoundation/meta/tree/master/config/buildout-recipe
5-
63
[build-system]
74
requires = [
85
"setuptools >= 78.1.1,< 81",
96
"wheel",
107
]
118
build-backend = "setuptools.build_meta"
129

10+
11+
[project]
12+
name = "z3c.recipe.compattest"
13+
version = "4.1.dev0"
14+
description = "Buildout recipe to create testrunners for testing compatibility with other packages"
15+
license = "ZPL-2.1"
16+
classifiers = [
17+
"Framework :: Zope :: 3",
18+
"Intended Audience :: Developers",
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+
"zc.buildout >= 2.0.0",
40+
"zc.recipe.testrunner >= 2.0.0",
41+
]
42+
keywords = ["zope", "setuptools", "egg", "kgs"]
43+
44+
[project.entry-points."zc.buildout"]
45+
default = "z3c.recipe.compattest.recipe:Recipe"
46+
47+
[project.optional-dependencies]
48+
test = [
49+
"zope.dottedname",
50+
"zope.testing",
51+
"manuel",
52+
]
53+
54+
[project.urls]
55+
Source = "https://github.com/zopefoundation/z3c.recipe.compattest"
56+
Issues = "https://github.com/zopefoundation/z3c.recipe.compattest/issues"
57+
Changelog = "https://raw.githubusercontent.com/zopefoundation/z3c.recipe.compattest/master/CHANGES.rst"
58+
1359
[tool.coverage.run]
1460
branch = true
1561
source = ["z3c.recipe.compattest"]
@@ -40,3 +86,7 @@ source = [
4086
".tox/*/lib/python*/site-packages/",
4187
".tox/pypy*/site-packages/",
4288
]
89+
90+
[tool.setuptools.dynamic]
91+
readme = {file = ["README.rst", "CHANGES.rst"]}
92+

setup.py

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,5 @@
1-
import os
2-
31
from setuptools import setup
42

53

6-
def read(path):
7-
with open(os.path.join(path)) as f:
8-
return f.read()
9-
10-
11-
setup(
12-
name='z3c.recipe.compattest',
13-
version='4.1.dev0',
14-
author='Zope Foundation and Contributors',
15-
author_email='zope-dev@zope.dev',
16-
description='Buildout recipe to create testrunners for testing '
17-
'compatibility with other packages',
18-
url='https://github.com/zopefoundation/z3c.recipe.compattest',
19-
project_urls={
20-
'Issue Tracker': ('https://github.com/zopefoundation/'
21-
'z3c.recipe.compattest/issues'),
22-
'Sources': 'https://github.com/zopefoundation/z3c.recipe.compattest',
23-
},
24-
long_description=(
25-
read('README.rst')
26-
+ '\n\n'
27-
+ read('CHANGES.rst')
28-
),
29-
keywords="zope setuptools egg kgs",
30-
classifiers=[
31-
'Framework :: Zope :: 3',
32-
'Intended Audience :: Developers',
33-
'License :: OSI Approved :: Zope Public License',
34-
'Operating System :: OS Independent',
35-
'Programming Language :: Python',
36-
'Programming Language :: Python :: 3',
37-
'Programming Language :: Python :: 3.10',
38-
'Programming Language :: Python :: 3.11',
39-
'Programming Language :: Python :: 3.12',
40-
'Programming Language :: Python :: 3.13',
41-
'Programming Language :: Python :: 3.14',
42-
'Programming Language :: Python :: Implementation :: CPython',
43-
'Programming Language :: Python :: Implementation :: PyPy',
44-
],
45-
license='ZPL-2.1',
46-
install_requires=[
47-
'setuptools',
48-
'zc.buildout >= 2.0.0',
49-
'zc.recipe.testrunner >= 2.0.0',
50-
],
51-
extras_require={
52-
'test': [
53-
# zope.dottedname is just used as a dummy package to demonstrate
54-
# things with, it's not actually imported
55-
'zope.dottedname',
56-
'zope.testing',
57-
'manuel',
58-
],
59-
},
60-
entry_points={
61-
'zc.buildout': ['default = z3c.recipe.compattest.recipe:Recipe'],
62-
},
63-
include_package_data=True,
64-
zip_safe=False,
65-
python_requires='>=3.10',
66-
)
4+
# See pyproject.toml for package metadata
5+
setup()

0 commit comments

Comments
 (0)