Commit 0e5951a8 authored by Eric Duminil's avatar Eric Duminil
Browse files

Makefile

parent d97704c5
......@@ -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 pytests ## 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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment