forked from kpedro88/pyfeyn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (28 loc) · 751 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
livehtml:
hatch run all:$(MAKE) -C docs livehtml
html:
hatch run all:$(MAKE) -C docs html
pdf:
hatch run all:$(MAKE) -C docs latexpdf
doc: html
install:
hatch env create
python3 -m pip install --user .
build:
hatch build
test:
rm -f .coverage coverage.xml
hatch run all:pytest --cov=pyfeyn2 --cov-config=.coveragerc --cov-append --cov-report=term --cov-report=xml
commit:
-git add .
-git commit
push: commit
git push
pull: commit
git pull
clean:
rm -r docs/build docs/source/_autosummary
rm -r .eggs .pytest_cache *.egg-info dist build
release: push html
git tag $(shell git describe --tags --abbrev=0 | perl -lpe 'BEGIN { sub inc { my ($$num) = @_; ++$$num } } s/(\d+\.\d+\.)(\d+)/$$1 . (inc($$2))/eg')
git push --tags