Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
simstadtpy
Commits
0e5951a8
Commit
0e5951a8
authored
Mar 12, 2026
by
Eric Duminil
Browse files
Makefile
parent
d97704c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
0e5951a8
...
...
@@ -5,8 +5,11 @@
help
:
##
Show this help.
@
egrep
-h
'(\s##\s|^##\s)'
$(MAKEFILE_LIST)
| egrep
-v
'^--'
|
awk
'BEGIN {FS = ":.*?## "}; {printf "\033[32m %-35s\033[0m %s\n", $$1, $$2}'
pytests
:
##
Run detailed tests
PYTHONPATH
=
src pytest
-v
tests
:
##
Run detailed tests
uv run pytest
-v
simstadt
:
##
Run simstadt script
,
and display info about SimStadt
uv run simstadt
tests_installed_package
:
##
Tests the installed simstadt package
pytest
--pyargs
simstadt
-v
...
...
@@ -16,17 +19,17 @@ clean: ## Remove pyc and pycache
rm
-f
dist/
*
.tar.gz
rm
-f
dist/
*
.whl
build
_package
:
clean
py
tests
##
Build PyPI package
build
:
clean tests
##
Build PyPI package
uv build
unzip
-l
dist/
*
.whl
_check_upload
:
@
echo
-n
"Are you sure you want to upload the package to PyPI? [y/N] "
&&
read
ans
&&
[
$
${
ans
:-
N
}
=
y
]
upload_package_to_testpypi
:
_check_upload build
_package
##
Upload PyPI package to https://test.pypi.org/
upload_package_to_testpypi
:
_check_upload build
##
Upload PyPI package to https://test.pypi.org/
uv publish
--publish-url
https://test.pypi.org/legacy/
upload_package_to_pypi
:
_check_upload build
_package
##
Upload PyPI package to https://pypi.org/
upload_package_to_pypi
:
_check_upload build
##
Upload PyPI package to https://pypi.org/
uv publish
install_editable
:
##
Install package in dev mode
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment