-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (22 loc) · 678 Bytes
/
Makefile
File metadata and controls
23 lines (22 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ifeq ($(OS),Windows_NT)
PYTHON = .venv/Scripts/python.exe
else
PYTHON = .venv/bin/python
endif
init:
python -m venv .venv
$(PYTHON) -m pip install -r requirements.txt
$(PYTHON) -m pip install -e .
test:
$(PYTHON) -m pytest -s
package:
rm -rf dist
$(PYTHON) -m pip install build
$(PYTHON) -m build
manylinux-wheel-docker:
docker run --rm -v $(PWD):/io --workdir /io quay.io/pypa/manylinux_2_28_x86_64 make PYTHON_VERSION=3.13 manylinux-wheel
manylinux-wheel: PYBIN = "/opt/python/cp$(subst .,,$(PYTHON_VERSION))-cp$(subst .,,$(PYTHON_VERSION))/bin"
manylinux-wheel:
rm -rf dist
$(PYBIN)/pip install -r requirements.txt
$(PYBIN)/python setup.py sdist bdist_wheel