diff --git a/Makefile b/Makefile index 3dea4e5..d4e504d 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,16 @@ -.PHONY: help -help: - @echo 'commands:' - @echo ' dist' - -dist-env: - @echo Creating virtual environment... - @python3 -m venv 'dist-env' - @source dist-env/bin/activate && pip install twine - -.PHONY: dist -dist: dist-env - [ -z "$${VIRTUAL_ENV}" ] # you can not do this inside a virtual environment. - rm -rf dist +dist: setup.py lektor_groupby/* @echo Building... python3 setup.py sdist bdist_wheel - @echo rm -rf ./*.egg-info/ ./build/ MANIFEST + +env-publish: + @echo Creating virtual environment... + @python3 -m venv 'env-publish' + @source env-publish/bin/activate && pip install twine + +.PHONY: publish +publish: dist env-publish + [ -z "$${VIRTUAL_ENV}" ] # you can not do this inside a virtual environment. @echo Publishing... - @echo "\033[0;31mEnter your PyPI token:\033[0m" - @source dist-env/bin/activate && export TWINE_USERNAME='__token__' && twine upload dist/* + @echo "\033[0;31mEnter PyPI token in password prompt:\033[0m" + @source env-publish/bin/activate && export TWINE_USERNAME='__token__' && twine upload dist/* diff --git a/examples/Examples.lektorproject b/examples/Examples.lektorproject index b4a7af8..a5fca33 100644 --- a/examples/Examples.lektorproject +++ b/examples/Examples.lektorproject @@ -2,4 +2,4 @@ name = GroupBy Examples [packages] -lektor-groupby = 0.9.3 +lektor-groupby = 0.9.6 diff --git a/setup.py b/setup.py index 389792d..109f17a 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( }, author='relikd', url='https://github.com/relikd/lektor-groupby-plugin', - version='0.9.5', + version='0.9.6', description='Cluster arbitrary records with field attribute keyword.', long_description=longdesc, long_description_content_type="text/markdown",