feat(build): add build target

This commit is contained in:
Rodney, Tiara 2025-03-29 20:07:37 +01:00
parent 93ad4992a7
commit 66c160a3d2
No known key found for this signature in database
GPG key ID: 5CD8EC1D46106723
4 changed files with 28 additions and 2 deletions

View file

@ -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

View file

@ -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"

19
Pipfile.lock generated
View file

@ -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",

View file

@ -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'