-
-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (34 loc) · 941 Bytes
/
Makefile
File metadata and controls
47 lines (34 loc) · 941 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: default clean develop test build dist-clean dist-build dist-upload dist-test-upload dist-sign dist-check
src = src/pyemd
test = test
dist = dist
default: test
test: develop
uv run pytest
develop:
uv sync --all-extras
uv pip install -e .
build:
uv build --wheel
clean:
rm -rf $(shell find $(src) $(test) -name '__pycache__' 2>/dev/null)
rm -rf .eggs
rm -rf pyemd.egg-info
rm -rf build
rm -rf dist
rm -rf src/pyemd.egg-info
dist-build:
uv build
dist-upload: dist-sign
uv run twine upload $(dist)/*
dist-test-upload: dist-check
uv run twine upload --repository-url https://test.pypi.org/simple/ $(dist)/*
dist-sign: dist-check
gpg --detach-sign -a $(dist)/*.tar.gz
gpg --detach-sign -a $(dist)/*.whl
dist-check:
uv run twine check --strict $(dist)/*.whl
dist-clean:
rm -rf $(dist)
dist-test-install:
uv pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pyemd