-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathjustfile
More file actions
44 lines (34 loc) · 1.13 KB
/
justfile
File metadata and controls
44 lines (34 loc) · 1.13 KB
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
test:
echo "Running Tests"
pytest absbox/tests/regression/test_main.py
update-version version:
echo "Update Version: {version}"
# sed -i "s/^version = .*/version = \"{version}\"/g" pyproject.toml
sed -i "s/^version = .*/version = {{version}}/g" setup.cfg
sed -i "s/^release = .*/release = \"{{version}}\"/g" docs/source/conf.py
sed -i "s/^version = .*/version = \"{{version}}\"/g" docs/source/conf.py
tag env version:
echo "Tagging"
git add pyproject.toml setup.cfg
git commit -m "bump version to-> < {{version}} >"
git tag -a {{env}}{{version}} -m "{{env}}{{version}}"
git push origin HEAD --tag
untag version:
echo "Untagging"
git tag -d {{version}}
git push --delete origin
push-tag:
echo "Pushing Tag"
git push origin HEAD --tag
push-code:
echo "Pushing Code"
git push origin HEAD
live-doc:
echo "Live Doc"
sphinx-autobuild docs/source docs/build/html --open-browser --watch docs/source
publish env version:
echo "Pushing to PyPI {{env}}"
just test
just update-version {{version}}
just tag {{env}} {{version}}
just push-code