Skip to content

Commit eb3ad27

Browse files
committed
pyproject: nuke setup.py
Requires setuptools >= 61, which is when PEP 621 (Storing project metadata in pyproject.toml) support was added. For convenience, setuptools 66.1.1 will soon exist in Debian's bullseye-backports. This also requires a newer pip, with support for PEP 660 (Editable installs for pyproject.toml based builds) in the tox dev environment.
1 parent 0dd02cc commit eb3ad27

File tree

5 files changed

+7
-71
lines changed

5 files changed

+7
-71
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ Python 3.9+, plus the following modules from PyPI or your distribution:
4949
The software is currently self-contained in a single Python file, so running it from the cloned directory should work,
5050
provided the necessary libraries above are also present.
5151

52-
A standard `pyproject.toml` using setuptools as the build system, as well as a
53-
legacy `setup.py` are provided as well.
52+
A standard `pyproject.toml` using setuptools as the build system is provided as well.
5453

5554
# Copyright and license
5655

debian/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Build-Depends:
77
dh-sequence-python3,
88
pybuild-plugin-pyproject,
99
python3-all,
10-
python3-setuptools,
10+
python3-setuptools (>= 61),
1111
Standards-Version: 4.6.2
1212
Homepage: https://github.com/paravoid/ircstream
1313
X-Python3-Version: >= 3.9

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=45"]
2+
requires = ["setuptools>=61"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools]

setup.py

-66
This file was deleted.

tox.ini

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
[tox]
22
envlist = py{39,311}, py39-bullseye, py311-bookworm, type, lint, coverage
33
skip_missing_interpreters = true
4+
# require newer pip with PEP 660 support
5+
requires =
6+
pip>=21.3.1
47

58
[main]
6-
source = ircstream.py setup.py tests/
9+
source = ircstream.py tests/
710

811
[testenv]
912
usedevelop = True

0 commit comments

Comments
 (0)