Skip to content

Commit 8553317

Browse files
authored
Merge pull request #118 from kurtmckee/use-pep-621-metadata
Migrate to PEP 621 metadata in `pyproject.toml`
2 parents 2c09b1b + 1bc60d3 commit 8553317

21 files changed

+52
-47
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ repos:
6060
- id: "check-readthedocs"
6161

6262
- repo: "https://github.com/rhysd/actionlint"
63-
rev: "v1.7.4"
63+
rev: "v1.7.6"
6464
hooks:
6565
- id: "actionlint"
6666

6767
- repo: "https://github.com/kurtmckee/pre-commit-hooks"
68-
rev: "v0.1.1"
68+
rev: "v1.0.0"
6969
hooks:
7070
- id: "verify-consistent-pyproject-toml-python-requirements"

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright 2009-2024 Kurt McKee <contactme@kurtmckee.org>
3+
Copyright 2009-2025 Kurt McKee <contactme@kurtmckee.org>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
..
2+
This file is part of listparser.
3+
Copyright 2009-2025 Kurt McKee <contactme@kurtmckee.org>
4+
SPDX-License-Identifier: MIT
5+
16
.. image:: docs/_static/banner.png
27
:alt: listparser: Parse OPML subscription lists in Python.
38

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Development
2+
-----------
3+
4+
* Migrate to PEP 621 metadata in ``pyproject.toml``.

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323

2424
# General information about the project.
2525
project = "listparser"
26-
copyright = "2009-2024 Kurt McKee"
26+
copyright = "2009-2025 Kurt McKee"
2727

2828
# The version info for the project you're documenting, acts as replacement for
2929
# |version| and |release|, also used in various other places throughout the
3030
# built documents.
3131
#
3232
pyproject = pathlib.Path(__file__).parent.parent / "pyproject.toml"
3333
info = tomllib.loads(pyproject.read_text())
34-
version = release = info["tool"]["poetry"]["version"]
34+
version = release = info["project"]["version"]
3535

3636
# List of directories, relative to source directory, that shouldn't be searched
3737
# for source files.

pyproject.toml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,37 @@
22
requires = ["poetry-core>=1.0.0"]
33
build-backend = "poetry.core.masonry.api"
44

5-
6-
# poetry
7-
# ------
8-
9-
[tool.poetry]
5+
[project]
106
name = "listparser"
117
version = "0.20"
128
description = "Parse OPML subscription lists"
13-
authors = ["Kurt McKee <contactme@kurtmckee.org>"]
9+
authors = [
10+
{ name = "Kurt McKee", email = "contactme@kurtmckee.org" },
11+
]
1412
license = "MIT"
1513
readme = "README.rst"
16-
repository = "https://github.com/kurtmckee/listparser/"
17-
documentation = "https://listparser.readthedocs.io/en/latest/"
1814
keywords = ["opml", "foaf", "feed"]
1915
classifiers = [
2016
"Development Status :: 5 - Production/Stable",
2117
"Intended Audience :: Developers",
18+
"License :: OSI Approved :: MIT License",
19+
"Programming Language :: Python :: 3",
2220
"Topic :: Text Processing :: Markup :: XML",
2321
]
22+
requires-python = ">=3.9"
2423

25-
[tool.poetry.dependencies]
26-
python = ">=3.9"
27-
# The dependencies here must match the minimums tested in `tox.ini`.
28-
requests = {version = ">=2.32.0,<3", optional = true}
29-
lxml = {version = ">=4.6.2,<6", optional = true}
24+
[project.urls]
25+
Repository = "https://github.com/kurtmckee/listparser/"
26+
Documentation = "https://listparser.readthedocs.io/en/latest/"
3027

31-
[tool.poetry.extras]
32-
http = ["requests"]
33-
lxml = ["lxml"]
28+
[project.optional-dependencies]
29+
# The dependencies here must match the minimums tested in `tox.ini`.
30+
http = [
31+
"requests >=2.32.0, <3",
32+
]
33+
lxml = [
34+
"lxml >=4.6.2, <6",
35+
]
3436

3537

3638
# coverage

requirements/docs/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
alabaster==0.7.16 ; python_version >= "3.9"
22
babel==2.16.0 ; python_version >= "3.9"
33
certifi==2024.12.14 ; python_version >= "3.9"
4-
charset-normalizer==3.4.0 ; python_version >= "3.9"
4+
charset-normalizer==3.4.1 ; python_version >= "3.9"
55
colorama==0.4.6 ; python_version >= "3.9" and sys_platform == "win32"
66
docutils==0.21.2 ; python_version >= "3.9"
77
idna==3.10 ; python_version >= "3.9"
@@ -10,7 +10,7 @@ importlib-metadata==8.5.0 ; python_version < "3.10" and python_version >= "3.9"
1010
jinja2==3.1.5 ; python_version >= "3.9"
1111
markupsafe==3.0.2 ; python_version >= "3.9"
1212
packaging==24.2 ; python_version >= "3.9"
13-
pygments==2.18.0 ; python_version >= "3.9"
13+
pygments==2.19.0 ; python_version >= "3.9"
1414
requests==2.32.3 ; python_version >= "3.9"
1515
snowballstemmer==2.2.0 ; python_version >= "3.9"
1616
sphinx==7.4.7 ; python_version >= "3.9"
@@ -21,5 +21,5 @@ sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.9"
2121
sphinxcontrib-qthelp==2.0.0 ; python_version >= "3.9"
2222
sphinxcontrib-serializinghtml==2.0.0 ; python_version >= "3.9"
2323
tomli==2.2.1 ; python_version < "3.11" and python_version >= "3.9"
24-
urllib3==2.2.3 ; python_version >= "3.9"
24+
urllib3==2.3.0 ; python_version >= "3.9"
2525
zipp==3.21.0 ; python_version < "3.10" and python_version >= "3.9"

requirements/mypy/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
lxml-stubs==0.5.1 ; python_version >= "3.9"
22
mypy-extensions==1.0.0 ; python_version >= "3.9"
3-
mypy==1.14.0 ; python_version >= "3.9"
3+
mypy==1.14.1 ; python_version >= "3.9"
44
tomli==2.2.1 ; python_version < "3.11" and python_version >= "3.9"
55
types-requests==2.32.0.20241016 ; python_version >= "3.9"
66
types-toml==0.10.8.20240310 ; python_version >= "3.9"
77
typing-extensions==4.12.2 ; python_version >= "3.9"
8-
urllib3==2.2.3 ; python_version >= "3.9"
8+
urllib3==2.3.0 ; python_version >= "3.9"

requirements/test/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
colorama==0.4.6 ; python_version >= "3.9" and sys_platform == "win32"
2-
coverage[toml]==7.6.9 ; python_version >= "3.9"
2+
coverage[toml]==7.6.10 ; python_version >= "3.9"
33
exceptiongroup==1.2.2 ; python_version < "3.11" and python_version >= "3.9"
44
importlib-metadata==8.5.0 ; python_version < "3.10" and python_version >= "3.9"
55
iniconfig==2.0.0 ; python_version >= "3.9"

src/listparser/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is part of listparser.
2-
# Copyright 2009-2024 Kurt McKee <contactme@kurtmckee.org>
2+
# Copyright 2009-2025 Kurt McKee <contactme@kurtmckee.org>
33
# SPDX-License-Identifier: MIT
44
#
55

0 commit comments

Comments
 (0)