Add convenience makefile, versioningit, dev extra
This commit is contained in:
parent
6ac57ccdfc
commit
ebf19fddc0
|
@ -0,0 +1,15 @@
|
|||
SHELL := /bin/bash
|
||||
.PHONY: all using-q venv
|
||||
|
||||
VENV_DIR=$$(pwd)/venv
|
||||
VENV_PYTHON=$(VENV_DIR)/bin/python
|
||||
VENV_BIN=$(VENV_DIR)/bin
|
||||
|
||||
venv:
|
||||
@echo making venv at $(VENV_DIR)
|
||||
@python -m venv $(VENV_DIR)
|
||||
@$(VENV_PYTHON) -m pip install --upgrade pip wheel pre-commit
|
||||
|
||||
install: venv
|
||||
@$(VENV_PYTHON) -m pip install --upgrade -e '.[dev]'
|
||||
@$(VENV_PYTHON) -m pre_commit install
|
|
@ -1,3 +1,16 @@
|
|||
[build-system]
|
||||
requires = ["setuptools", "wheel"]
|
||||
# requires = ["setuptools", "wheel", "versioningit~=1.0.0"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
# [tool.versioningit]
|
||||
# default-version = "0+unknown"
|
||||
|
||||
# [tool.versioningit.format]
|
||||
# # Same format as versioneer
|
||||
# distance = "{version}+{distance}.{vcs}{rev}"
|
||||
# dirty = "{version}+{distance}.{vcs}{rev}.dirty"
|
||||
# distance-dirty = "{version}+{distance}.{vcs}{rev}.dirty"
|
||||
|
||||
# [tool.versioningit.write]
|
||||
# file = "template/_version.py"
|
||||
|
|
Loading…
Reference in New Issue