From 66c160a3d2a6b6327c215ca3e5fae4540e53a929 Mon Sep 17 00:00:00 2001 From: "Rodney, Tiara" Date: Sat, 29 Mar 2025 20:07:37 +0100 Subject: [PATCH] feat(build): add build target --- Makefile | 5 ++++- Pipfile | 4 ++++ Pipfile.lock | 19 ++++++++++++++++++- requirements-dev.txt | 2 ++ 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7c211fd..1e6a41b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: requirements.txt requirements-dev.txt configure Pipfile.lock src/sphinx_theme_ref/assets +.PHONY: requirements.txt requirements-dev.txt configure Pipfile.lock src/sphinx_theme_ref/assets build PKG_BASENAME := sphinx_theme_ref @@ -26,3 +26,6 @@ uat: make -C vendor/html-theme-ref watch OUTPUT_PATH=$(VENDOR_OUTPUT_PATH) & \ wait +build: + .venv/bin/pipenv run build + diff --git a/Pipfile b/Pipfile index b3a41a7..010ca8f 100644 --- a/Pipfile +++ b/Pipfile @@ -13,6 +13,10 @@ autopep8 = "~=2.3.2" setuptools-scm = "~=8.2.0" pipenv = "~=2024.4.1" pylint = "~=3.3.6" +build = "*" [requires] python_version = "3.11" + +[scripts] +"build" = "python3 -m build" diff --git a/Pipfile.lock b/Pipfile.lock index 82a0834..29fca50 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "8c2e30a675ca4e39b00ab619b8a7d2e3b8331eb4e4a8a7a9613526d113501465" + "sha256": "392503c17641b02b8fc371df27b291782f0d9bec49c60057424a5147f859d3c5" }, "pipfile-spec": 6, "requires": { @@ -363,6 +363,15 @@ "markers": "python_version >= '3.9'", "version": "==2.3.2" }, + "build": { + "hashes": [ + "sha256:1d61c0887fa860c01971625baae8bdd338e517b836a2f70dd1f7aa3a6b2fc5b5", + "sha256:b36993e92ca9375a219c99e606a122ff365a760a2d4bba0caa09bd5278b608b7" + ], + "index": "pypi", + "markers": "python_version >= '3.8'", + "version": "==1.2.2.post1" + }, "cachetools": { "hashes": [ "sha256:1a661caa9175d26759571b2e19580f9d6393969e5dfca11fdb1f947a23e640d4", @@ -539,6 +548,14 @@ "markers": "python_version >= '3.9'", "version": "==1.9.0" }, + "pyproject-hooks": { + "hashes": [ + "sha256:1e859bd5c40fae9448642dd871adf459e5e2084186e8d2c2a79a824c970da1f8", + "sha256:9e5c6bfa8dcc30091c74b0cf803c81fdd29d94f01992a7707bc97babb1141913" + ], + "markers": "python_version >= '3.7'", + "version": "==1.2.0" + }, "setuptools": { "hashes": [ "sha256:583b361c8da8de57403743e756609670de6fb2345920e36dc5c2d914c319c945", diff --git a/requirements-dev.txt b/requirements-dev.txt index 61daccc..de3db60 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,7 @@ -i https://pypi.org/simple astroid==3.3.9; python_full_version >= '3.9.0' autopep8==2.3.2; python_version >= '3.9' +build==1.2.2.post1; python_version >= '3.8' cachetools==5.5.2; python_version >= '3.7' certifi==2025.1.31; python_version >= '3.6' chardet==5.2.0; python_version >= '3.7' @@ -19,6 +20,7 @@ pluggy==1.5.0; python_version >= '3.8' pycodestyle==2.12.1; python_version >= '3.8' pylint==3.3.6; python_full_version >= '3.9.0' pyproject-api==1.9.0; python_version >= '3.9' +pyproject-hooks==1.2.0; python_version >= '3.7' setuptools==77.0.3; python_version >= '3.9' setuptools-scm==8.2.0; python_version >= '3.8' tomlkit==0.13.2; python_version >= '3.8'