Skip to content

Commit

Permalink
feature (makefile): add target to validate distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
oz123 committed Jul 21, 2024
1 parent 722455d commit d46fe93
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ ifndef target
@(which mh > /dev/null 2>&1 && echo -e "\nUse \`make help target=foo\` to learn more about foo.")
endif


.PHONY: build-sdist
build-sdist: ## Build source distribution
python3 -m build -s
Expand All @@ -20,8 +19,13 @@ build-wheel: ## Build wheel distribution (and source distribution)
.PHONY: build-clean
build-clean: ## Clean build artifacts
rm -rf dist
rm -rf log4mongo_python.egg-info/

.PHONY: build-check
build-check: ## Check build artifacts
twine check dist/*

.PHONY: build-pypi-publish
build-pypi-publish: ## Publish to PyPI
build-pypi-publish: build-check ## Publish to PyPI
python3 -m twine upload dist/*

0 comments on commit d46fe93

Please sign in to comment.