1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 20:52:43 +00:00

moved to pyproject toml

This commit is contained in:
Bastian Venthur
2022-12-09 20:57:11 +01:00
parent a330d9766d
commit 352c37045a
7 changed files with 84 additions and 64 deletions

View File

@@ -14,13 +14,13 @@ endif
.PHONY: all
all: lint mypy test
all: lint mypy test test-release
$(VENV): requirements.txt requirements-dev.txt setup.py
$(VENV): requirements.txt requirements-dev.txt pyproject.toml
$(PY) -m venv $(VENV)
$(BIN)/pip install --upgrade -r requirements.txt
$(BIN)/pip install --upgrade -r requirements-dev.txt
$(BIN)/pip install -e .
$(BIN)/pip install -e .['dev']
touch $(VENV)
.PHONY: test
@@ -35,10 +35,17 @@ mypy: $(VENV)
lint: $(VENV)
$(BIN)/flake8
.PHONY: release
release: $(VENV)
.PHONY: build
build: $(VENV)
rm -rf dist
$(BIN)/python setup.py sdist bdist_wheel
$(BIN)/python3 -m build
.PHONY: test-release
test-release: $(VENV) build
$(BIN)/twine check dist/*
.PHONY: release
release: $(VENV) build
$(BIN)/twine upload dist/*
.PHONY: docs