From 3eefc351f7ab61cf5437d77dbfcf6c1d22514f30 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 2 Dec 2023 13:25:56 +1100 Subject: [PATCH 1/2] Include logo.svg in build process --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index f4aa5af..648791e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,13 @@ lint = 'ruff check src/mpd_now_playable' typecheck = 'mypy -p mpd_now_playable' check = {composite = ['lint', 'typecheck']} +[build-system] +requires = ["pdm-backend"] +build-backend = "pdm.backend" + +[tool.pdm.build] +excludes = ["**/.mypy_cache"] + [tool.pdm.dev-dependencies] dev = [ "mypy>=1.7.1", From 6ac8034bbe4cbbbc07ac7fed5024da6dfeeb57a4 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 2 Dec 2023 13:31:56 +1100 Subject: [PATCH 2/2] Load package version from Git tags --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 648791e..9b5b83d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mpd-now-playable" -version = "0.0.1" +dynamic = ["version"] description = "Expose your MPD server as a 'now playable' app on MacOS" authors = [ {name = "Danielle McLean", email = "dani@00dani.me"}, @@ -24,6 +24,9 @@ lint = 'ruff check src/mpd_now_playable' typecheck = 'mypy -p mpd_now_playable' check = {composite = ['lint', 'typecheck']} +[tool.pdm.version] +source = "scm" + [build-system] requires = ["pdm-backend"] build-backend = "pdm.backend"