Add convenience makefile, versioningit, dev extra

This commit is contained in:
grym 2022-03-16 16:13:08 -04:00
parent 6ac57ccdfc
commit ebf19fddc0
3 changed files with 37 additions and 9 deletions

15
Makefile Normal file
View File

@ -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

View File

@ -1,3 +1,16 @@
[build-system]
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"

View File

@ -15,11 +15,11 @@ packages=find:
console_scripts =
template = template.cli:main
# [options.extras_require]
# dev =
# black
# coverage
# pytest
# ipython
# isort
# pre-commit
[options.extras_require]
dev =
# black
# coverage
# pytest
# ipython
# isort
pre-commit