Skip to content

Commit af8b7d4

Browse files
efkon-tkemtkem
authored andcommitted
Fix #372: Convert setup.cfg to pyproject.toml.
1 parent 20b8a19 commit af8b7d4

4 files changed

Lines changed: 51 additions & 51 deletions

File tree

pyproject.toml

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
11
[build-system]
2-
requires = ["setuptools >= 46.4.0", "wheel"]
2+
requires = ["setuptools >= 61.0.0", "wheel"]
33
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "cachetools"
7+
dynamic = ["version"]
8+
description = "Extensible memoizing collections and decorators"
9+
authors = [
10+
{name = "Thomas Kemmer", email = "tkemmer@computer.org"}
11+
]
12+
maintainers = [
13+
{name = "Thomas Kemmer", email = "tkemmer@computer.org"}
14+
]
15+
readme = "README.rst"
16+
license = "MIT"
17+
license-files = ["LICENSE"]
18+
requires-python = ">= 3.9"
19+
classifiers = [
20+
"Development Status :: 5 - Production/Stable",
21+
"Intended Audience :: Developers",
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.9",
26+
"Programming Language :: Python :: 3.10",
27+
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: 3.13",
30+
"Programming Language :: Python :: 3.14",
31+
"Topic :: Software Development :: Libraries :: Python Modules",
32+
]
33+
34+
[project.urls]
35+
Homepage = "https://github.com/tkem/cachetools/"
36+
37+
[tool.setuptools]
38+
package-dir = {"" = "src"}
39+
40+
[tool.setuptools.packages.find]
41+
where = ["src"]
42+
43+
[tool.setuptools.dynamic]
44+
version = {attr = "cachetools.__version__"}
45+
46+
[tool.flake8]
47+
max-line-length = 80
48+
exclude = [".git", ".tox", "build"]
49+
select = ["C", "E", "F", "W", "B", "B950", "I", "N"]
50+
# F401: imported but unused (submodule shims)
51+
# E501: line too long (black)
52+
ignore = ["F401", "E501"]

setup.cfg

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

setup.py

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

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ deps =
3333
flake8-black
3434
flake8-bugbear
3535
flake8-import-order
36+
flake8-pyproject
3637
commands =
3738
flake8
3839
skip_install = true

0 commit comments

Comments
 (0)