Skip to content

Commit 3d50dc1

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

File tree

2 files changed

+61
-63
lines changed

2 files changed

+61
-63
lines changed

pyproject.toml

Lines changed: 59 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +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-
#
4-
# Generated from:
5-
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
6-
73
[build-system]
84
requires = [
95
"setuptools >= 78.1.1,< 81",
106
"wheel",
117
]
128
build-backend = "setuptools.build_meta"
139

10+
11+
[project]
12+
name = "zope.browsermenu"
13+
version = "6.1.dev0"
14+
description = "Browser menu implementation for Zope."
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+
"Operating System :: OS Independent",
29+
"Topic :: Internet :: WWW/HTTP",
30+
"Framework :: Zope :: 3",
31+
]
32+
dynamic = ["readme"]
33+
requires-python = ">=3.10"
34+
authors = [
35+
{name = "Zope Foundation and contributors",email = "zope-dev@zope.dev"},
36+
]
37+
maintainers = [
38+
{name = "Plone Foundation and contributors",email = "zope-dev@zope.dev"},
39+
]
40+
dependencies = [
41+
"zope.browser",
42+
"zope.component>=3.7",
43+
"zope.configuration",
44+
"zope.i18nmessageid",
45+
"zope.interface",
46+
"zope.pagetemplate>=3.5",
47+
"zope.publisher >= 4.2.1",
48+
"zope.schema",
49+
"zope.security",
50+
"zope.traversing>3.7",
51+
]
52+
53+
[project.optional-dependencies]
54+
test = [
55+
"zope.testing",
56+
"zope.testrunner >= 6.4",
57+
]
58+
59+
[project.urls]
60+
Source = "http://github.com/zopefoundation/zope.browsermenu/"
61+
Issues = "https://github.com/zopefoundation/zope.browsermenu/issues"
62+
Changelog = "https://raw.githubusercontent.com/zopefoundation/zope.browsermenu/master/CHANGES.rst"
63+
64+
1465
[tool.coverage.run]
1566
branch = true
1667
source = ["zope.browsermenu"]
@@ -33,3 +84,7 @@ exclude_lines = [
3384

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

setup.py

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -13,65 +13,8 @@
1313
##############################################################################
1414
"""zope.browsermenu setup
1515
"""
16-
import os
17-
1816
from setuptools import setup
1917

2018

21-
def read(*rnames):
22-
with open(os.path.join(os.path.dirname(__file__), *rnames)) as f:
23-
return f.read()
24-
25-
26-
long_description = (read('README.rst') + '\n\n' + read('CHANGES.rst'))
27-
TESTS_REQUIRE = [
28-
'zope.testing',
29-
'zope.testrunner >= 6.4',
30-
]
31-
32-
setup(
33-
name='zope.browsermenu',
34-
version='6.1.dev0',
35-
url='http://github.com/zopefoundation/zope.browsermenu/',
36-
author='Zope Foundation and Contributors',
37-
author_email='zope-dev@zope.dev',
38-
classifiers=[
39-
'Environment :: Web Environment',
40-
'Intended Audience :: Developers',
41-
'License :: OSI Approved :: Zope Public License',
42-
'Programming Language :: Python',
43-
'Programming Language :: Python :: 3',
44-
'Programming Language :: Python :: 3.10',
45-
'Programming Language :: Python :: 3.11',
46-
'Programming Language :: Python :: 3.12',
47-
'Programming Language :: Python :: 3.13',
48-
'Programming Language :: Python :: 3.14',
49-
'Programming Language :: Python :: Implementation :: CPython',
50-
'Programming Language :: Python :: Implementation :: PyPy',
51-
'Operating System :: OS Independent',
52-
'Topic :: Internet :: WWW/HTTP',
53-
'Framework :: Zope :: 3',
54-
],
55-
description='Browser menu implementation for Zope.',
56-
long_description=long_description,
57-
license='ZPL-2.1',
58-
python_requires='>=3.10',
59-
install_requires=[
60-
'setuptools',
61-
'zope.browser',
62-
'zope.component>=3.7',
63-
'zope.configuration',
64-
'zope.i18nmessageid',
65-
'zope.interface',
66-
'zope.pagetemplate>=3.5',
67-
'zope.publisher >= 4.2.1',
68-
'zope.schema',
69-
'zope.security',
70-
'zope.traversing>3.7',
71-
],
72-
extras_require={
73-
'test': TESTS_REQUIRE,
74-
},
75-
include_package_data=True,
76-
zip_safe=False,
77-
)
19+
# See pyproject.toml for package metadata
20+
setup()

0 commit comments

Comments
 (0)