Skip to content

Commit d46fe93

Browse files
committed
feature (makefile): add target to validate distribution
1 parent 722455d commit d46fe93

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ ifndef target
88
@(which mh > /dev/null 2>&1 && echo -e "\nUse \`make help target=foo\` to learn more about foo.")
99
endif
1010

11-
1211
.PHONY: build-sdist
1312
build-sdist: ## Build source distribution
1413
python3 -m build -s
@@ -20,8 +19,13 @@ build-wheel: ## Build wheel distribution (and source distribution)
2019
.PHONY: build-clean
2120
build-clean: ## Clean build artifacts
2221
rm -rf dist
22+
rm -rf log4mongo_python.egg-info/
23+
24+
.PHONY: build-check
25+
build-check: ## Check build artifacts
26+
twine check dist/*
2327

2428
.PHONY: build-pypi-publish
25-
build-pypi-publish: ## Publish to PyPI
29+
build-pypi-publish: build-check ## Publish to PyPI
2630
python3 -m twine upload dist/*
2731

0 commit comments

Comments
 (0)