File tree Expand file tree Collapse file tree 11 files changed +18
-94
lines changed Expand file tree Collapse file tree 11 files changed +18
-94
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ jobs:
2828 java-version : ' 8'
2929 distribution : ' zulu'
3030
31- - name : Install Appose
31+ - name : Set up uv
3232 run : |
3333 python -m pip install --upgrade pip
34- python -m pip install -e '.[dev]'
34+ python -m pip install uv
3535
3636 - name : Run the tests
3737 run : |
Original file line number Diff line number Diff line change 33* egg-info /
44/.eggs /
55/.idea /
6+ /.pytest_cache /
7+ /.venv /
68/.vscode /
79/build /
810/dist /
911/eggs /
1012/target /
13+ /uv.lock
Original file line number Diff line number Diff line change 11help :
22 @echo " Available targets:\n\
33 clean - remove build files and directories\n \
4- setup - create mamba developer environment\n \
54 lint - run code formatters and linters\n \
65 test - run automated test suite\n \
76 dist - generate release archives\n \
8- \n \
9- Remember to ' mamba activate appose-dev' first! "
7+ "
108
119clean :
1210 bin/clean.sh
1311
14- setup :
15- bin/setup.sh
16-
1712check :
1813 @bin/check.sh
1914
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- case " $CONDA_PREFIX " in
4- * /appose-dev)
5- ;;
6- * )
7- echo " Please run 'make setup' and then 'mamba activate appose-dev' first."
8- exit 1
9- ;;
10- esac
3+ if ! command -v uv > /dev/null 2>&1 ; then
4+ echo " Please install uv (https://docs.astral.sh/uv/getting-started/installation/)."
5+ exit 1
6+ fi
Original file line number Diff line number Diff line change 33dir=$( dirname " $0 " )
44cd " $dir /.."
55
6- python -m build
6+ uv run python -m build
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ dir=$(dirname "$0")
44cd " $dir /.."
55
66exitCode=0
7- black src tests
7+ uv run validate-pyproject pyproject.toml
88code=$? ; test $code -eq 0 || exitCode=$code
9- isort src tests
9+ uv run black src tests
1010code=$? ; test $code -eq 0 || exitCode=$code
11- python -m flake8 src tests
11+ uv run isort src tests
1212code=$? ; test $code -eq 0 || exitCode=$code
13- validate-pyproject pyproject.toml
13+ uv run python -m flake8 src tests
1414code=$? ; test $code -eq 0 || exitCode=$code
1515exit $exitCode
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3434
3535if [ $# -gt 0 ]
3636then
37- python -m pytest -v -p no:faulthandler $@
37+ uv run python -m pytest -v -p no:faulthandler $@
3838else
39- python -m pytest -v -p no:faulthandler tests
39+ uv run python -m pytest -v -p no:faulthandler tests
4040fi
Load Diff This file was deleted.
Load Diff This file was deleted.
You canβt perform that action at this time.
0 commit comments