Skip to content

Commit

Permalink
software: migrate to PDM-Backend build backend.
Browse files Browse the repository at this point in the history
This provides us with the same functionality as setuptools with none of
the legacy complexity and issues.

It also means that we use the same vendor for our package management and
package build system, reducing the fragmentation in our dependency tree.
  • Loading branch information
whitequark committed Oct 21, 2023
1 parent 3f802df commit 1ddc031
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions software/.gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Python
*.pyc
__pycache__/
*.egg-info
/dist
/build

# pdm
/.pdm-plugins
/.pdm-python
/.pdm-build
/.venv*
/pdm.lock
14 changes: 5 additions & 9 deletions software/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[tool.pdm.version]
source = "scm"

[project]
dynamic = ["version"]

Expand Down Expand Up @@ -108,15 +111,8 @@ radio-nrf24l1 = "glasgow.applet.radio.nrf24l01:RadioNRF24L01Applet"
# Build system configuration

[build-system]
requires = ["setuptools>=67.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools.package-data]
"glasgow.device" = ["firmware.ihex"]

[tool.setuptools_scm]
root = ".."
local_scheme = "node-and-timestamp"
requires = ["pdm-backend"]
build-backend = "pdm.backend"

# Development workflow configuration

Expand Down

0 comments on commit 1ddc031

Please sign in to comment.