Skip to content

Commit 4345cd9

Browse files
committed
Update release code
1 parent 078467d commit 4345cd9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Makefile

+8-5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ help:
1717
pypi-html:
1818
python3 setup.py --long-description | rst2html.py > pypi-doc.html
1919

20+
run-pre-commit:
21+
pre-commit run -a
22+
2023
run-tests:
2124
python3 -m unittest discover tests/ '*test.py'
2225

@@ -43,10 +46,10 @@ requirements-dev:
4346
requirements-build:
4447
pip3 install -r requirements-build.txt
4548

46-
pre-release-check: run-type-check run-flake8 run-coverage pypi-html run-tox
49+
pre-release-check: run-pre-commit run-type-check run-flake8 run-coverage pypi-html run-tox
4750
echo "Pre-release check was successful"
4851

49-
release:
52+
release: pre-release-check
5053
if [ "x$(MSG)" = "x" -o "x$(VERSION)" = "x" ]; then \
5154
echo "Use make release MSG='some msg' VERSION='1.2.3'"; \
5255
exit 1; \
@@ -90,9 +93,9 @@ release:
9093
sed -ri 's/^release = .*/release = "'$(VERSION)'"/' conf.py; \
9194
sed -ri 's/^version = .*/version = "'$$short_VERSION'"/' conf.py; \
9295
sed -ri 's/^__version__ = .*/__version__ = ('"$$commas_VERSION"')/' wikipediaapi/__init__.py; \
93-
git commit setup.py conf.py wikipediaapi/__init__.py -m "Update version to $(VERSION) for new release."; \
94-
git push; \
95-
git tag v$(VERSION) -m "$(MSG)"; \
96+
git commit .github CHANGES.rst setup.py conf.py wikipediaapi/__init__.py -m "Update version to $(VERSION) for new release." && \
97+
git push && \
98+
git tag v$(VERSION) -m "$(MSG)" && \
9699
git push --tags origin master
97100

98101
# Catch-all target: route all unknown targets to Sphinx using the new

0 commit comments

Comments
 (0)