File: Makefile

package info (click to toggle)
python-trio-websocket 0.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 432 kB
  • sloc: python: 2,900; makefile: 41; sh: 17
file content (41 lines) | stat: -rw-r--r-- 1,233 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
38
39
40
41
PYTHON = python

# This .PHONY line prevents make from treating the docs/ directory like a build
# product:
.PHONY: docs

docs:
	$(MAKE) -C docs html

test:
	$(PYTHON) -m pytest --cov=trio_websocket --cov-report=term-missing --no-cov-on-fail

lint:
	$(PYTHON) -m pylint trio_websocket/ tests/ autobahn/ examples/

typecheck:
	$(PYTHON) -m mypy

publish:
	rm -fr build dist .egg trio_websocket.egg-info
	! grep -q dev trio_websocket/_version.py
	$(PYTHON) -m build
	twine check dist/*
	twine upload dist/*

# requirements-dev.txt will only be regenerated when PIP_COMPILE_ARGS is not
# empty, and requires installatation of pip-tools.
#
# To change requirements, edit setup.py and requirements-dev.in files as necessary, then:
#   make -W requirements-dev.{in,txt} PIP_COMPILE_ARGS="-q"
# upgrade all deps:
#   make -W requirements-dev.{in,txt} PIP_COMPILE_ARGS="-U"
# upgrade specific deps:
#   make -W requirements-dev.{in,txt} PIP_COMPILE_ARGS="-P foo"
ifneq ($(PIP_COMPILE_ARGS),)
requirements-dev-full.txt: setup.py requirements-dev.in requirements-extras.in
	pip-compile -q $(PIP_COMPILE_ARGS) --output-file $@ $^

requirements-dev.txt: setup.py requirements-dev.in
	pip-compile -q $(PIP_COMPILE_ARGS) --output-file $@ $^
endif