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]
|
[build-system]
|
||||||
requires = ["setuptools", "wheel"]
|
requires = ["setuptools", "wheel"]
|
||||||
build-backend = "setuptools.build_meta"
|
# 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"
|
||||||
|
|
16
setup.cfg
16
setup.cfg
|
@ -15,11 +15,11 @@ packages=find:
|
||||||
console_scripts =
|
console_scripts =
|
||||||
template = template.cli:main
|
template = template.cli:main
|
||||||
|
|
||||||
# [options.extras_require]
|
[options.extras_require]
|
||||||
# dev =
|
dev =
|
||||||
# black
|
# black
|
||||||
# coverage
|
# coverage
|
||||||
# pytest
|
# pytest
|
||||||
# ipython
|
# ipython
|
||||||
# isort
|
# isort
|
||||||
# pre-commit
|
pre-commit
|
||||||
|
|
Loading…
Reference in New Issue