File: Makefile

package info (click to toggle)
sqlparse 0.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 948 kB
  • sloc: python: 5,560; sql: 167; makefile: 115; sh: 14
file content (37 lines) | stat: -rw-r--r-- 733 bytes parent folder | download
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
# Makefile to simplify some common development tasks.
# Run 'make help' for a list of commands.

PYTHON=`which python`

default: help

help:
	@echo "Available commands:"
	@sed -n '/^[a-zA-Z0-9_.]*:/s/:.*//p' <Makefile | sort

test:
	pixi run test-all

lint:
	pixi run lint

coverage:
	pixi run -e py311 coverage
	pixi run -e py311 coverage-combine
	pixi run -e py311 coverage-report

coverage-xml:
	pixi run -e py311 coverage
	pixi run -e py311 coverage-combine
	pixi run -e py311 coverage-xml

clean:
	$(PYTHON) setup.py clean
	find . -name '*.pyc' -delete
	find . -name '*~' -delete

release:
	@rm -rf dist/
	python -m build
	hatch publish
	@echo "Reminder: Add release on github https://github.com/andialbrecht/sqlparse/releases"