Skip to content

Update Python tooling, Debian packaging#340

Draft
crawfxrd wants to merge 3 commits intomasterfrom
python-tooling
Draft

Update Python tooling, Debian packaging#340
crawfxrd wants to merge 3 commits intomasterfrom
python-tooling

Conversation

@crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Sep 26, 2025

  • Python
    • Replace deprecated distutils with setuptools
    • Move logic from setup.py to setup.cfg
    • Add pyproject.toml for modern tooling
    • Use pytest instead of custom command runner
    • Bump required Python version to 3.8
  • Debian
    • Increase compat from 9 to 12
    • Use machine-readable copyright file
    • Fix Priority category
    • Remove overrides calling setup.py
    • Remove support for deprecated Upstart
  • General
    • Convert license blocks to SPDX tags

Note: 20.04 and 22.04 do not support pyproject.toml.

  • 20.04: Does not have pybuild-plugin-pyproject
  • 22.04: python3-setuptools is too old

@crawfxrd crawfxrd force-pushed the python-tooling branch 3 times, most recently from 01467a2 to b225a98 Compare September 28, 2025 18:16
@crawfxrd crawfxrd changed the title Update Python tooling Update Python tooling, Debian packaging Sep 28, 2025
@crawfxrd crawfxrd force-pushed the python-tooling branch 8 times, most recently from 852b525 to fe4d28a Compare September 30, 2025 02:41
@crawfxrd crawfxrd linked an issue Sep 30, 2025 that may be closed by this pull request
@crawfxrd crawfxrd force-pushed the python-tooling branch 5 times, most recently from 0d3c6f0 to 5f7d5c6 Compare October 6, 2025 22:22
Base automatically changed from version-release to master October 20, 2025 17:48
- Python
  - Replace deprecated `distutils` with `setuptools`
  - Move logic from `setup.py` to `setup.cfg`
  - Add `pyproject.toml` for modern tooling
  - Use pytest instead of custom command runner
  - Bump required Python version to 3.8
- Debian
  - Increase compat from 9 to 12
  - Use machine-readable copyright file
  - Fix `Priority` category
  - Remove overrides calling `setup.py`
  - Remove support for deprecated Upstart

Note: 20.04 and 22.04 do not support `pyproject.toml`.

- 20.04: Does not have `pybuild-plugin-pyproject`
- 22.04: `python3-setuptools` is too old

Signed-off-by: Tim Crawford <tcrawford@system76.com>
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

requirements.txt

1 participant