Skip to content

Commit 6c6a05c

Browse files
committed
Move package metadata from setup.py to pyproject.toml.
1 parent 11723cd commit 6c6a05c

File tree

2 files changed

+61
-65
lines changed

2 files changed

+61
-65
lines changed

pyproject.toml

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,67 @@
11
# Generated with zope.meta (https://zopemeta.readthedocs.io/) from:
22
# https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python
3-
# Generated from:
4-
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
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 = "grokcore.annotation"
13+
version = "5.1.dev0"
14+
description = "Grok-like configuration for Zope annotations"
15+
license = "ZPL-2.1"
16+
classifiers = [
17+
"Environment :: Web Environment",
18+
"Intended Audience :: Developers",
19+
"Programming Language :: Python",
20+
"Programming Language :: Python :: 3",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
25+
"Programming Language :: Python :: 3.14",
26+
"Programming Language :: Python :: Implementation :: CPython",
27+
"Programming Language :: Python :: Implementation :: PyPy",
28+
"Framework :: Zope :: 3",
29+
]
30+
dynamic = ["readme"]
31+
requires-python = ">=3.10"
32+
authors = [
33+
{name = "Grok Team",email = "zope-dev@zope.dev"},
34+
]
35+
maintainers = [
36+
{name = "Plone Foundation and contributors",email = "zope-dev@zope.dev"},
37+
]
38+
dependencies = [
39+
"grokcore.component >= 2.5",
40+
"martian",
41+
"zope.annotation",
42+
"zope.cachedescriptors",
43+
"zope.component",
44+
"zope.container",
45+
"zope.event",
46+
"zope.interface",
47+
"zope.location",
48+
"zope.schema",
49+
]
50+
51+
[project.optional-dependencies]
52+
test = [
53+
"zope.configuration",
54+
"zope.schema",
55+
"zope.testing > 4.6",
56+
"zope.testrunner >= 6.4",
57+
]
58+
59+
[project.urls]
60+
Source = "https://github.com/zopefoundation/grokcore.annotation"
61+
Issues = "https://github.com/zopefoundation/grokcore.annotation/issues"
62+
Changelog = "https://raw.githubusercontent.com/zopefoundation/grokcore.annotation/master/CHANGES.rst"
63+
64+
1365
[tool.coverage.run]
1466
branch = true
1567
source = ["grokcore.annotation"]
@@ -32,3 +84,7 @@ exclude_lines = [
3284

3385
[tool.coverage.html]
3486
directory = "parts/htmlcov"
87+
88+
[tool.setuptools.dynamic]
89+
readme = {file = ["README.rst", "CHANGES.rst"]}
90+

setup.py

Lines changed: 2 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,5 @@
11
from setuptools import setup
22

33

4-
def read(name):
5-
"""Read a file."""
6-
with open(name) as f:
7-
return f.read()
8-
9-
10-
long_description = (
11-
read('README.rst')
12-
+ '\n' +
13-
read('CHANGES.rst')
14-
)
15-
16-
tests_require = [
17-
'zope.configuration',
18-
'zope.schema',
19-
'zope.testing > 4.6',
20-
'zope.testrunner >= 6.4',
21-
]
22-
23-
24-
setup(
25-
name='grokcore.annotation',
26-
version='5.1.dev0',
27-
author='Grok Team',
28-
author_email='zope-dev@zope.dev',
29-
url='https://github.com/zopefoundation/grokcore.annotation',
30-
description='Grok-like configuration for Zope annotations',
31-
long_description=long_description,
32-
license='ZPL-2.1',
33-
classifiers=[
34-
'Environment :: Web Environment',
35-
'Intended Audience :: Developers',
36-
'License :: OSI Approved :: Zope Public License',
37-
'Programming Language :: Python',
38-
'Programming Language :: Python :: 3',
39-
'Programming Language :: Python :: 3.10',
40-
'Programming Language :: Python :: 3.11',
41-
'Programming Language :: Python :: 3.12',
42-
'Programming Language :: Python :: 3.13',
43-
'Programming Language :: Python :: 3.14',
44-
'Programming Language :: Python :: Implementation :: CPython',
45-
'Programming Language :: Python :: Implementation :: PyPy',
46-
'Framework :: Zope :: 3',
47-
],
48-
include_package_data=True,
49-
zip_safe=False,
50-
python_requires='>=3.10',
51-
install_requires=[
52-
'grokcore.component >= 2.5',
53-
'martian',
54-
'setuptools',
55-
'zope.annotation',
56-
'zope.cachedescriptors',
57-
'zope.component',
58-
'zope.container',
59-
'zope.event',
60-
'zope.interface',
61-
'zope.location',
62-
'zope.schema',
63-
],
64-
extras_require={'test': tests_require},
65-
)
4+
# See pyproject.toml for package metadata
5+
setup()

0 commit comments

Comments
 (0)