-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (34 loc) · 1.03 KB
/
Makefile
File metadata and controls
45 lines (34 loc) · 1.03 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
45
PROJECT_DIR ?= wavedisp
TESTS_DIR ?= tests
ruff:
uv run ruff check $(PROJECT_DIR) $(TESTS_DIR)
ruff-fix:
uv run ruff check --fix --unsafe-fixes $(PROJECT_DIR) $(TESTS_DIR)
ruff-format:
uv run ruff format $(PROJECT_DIR) $(TESTS_DIR)
pytest:
uv run pytest
sed -i 's/></>\n</g' tests.xml
upload-pypi: dist-check
uv run twine upload -u __token__ -p $$PYPI_TOKEN dist/*
touch $@
install-pypy-test: upload-pypi-test
rm -rf venv-test-install
uv venv venv-test-install
uv run --python venv-test-install pip \
install --index-url https://test.pypi.org/simple/ --no-deps $(PROJECT_DIR)
touch $@
upload-pypi-test: dist-check
uv run twine upload --verbose -u __token__ -p $$PYPI_TEST_TOKEN \
--repository-url https://test.pypi.org/legacy/ dist/*
touch $@
dist-check: dist
uv run twine check dist/*
touch $@
dist:
uv build
clean:
rm -rf test_*.dot test_*.tcl tests.xml coverage.xml htmlcov
rm -rf dist-check upload-pypi upload-pypi-test install-pypy-test
rm -rf venv-test-install .venv
rm -rf dist $(PROJECT_DIR).egg-info