-
Notifications
You must be signed in to change notification settings - Fork 36
/
justfile
35 lines (23 loc) · 965 Bytes
/
justfile
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
# create a wheel with last version
build:
sed -i "/^version = /c\version = \"$(grep '__version__' boris/version.py | awk -F'"' '{print $2}')\"" pyproject.toml
sed -i "/^current_version = /c\current_version = \"$(grep '__version__' boris/version.py | awk -F'"' '{print $2}')\"" pyproject.toml
# dtf pyproject.toml # dtf (dynamic text file required on path)
git commit -am "new wheel" || true
git push
uv build
publish:
uvx twine upload --verbose --repository pypi dist/*
publish_test:
uvx twine upload --verbose --repository testpypi dist/*
#create_wheel:
# dtf pyproject.toml # dtf (dynamic text file required on path)
# git commit -am "new wheel"; git push; rm -rf *.egg-info build dist
# python3 -m build
# twine check dist/*
# upload wheel on testPyPI
#upload_pip_test:
# python3 -m twine upload --verbose --repository testpypi dist/*
# upload wheel on PyPI
#upload_pip:
# python3 -m twine upload --verbose dist/*