-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
72 lines (53 loc) · 2.07 KB
/
Makefile
File metadata and controls
72 lines (53 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
SHELL := /bin/bash
open := $(shell { which xdg-open || which open; } 2>/dev/null)
.PHONY: clean-pyc clean-build docs clean
help: ## This help dialog.
@IFS=$$'\n' ; \
help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/:/'`); \
printf "%-15s %s\n" "target" "help" ; \
printf "%-15s %s\n" "------" "----" ; \
for help_line in $${help_lines[@]}; do \
IFS=$$':' ; \
help_split=($$help_line) ; \
help_command=`echo $${help_split[0]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \
help_info=`echo $${help_split[2]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \
printf '\033[36m'; \
printf "%-15s %s" $$help_command ; \
printf '\033[0m'; \
printf "%s\n" $$help_info; \
done
install: ## Install the project in development mode
uv sync --all-extras
clean: clean-build clean-pyc clean-test ## Remove all build, test, coverage and Python artifacts
clean-build: ## Remove build artifacts
rm -fr build/
rm -fr dist/
rm -fr *.eggs/
rm -fr *.egg-info/
clean-pyc: ## Remove Python file artifacts
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-test: ## Eemove test and coverage artifacts
rm -fr .tox/
rm -f .coverage
rm -fr htmlcov/
test: ## Run tests quickly with the default Python
uv run -- pytest --cov=borfile --cov-report html --cov-report term:skip-covered
build: clean ## Package
uv run -- flit build --use-vcs
publish: build ## Package and upload a release
uv run -- flit publish
lint: ## Check style with flake8
uv run -- ruff check
bumpversion: ## Bump the release version
uv run -- python scripts/bumpversion.py release
newversion-patch: ## Set the new development version
uv run -- python scripts/bumpversion.py newversion patch
newversion-minor: ## Set the new development version
uv run -- python scripts/bumpversion.py newversion minor
newversion-major: ## Set the new development version
uv run -- python scripts/bumpversion.py newversion major
jupyter: ## Launch jupyter bo
uv run -- jupyter lab