Simpler packaging

This commit is contained in:
Kujiu 2021-11-19 23:31:25 +01:00
parent d8961717bb
commit 6ff9cff8d4
Signed by: kujiu
GPG key ID: ABBB2CAC6855599F
648 changed files with 154 additions and 1196 deletions

4
.gitignore vendored
View file

@ -286,7 +286,3 @@ tags
# TODO: where does this rule come from?
docs/_book
# TODO: where does this rule come from?
test/
/pyproject.toml

View file

@ -10,21 +10,9 @@ 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
flit -f $(SRCDIR)/pyproject.toml build --no-setup-py --format=sdist
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
flit -f $(SRCDIR)/pyproject.toml build --no-setup-py --format=wheel
.PHONY: clean test sdist wheel

View file

@ -1,6 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from importlib.metadata import version
__version__ = version(__package__)

Some files were not shown because too many files have changed in this diff Show more