Skip to content

Commit 058ddb4

Browse files
authored
feat: Migrate to pyproject.toml (#52)
* feat: Migrate to pyproject.toml * chore: Update license identifier
1 parent 2b62183 commit 058ddb4

File tree

4 files changed

+50
-121
lines changed

4 files changed

+50
-121
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ jobs:
8282
run: |
8383
echo "Using version $PKG_VERSION_STRICT"
8484
sed -i -r -e "s/^__version__ = '.*'$/__version__ = '$PKG_VERSION_STRICT'/" rfc2html.py
85-
python ./setup.py setopt --command=metadata --option=version --set-value=$PKG_VERSION_STRICT
86-
python ./setup.py sdist --dist-dir dist
85+
python3 -m build
8786
8887
- name: Store the distribution packages
8988
uses: actions/upload-artifact@v4

pyproject.toml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "rfc2html"
7+
dynamic = ["version"]
8+
authors = [
9+
{name = "IETF Tools", email = "[email protected]"},
10+
]
11+
description = "Convert text-format RFCs and Internet-Drafts to html"
12+
keywords = ["svg", "validation", "rfc", "internet-draft", "html"]
13+
readme = "README.md"
14+
license = "BSD-3-Clause"
15+
license-files = ["LICENSE"]
16+
requires-python = ">=2.7"
17+
classifiers = [
18+
"Development Status :: 5 - Production/Stable",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
24+
"Topic :: Text Processing",
25+
"Topic :: Text Processing :: Markup :: XML",
26+
]
27+
28+
[project.urls]
29+
homepage = "https://github.com/ietf-tools/rfc2html"
30+
source = "https://github.com/ietf-tools/rfc2html"
31+
issues = "https://github.com/ietf-tools/rfc2html/issues"
32+
changelog = "https://github.com/ietf-tools/rfc2html/blob/main/CHANGELOG.md"
33+
releasenotes = "https://github.com/ietf-tools/rfc2html/releases"
34+
35+
[project.optional-dependencies]
36+
tests = [
37+
"coverage",
38+
"flake8",
39+
"tox",
40+
]
41+
42+
[project.scripts]
43+
rfc2html = "rfc2html:main"
44+
45+
[tool.setuptools]
46+
py-modules = ["rfc2html"]
47+
48+
[tool.setuptools.dynamic]
49+
version = {attr = "rfc2html.__version__"}

setup.cfg

Lines changed: 0 additions & 3 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)