Skip to content

Commit

Permalink
build: added bump-version Makefile target
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jun 10, 2024
1 parent 72108cd commit 881c94a
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 @@ -29,8 +29,7 @@ test:
typecheck:
python -m mypy aw_server tests --ignore-missing-imports

package:
python -m aw_server.__about__
package: bump-version
rm -rf dist
pyinstaller aw-server.spec --clean --noconfirm

Expand All @@ -46,6 +45,11 @@ lint-fix:
format:
black .

bump-version:
@# make sure to pull tags in parent repo before running this
poetry run python -m aw_server.__about__
VERSION=$$(grep -oP '__version__ = "v\K[^"]+' aw_server/__about__.py | head -n1); echo $$VERSION; poetry version $$VERSION

clean:
rm -rf build dist
rm -rf aw_server/__pycache__
Expand Down

0 comments on commit 881c94a

Please sign in to comment.