-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
42 lines (31 loc) · 851 Bytes
/
Makefile
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
.PHONY: tests build docs lint upload
BIN = env/bin
PYTHON = $(BIN)/python
PIP = $(BIN)/pip
TRIAL = $(BIN)/trial
TOX = $(BIN)/tox
SPHINXBUILD = $(shell pwd)/env/bin/sphinx-build
env: requirements.txt
test -f $(PYTHON) || virtualenv env
$(PIP) install -U -r requirements.txt
$(PYTHON) setup.py develop
tests: env
$(TOX)
build:
$(PYTHON) setup.py sdist
clean-docs:
cd docs; make clean
docs: env
cd docs; make html SPHINXBUILD=$(SPHINXBUILD); make man SPHINXBUILD=$(SPHINXBUILD); make doctest SPHINXBUILD=$(SPHINXBUILD)
lint: env
$(BIN)/flake8 txHL7 tests twisted
$(BIN)/isort --recursive --check-only txHL7 tests twisted
isort:
$(BIN)/isort --recursive txHL7 tests twisted
upload:
rm -rf dist
$(PYTHON) setup.py sdist bdist_wheel
twine upload dist/*
.PHONY: upload
clean:
find txHL7 twisted tests -type f -name '*.pyc' -delete