Debian Codegraph @

Makefile

raw symbols SCIP
1 VERSION=$(shell python3 -c "from configparser import ConfigParser; p = ConfigParser(); p.read('setup.cfg'); print(p['metadata']['version'])")
2
3 default:
4 @echo "\"make publish\"?"
5
6 upload:
7 # Make sure we're on the master branch
8 @if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "master" ]; then exit 1; fi
9 rm -f dist/*
10 # https://stackoverflow.com/a/58756491/353337
11 python3 -m pep517.build --source --binary .
12 twine upload dist/*
13
14 tag:
15 @if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "master" ]; then exit 1; fi
16 curl -H "Authorization: token `cat $(HOME)/.github-access-token`" -d '{"tag_name": "v$(VERSION)"}' https://api.github.com/repos/nwg-piotr/autotiling/releases
17
18 publish: tag upload
19
20 clean:
21 @find . | grep -E "(__pycache__|\.pyc|\.pyo$\)" | xargs rm -rf
22 @rm -rf *.egg-info/ build/ dist/ MANIFEST
23
24 format:
25 isort .
26 black .
27
28 black:
29 black .
30
31 lint:
32 black --check .
33 flake8 .