Replace rye by uv and upgrade to python 3.13.1
This commit is contained in:
parent
0d144a683f
commit
5c51a18d0c
7 changed files with 539 additions and 220 deletions
18
Makefile
18
Makefile
|
|
@ -11,28 +11,28 @@ endif
|
|||
all: black typehint lint
|
||||
|
||||
black:
|
||||
rye run isort --multi-line 3 --profile black src/ tests/
|
||||
rye run black --target-version py311 src/ tests/
|
||||
uv run isort --multi-line 3 --profile black src/ tests/
|
||||
uv run black --target-version py311 src/ tests/
|
||||
|
||||
typehint:
|
||||
rye run mypy --ignore-missing-imports src/ tests/
|
||||
uv run mypy --ignore-missing-imports src/ tests/
|
||||
|
||||
lint:
|
||||
rye run pylint src/
|
||||
uv run pylint src/
|
||||
|
||||
# check
|
||||
check: all
|
||||
|
||||
# test
|
||||
test:
|
||||
rye run coverage run -m --source=stacosys pytest tests
|
||||
rye run coverage report
|
||||
PYTHONPATH=src/ uv run coverage run -m --source=stacosys pytest tests
|
||||
uv run coverage report
|
||||
|
||||
# build
|
||||
#rye run pyinstaller src/stacosys/run.py --name stacosys --onefile
|
||||
build:
|
||||
rye run pyinstaller --clean stacosys.spec
|
||||
uv build --wheel --out-dir dist
|
||||
docker build -t kianby/stacosys .
|
||||
|
||||
# run
|
||||
run:
|
||||
PYTHONPATH=src/ rye run python src/stacosys/run.py $(RUN_ARGS)
|
||||
PYTHONPATH=src/ uv run python src/stacosys/run.py $(RUN_ARGS)
|
||||
Loading…
Add table
Add a link
Reference in a new issue