Skip to content

Commit 0898791

Browse files
committed
Move package metadata from setup.py to pyproject.toml.
1 parent 3fec048 commit 0898791

File tree

2 files changed

+62
-66
lines changed

2 files changed

+62
-66
lines changed

pyproject.toml

Lines changed: 60 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,68 @@
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.site"
13+
version = "5.1.dev0"
14+
description = "Grok-like configuration for Zope local site and utilities"
15+
license = "ZPL-2.1"
16+
classifiers = [
17+
"Environment :: Web Environment",
18+
"Framework :: Zope :: 3",
19+
"Intended Audience :: Developers",
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+
"Programming Language :: Python",
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.1",
40+
"martian >= 0.13",
41+
"persistent",
42+
"zope.annotation",
43+
"zope.component",
44+
"zope.container",
45+
"zope.event",
46+
"zope.interface",
47+
"zope.lifecycleevent",
48+
"zope.schema",
49+
"zope.site >= 4.4",
50+
]
51+
52+
[project.optional-dependencies]
53+
test = [
54+
"zope.app.appsetup",
55+
"zope.component",
56+
"zope.configuration",
57+
"zope.testing",
58+
"grokcore.content",
59+
]
60+
61+
[project.urls]
62+
Source = "https://github.com/zopefoundation/grokcore.site"
63+
Issues = "https://github.com/zopefoundation/grokcore.site/issues"
64+
Changelog = "https://raw.githubusercontent.com/zopefoundation/grokcore.site/master/CHANGES.rst"
65+
1366
[tool.coverage.run]
1467
branch = true
1568
source = ["grokcore.site"]
@@ -32,3 +85,7 @@ exclude_lines = [
3285

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

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(*rnames):
7-
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
8-
9-
10-
long_description = (
11-
read('README.rst')
12-
+ '\n' +
13-
read('CHANGES.rst')
14-
)
15-
16-
tests_require = [
17-
'zope.app.appsetup',
18-
'zope.component',
19-
'zope.configuration',
20-
'zope.testing',
21-
'grokcore.content',
22-
]
23-
24-
setup(
25-
name='grokcore.site',
26-
version='5.1.dev0',
27-
author='Grok Team',
28-
author_email='zope-dev@zope.dev',
29-
url='https://github.com/zopefoundation/grokcore.site',
30-
description='Grok-like configuration for Zope local site and utilities',
31-
long_description=long_description,
32-
license='ZPL',
33-
classifiers=[
34-
'Environment :: Web Environment',
35-
'Framework :: Zope :: 3',
36-
'Intended Audience :: Developers',
37-
'License :: OSI Approved :: Zope Public License',
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-
'Programming Language :: Python',
47-
],
48-
include_package_data=True,
49-
zip_safe=False,
50-
python_requires='>=3.10',
51-
install_requires=['setuptools',
52-
'grokcore.component >= 2.1',
53-
'martian >= 0.13',
54-
'persistent',
55-
'zope.annotation',
56-
'zope.component',
57-
'zope.container',
58-
'zope.event',
59-
'zope.interface',
60-
'zope.lifecycleevent',
61-
'zope.schema',
62-
'zope.site >= 4.4',
63-
],
64-
tests_require=tests_require,
65-
extras_require={'test': tests_require},
66-
)
4+
# See pyproject.toml for package metadata
5+
setup()

0 commit comments

Comments
 (0)