From 551e7f87b1bbeb831ba8298debed2e91af6fbf44 Mon Sep 17 00:00:00 2001 From: Dylan Verheul Date: Thu, 28 Dec 2023 15:13:21 +0100 Subject: [PATCH] Use setuptools-scm to build package --- Makefile | 2 +- pyproject.toml | 2 +- requirements-dev.txt | 3 +++ requirements-test.txt | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 72062bc2..30d11ee4 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ publish: porcelain branch build git push origin --tags .PHONY: clean -clean: docs +clean: rm -rf build dist src/*.egg-info .coverage* .PHONY: version diff --git a/pyproject.toml b/pyproject.toml index 57cbc276..98f1c4ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] build-backend = "setuptools.build_meta" -requires = ["setuptools"] +requires = ["setuptools>=64", "setuptools_scm>=8"] [project] authors = [ diff --git a/requirements-dev.txt b/requirements-dev.txt index 9c8d1209..bdb6d087 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,6 @@ -r requirements-test.txt -r docs/requirements.txt twine==4.0.2 +build==1.0.3 +setuptools==69.0.3 +setuptools_scm==8.0.4 diff --git a/requirements-test.txt b/requirements-test.txt index 9a1574c5..743ae8ec 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,5 +1,5 @@ tox==4.11.4 -coverage==7.3.4 +coverage==7.4.0 ruff==0.1.9 pillow>=10.1.0 beautifulsoup4>=4.12.2