Skip to content

Commit 04b70f1

Browse files
committed
PEP 517 + PEP 639
1 parent dd3ecab commit 04b70f1

4 files changed

Lines changed: 17 additions & 87 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
- "docs/**"
1919
- ".readthedocs.yaml"
2020
- "pyproject.toml"
21-
- "setup.cfg"
21+
- "mypy.ini"
2222
- "**/*.py"
2323

2424
concurrency:

setup.cfg renamed to mypy.ini

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
[metadata]
2-
description_file = README.md
3-
41
[mypy]
52
mypy_path = src/, typings/
63
exclude = build
74
strict = True
85

96
# Leverage type inference for function return type
10-
disallow_untyped_calls=False
11-
disallow_incomplete_defs=False
12-
disallow_untyped_defs=False
7+
disallow_untyped_calls = False
8+
disallow_incomplete_defs = False
9+
disallow_untyped_defs = False
1310

1411
# https://github.com/python/mypy/issues/8234 (post assert "type: ignore")
1512
# https://github.com/python/mypy/issues/8823 (version specific "type: ignore")

pyproject.toml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
[build-system]
2-
requires = ["setuptools", "setuptools-scm"]
2+
requires = ["setuptools>=77.0.3", "setuptools-scm"]
33
build-backend = "setuptools.build_meta"
44

5+
[tool.setuptools.dynamic]
6+
version = { attr = "pywinctl.__version__" } # any module attribute compatible with ast.literal_eval
7+
8+
[project.urls]
9+
Homepage = "https://github.com/Kalmat/PyWinCtl"
10+
Repository = "https://github.com/Kalmat/PyWinCtl.git"
11+
Issues = "https://github.com/Kalmat/PyWinCtl/issues"
12+
Changelog = "https://github.com/Kalmat/PyWinCtl/blob/HEAD/CHANGES.txt"
13+
Documentation = "https://pywinctl.readthedocs.io/"
14+
515
[project]
616
name = "PyWinCtl"
717
dynamic = ["version"]
@@ -10,7 +20,8 @@ authors = [
1020
{ name = "Kalmat", email = "palookjones@gmail.com" }
1121
]
1222
readme = "README.md"
13-
license = { file = "LICENSE.txt" }
23+
license = "BSD-3-Clause"
24+
license-files = ["LICENSE.txt"]
1425
requires-python = ">=3.9"
1526
keywords = [
1627
"activate",
@@ -42,7 +53,6 @@ classifiers = [
4253
"Environment :: Win32 (MS Windows)",
4354
"Environment :: X11 Applications",
4455
"Intended Audience :: Developers",
45-
"License :: OSI Approved :: BSD License",
4656
"Operating System :: OS Independent",
4757
"Programming Language :: Python",
4858
"Programming Language :: Python :: 3",
@@ -84,12 +94,3 @@ exclude-newer = "1 week"
8494
ewmhlib = false
8595
pymonctl = false
8696
pywinbox = false
87-
88-
[project.urls]
89-
Homepage = "https://github.com/Kalmat/PyWinCtl"
90-
91-
[tool.setuptools.packages.find]
92-
where = ["src"] # list of folders that contain the packages (["."] by default)
93-
94-
[tool.setuptools.dynamic]
95-
version = { attr = "pywinctl.__version__" } # any module attribute compatible with ast.literal_eval

setup.py

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

0 commit comments

Comments
 (0)