nervtn-server/Makefile

31 lines
636 B
Makefile
Raw Normal View History

2021-09-29 20:44:05 +02:00
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