30 lines
636 B
Makefile
30 lines
636 B
Makefile
PYTHON = python3
|
|
SRCDIR = .
|
|
|
|
all: clean sdist wheel
|
|
|
|
test:
|
|
py.test
|
|
|
|
clean:
|
|
rm -rf *.egg-info dist build .eggs .pytest_cache
|
|
|
|
sdist:
|
|
for pyproject in pyprojects/*.toml; \
|
|
do \
|
|
rm -f pyproject.toml; \
|
|
ln -s $(SRCDIR)/$$pyproject $(SRCDIR)/pyproject.toml; \
|
|
flit -f $(SRCDIR)/pyproject.toml build --no-setup-py --format=sdist; \
|
|
rm pyproject.toml; \
|
|
done
|
|
|
|
wheel:
|
|
for pyproject in pyprojects/*.toml; \
|
|
do \
|
|
rm -f pyproject.toml; \
|
|
ln -s $(SRCDIR)/$$pyproject $(SRCDIR)/pyproject.toml; \
|
|
flit -f $(SRCDIR)/pyproject.toml build --no-setup-py --format=wheel; \
|
|
rm pyproject.toml; \
|
|
done
|
|
|
|
.PHONY: clean test sdist wheel
|