Skip to content

Commit aff2170

Browse files
committed
Move package meta-data from setup.py to pyproject.toml
1 parent 4fdb832 commit aff2170

2 files changed

Lines changed: 21 additions & 14 deletions

File tree

pyproject.toml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
[project]
2+
dynamic = ["version", "entry-points", "scripts"]
3+
name = "cms"
4+
license = "AGPL-3.0-or-later"
5+
maintainers = [ { name = "The CMS development team", email = "contestms@googlegroups.com" } ]
6+
readme = "README.md"
7+
description = "A contest management system and grader for IOI-like programming competitions"
8+
requires-python = ">=3.11"
9+
keywords = ["ioi", "programming contest", "grader", "management system"]
10+
classifiers = [
11+
"Development Status :: 5 - Production/Stable",
12+
"Natural Language :: English",
13+
"Operating System :: POSIX :: Linux",
14+
"Programming Language :: Python :: 3.11",
15+
]
16+
17+
[project.urls]
18+
Documentation = "https://cms.readthedocs.io/"
19+
Repository = "https://github.com/cms-dev/cms"
20+
121
[build-system]
2-
requires = ["setuptools", "babel == 2.12.1"]
22+
requires = ["setuptools < 81", "babel == 2.12.1"]
323
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ class build_with_l10n(build):
112112
setup(
113113
name="cms",
114114
version=find_version(),
115-
author="The CMS development team",
116-
author_email="contestms@googlegroups.com",
117-
url="https://github.com/cms-dev/cms",
118-
description="A contest management system and grader for IOI-like programming competitions",
119115
packages=find_packages(),
120116
package_data=PACKAGE_DATA,
121117
cmdclass={"build": build_with_l10n},
@@ -193,13 +189,4 @@ class build_with_l10n(build):
193189
"Rust=cms.grading.languages.rust:Rust",
194190
],
195191
},
196-
keywords="ioi programming contest grader management system",
197-
license_expression="AGPL-3.0-or-later",
198-
python_requires=">=3.11",
199-
classifiers=[
200-
"Development Status :: 5 - Production/Stable",
201-
"Natural Language :: English",
202-
"Operating System :: POSIX :: Linux",
203-
"Programming Language :: Python :: 3.11",
204-
],
205192
)

0 commit comments

Comments
 (0)