Skip to content

Commit 1c7a0e6

Browse files
committed
fix: build and publish package commands added
1 parent 69e69a2 commit 1c7a0e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ ci-info: ## Print info about environment
3434
bootstrap-dev: ## Install dev requirements
3535
pip install .[dev]
3636

37+
build-pythonpackage: ## Build Python package ready to upload to pypi
38+
python setup.py sdist
39+
40+
push-pythonpackage: ## Push python package to pypi
41+
twine upload --skip-existing dist/tutor-contrib-wordpress-$(shell make version).tar.gz
42+
43+
version: ## Print the current tutor version
44+
@python -c 'import io, os; about = {}; exec(io.open(os.path.join("tutorwordpress", "__about__.py"), "rt", encoding="utf-8").read(), about); print(about["__version__"])'
45+
3746
ESCAPE = 
3847
help: ## Print this help
3948
@grep -E '^([a-zA-Z_-]+:.*?## .*|######* .+)$$' Makefile \

0 commit comments

Comments
 (0)