Skip to content

Commit

Permalink
Merge pull request #155 from nschloe/just
Browse files Browse the repository at this point in the history
make -> just
  • Loading branch information
nschloe authored Sep 20, 2021
2 parents 65666b9 + 462ebc0 commit 46e844b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Makefile → justfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
VERSION=$(shell python3 -c "from configparser import ConfigParser; p = ConfigParser(); p.read('setup.cfg'); print(p['metadata']['version'])")
version := `python3 -c "from configparser import ConfigParser; p = ConfigParser(); p.read('setup.cfg'); print(p['metadata']['version'])"`

default:
@echo "\"make publish\"?"

tag:
@if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi
curl -H "Authorization: token `cat $(HOME)/.github-access-token`" -d '{"tag_name": "v$(VERSION)"}' https://github.com/repos/nschloe/pygalmesh/releases
@if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi
curl -H "Authorization: token `cat ~/.github-access-token`" -d '{"tag_name": "{{version}}"}' https://github.com/repos/nschloe/meshio/releases

upload: clean
# Make sure we're on the main branch
@if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi
@if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi
python3 -m build --sdist .
twine upload dist/*.tar.gz
# HTTPError: 400 Client Error: Binary wheel 'pygalmesh-0.2.0-cp27-cp27mu-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'. for url: https://upload.pypi.org/legacy/
Expand Down

0 comments on commit 46e844b

Please sign in to comment.