forked from ScandEval/ScandEval
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
49 lines (45 loc) · 1.12 KB
/
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
41
42
43
44
45
46
47
48
49
include .env
export $(shell sed 's/=.*//' .env)
documentation:
sphinx-apidoc -o docs/source --force scandeval && \
rm docs/source/modules.rst || echo "Did not have to remove modules.rst"
make -C docs html
release-major:
pytest -n 4 scandeval && \
make documentation && \
python bump_version.py --major && \
git pull origin main && \
git push && \
git checkout main && \
git merge dev && \
git push && \
git push --tags && \
git checkout dev && \
python setup.py sdist bdist_wheel && \
twine upload dist/*
release-minor:
pytest -n 4 scandeval && \
make documentation && \
python bump_version.py --minor && \
git pull origin main && \
git push && \
git checkout main && \
git merge dev && \
git push && \
git push --tags && \
git checkout dev && \
python setup.py sdist bdist_wheel && \
twine upload dist/*
release-patch:
pytest -n 4 scandeval && \
make documentation && \
python bump_version.py --patch && \
git pull origin main && \
git push && \
git checkout main && \
git merge dev && \
git push && \
git push --tags && \
git checkout dev && \
python setup.py sdist bdist_wheel && \
twine upload dist/*