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:
19
Makefile
19
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user