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
99a0c07a
Commit
99a0c07a
authored
Mar 12, 2026
by
Eric Duminil
Browse files
Wrong makefile. Still for inselpy
parent
2b6eb969
Changes
1
Show whitespace changes
Inline
Side-by-side
Makefile
0 → 100644
View file @
99a0c07a
################################################################################
# SimStadt in Python #
################################################################################
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}'
tests
:
##
Run tests
python3
-m
unittest discover src/
pytests
:
##
Run detailed tests
pytest
-v
tests_installed_package
:
##
Tests the installed insel package
pytest
--pyargs
insel
-v
coverage
:
##
Check tests coverage
ruby misc/check_block_coverage.rb
clean
:
##
Remove pyc and pycache
find
.
-type
f
-name
'*.py[co]'
-delete
-o
-type
d
-name
__pycache__
-delete
rm
-f
dist/
*
.tar.gz
rm
-f
dist/
*
.whl
#NOTE: .egg-info holds too much information
rm
-rf
src/insel.egg-info/
build_package
:
clean pytests
##
Build PyPI package
python3
-m
pip
install
--upgrade
build
python3
-m
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/
python3
-m
twine upload
--repository
testpypi dist/
*
--verbose
upload_package_to_pypi
:
_check_upload build_package
##
Upload PyPI package to https://pypi.org/
python3
-m
twine upload dist/
*
--verbose
install_editable
:
##
Install package in dev mode
pip
install
-e
.
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