Skip to content

Commit

Permalink
Put all build metadata in pyproject.toml
Browse files Browse the repository at this point in the history
Since setuptools 61, setup.cfg is no longer necessary for a variety of
projects. Build metadata can be placed directly into pyproject.toml.
  • Loading branch information
adang1345 committed Oct 24, 2024
1 parent 28f2090 commit 609abd8
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 44 deletions.
46 changes: 42 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,44 @@
[build-system]
requires = [
"setuptools >= 40.9.0",
"wheel",
]
requires = ["setuptools >= 70.1.0"]
build-backend = "setuptools.build_meta"

[project]
name = "delvewheel"
dynamic = ["version", "readme"]
authors = [{name = "Aohan Dang", email = "[email protected]"}]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Environment :: Console",
"Development Status :: 5 - Production/Stable",
"Operating System :: Microsoft :: Windows",
"Topic :: Software Development",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules",
]
description = "Self-contained wheels for Windows"
requires-python = ">=3.8"
dependencies = ["pefile >= 2024.8.26"]

[project.scripts]
delvewheel = "delvewheel.__main__:main"

[project.urls]
Homepage = "https://github.com/adang1345/delvewheel"
Documentation = "https://github.com/adang1345/delvewheel/blob/master/README.md"
Changelog = "https://github.com/adang1345/delvewheel/blob/master/CHANGELOG.md"

[tool.setuptools]
packages = ["delvewheel"]
platforms = ["Windows"]

[tool.setuptools.dynamic]
version = {attr = "delvewheel._version.__version__"}
readme = {file = ["README.md"], content-type = "text/markdown"}
40 changes: 0 additions & 40 deletions setup.cfg

This file was deleted.

0 comments on commit 609abd8

Please sign in to comment.