-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 864 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (22 loc) · 864 Bytes
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
.PHONY: build install devinstall preview publish clean format check
build: clean
php README.md.php > README.md
python3 -m build
install:
python3 -m pip install .
devinstall:
python3 -m pip install -e .[dev]
preview: build
python3 -m twine upload -u __token__ --repository-url "https://test.pypi.org/legacy/" dist/*
publish: build
python3 -m twine upload -u __token__ --repository-url "https://upload.pypi.org/legacy/" dist/*
clean:
python3 -c 'import shutil; shutil.rmtree("dist", ignore_errors=True)'
python3 -c 'import shutil; shutil.rmtree("build", ignore_errors=True)'
python3 -c 'import shutil; shutil.rmtree("flacopyus.egg-info", ignore_errors=True)'
python3 -c 'import shutil; shutil.rmtree(".ruff_cache", ignore_errors=True)'
format:
python3 -m ruff format --line-length=200
check:
-python3 -m ruff check
-python3 -m pyright flacopyus