Skip to content

Commit

Permalink
Fix tag recipe (#233)
Browse files Browse the repository at this point in the history
* Fix tag recipe: use grep to sniff release number from __about__.py

* Other Makefile changes

* Update CHANGELOG
  • Loading branch information
jamescooke authored Nov 4, 2023
1 parent 56569a7 commit aca7194
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ Unreleased_
See also `latest documentation
<https://flake8-aaa.readthedocs.io/en/latest/#__unreleased_marker__>`_.

Changed
.......

* 📕 Version signatures now run on Python 3.12, upgraded from Python 3.11.

* ⛏️ Make tag recipe fixed to work using grep. `Issue 224
<https://github.com/jamescooke/flake8-aaa/issues/224>`_.

0.17.0_ - 2023/10/30
--------------------

Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ docs:
# Generate version signature used in README.rst
.PHONY: signature
signature:
tox exec -e py311-meta_plugin_dogfood -- flake8 --version
tox exec -e py312-meta_plugin_dogfood -- flake8 --version

.PHONY: clean
clean:
Expand All @@ -58,19 +58,19 @@ bdist_wheel:

.PHONY: testpypi
testpypi: clean sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload --username=__token__ --repository-url https://test.pypi.org/legacy/ dist/*

.PHONY: pypi
pypi: sdist bdist_wheel
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
twine upload --username=__token__ --repository-url https://upload.pypi.org/legacy/ dist/*

.PHONY: on_master
on_master:
./on_master.sh

.PHONY: tag
tag: on_master
git tag -a $$(python -c 'from src.flake8_aaa.__about__ import __version__; print("v{}".format(__version__))')
git tag -a v$$(grep -E "^__version__ = .*" -- src/flake8_aaa/__about__.py | grep -Eo '[0-9\.]*')

.PHONY: fixlint
fixlint:
Expand Down

0 comments on commit aca7194

Please sign in to comment.