diff --git a/Makefile b/Makefile index 0b40b75790..03ed3ae699 100644 --- a/Makefile +++ b/Makefile @@ -13,13 +13,14 @@ default: @echo " make test - run evennia test suite with all default values." @echo " make tests=evennia.path test - run only specific test or tests." @echo " make testp - run test suite using multiple cores." + @echo " make publish - publish evennia to pypi (requires pypi credentials) install: pip install -e . installextra: pip install -e . - pip install -r requirements_extra.txt + pip install -e .[extra] # black is configured from pyproject.toml format: @@ -42,3 +43,11 @@ testp: cd $(TEST_GAME_DIR);\ evennia migrate;\ evennia test --keepdb --parallel 4 $(TESTS);\ + +publish: + rm -Rf dist/ + git clean -xdf + pip install --upgrade pip + pip install build twine + python -m build --sdist --wheel --outdir dist/ . + python -m twine upload dist/*