File tree 2 files changed +9
-11
lines changed 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 28
28
build
29
29
30
30
proxy /public
31
- docs /_build
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ CA_KEY_FILE_PATH := ca-key.pem
14
14
CA_CERT_FILE_PATH := ca-cert.pem
15
15
CA_SIGNING_KEY_FILE_PATH := ca-signing-key.pem
16
16
17
+ OPEN =$(shell which open)
18
+ UNAME := $(shell uname)
19
+ ifeq ($(UNAME ) , Linux)
20
+ OPEN =$(shell which xdg-open)
21
+ endif
22
+
17
23
.PHONY : all https-certificates sign-https-certificates ca-certificates
18
24
.PHONY : lib-check lib-clean lib-test lib-package lib-coverage lib-lint lib-pytest
19
25
.PHONY : lib-release-test lib-release lib-profile lib-doc
@@ -89,7 +95,6 @@ lib-dep:
89
95
-r requirements-testing.txt \
90
96
-r requirements-release.txt \
91
97
-r requirements-tunnel.txt \
92
- -r docs/requirements.txt
93
98
94
99
lib-lint :
95
100
python -m tox -e lint
@@ -115,18 +120,12 @@ lib-release: lib-package
115
120
twine upload dist/*
116
121
117
122
lib-doc :
118
- pushd docs && \
119
- python -m sphinx \
120
- --keep-going \
121
- -b dirhtml \
122
- -d _build/doctrees \
123
- -D language=en . _build/html && \
124
- popd && \
125
- open docs/_build/html/index.html
123
+ python -m tox -e lint && \
124
+ $(OPEN ) .tox/build-docs/docs_out/index.html
126
125
127
126
lib-coverage :
128
127
pytest --cov=proxy --cov=tests --cov-report=html tests/
129
- open htmlcov/index.html
128
+ $( OPEN ) htmlcov/index.html
130
129
131
130
lib-profile :
132
131
sudo py-spy record -o profile.svg -t -F -s -- python -m proxy
You can’t perform that action at this time.
0 commit comments