Skip to content

Commit 46e844b

Browse files
authored
Merge pull request #155 from nschloe/just
make -> just
2 parents 65666b9 + 462ebc0 commit 46e844b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Makefile renamed to justfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
VERSION=$(shell python3 -c "from configparser import ConfigParser; p = ConfigParser(); p.read('setup.cfg'); print(p['metadata']['version'])")
1+
version := `python3 -c "from configparser import ConfigParser; p = ConfigParser(); p.read('setup.cfg'); print(p['metadata']['version'])"`
22

33
default:
44
@echo "\"make publish\"?"
55

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

1010
upload: clean
11-
# Make sure we're on the main branch
12-
@if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi
11+
@if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then exit 1; fi
1312
python3 -m build --sdist .
1413
twine upload dist/*.tar.gz
1514
# 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/

0 commit comments

Comments
 (0)