43
43
44
44
# # all : default task
45
45
all :
46
- ./setup.py develop
46
+ pip install -e .
47
47
48
48
# # help : print this help message and exit
49
49
help : Makefile
@@ -89,9 +89,11 @@ pep8: pycodestyle
89
89
pycodestyle : $(PYSOURCES )
90
90
pycodestyle --exclude=_version.py --show-source --show-pep8 $^ || true
91
91
92
+ pep8_report.txt : pycodestyle_report.txt
92
93
pycodestyle_report.txt : $(PYSOURCES )
93
94
pycodestyle --exclude=_version.py $^ > $@ || true
94
95
96
+ diff_pep8_report : diff_pycodestyle_report
95
97
diff_pycodestyle_report : pycodestyle_report.txt
96
98
diff-quality --violations=pycodestyle $^
97
99
@@ -101,7 +103,7 @@ pydocstyle: $(PYSOURCES)
101
103
pydocstyle --ignore=D100,D101,D102,D103 $^ || true
102
104
103
105
pydocstyle_report.txt : $(PYSOURCES )
104
- pydocstyle setup.py $^ > pydocstyle_report.txt 2>&1 || true
106
+ pydocstyle setup.py $^ > $@ 2>&1 || true
105
107
106
108
diff_pydocstyle_report : pydocstyle_report.txt
107
109
diff-quality --violations=pycodestyle $^
@@ -122,7 +124,7 @@ pylint: $(PYSOURCES)
122
124
123
125
pylint_report.txt : ${PYSOURCES}
124
126
pylint --msg-template=" {path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
125
- $^ -j$(nproc ) > pylint_report.txt || true
127
+ $^ -j$(nproc ) > $@ || true
126
128
127
129
diff_pylint_report : pylint_report.txt
128
130
diff-quality --violations=pylint pylint_report.txt
@@ -139,6 +141,10 @@ coverage.html: htmlcov/index.html
139
141
140
142
htmlcov/index.html : .coverage
141
143
coverage html
144
+ @echo Test coverage of the Python code is now in htmlcov/index.html
145
+
146
+ coverage-report : .coverage
147
+ coverage report
142
148
143
149
diff-cover : coverage.xml
144
150
diff-cover $^
@@ -155,7 +161,7 @@ testcov: $(pysources)
155
161
python setup.py test --addopts " --cov cwltool -n$( nproc) --dist=loadfile"
156
162
157
163
sloccount.sc : ${PYSOURCES} Makefile
158
- sloccount --duplicates --wide --details $^ > sloccount.sc
164
+ sloccount --duplicates --wide --details $^ > $@
159
165
160
166
# # sloccount : count lines of code
161
167
sloccount : ${PYSOURCES} Makefile
@@ -165,7 +171,6 @@ list-author-emails:
165
171
@echo ' name, E-Mail Address'
166
172
@git log --format=' %aN,%aE' | sort -u | grep -v ' root'
167
173
168
-
169
174
mypy2 : ${PYSOURCES}
170
175
rm -Rf typeshed/2and3/ruamel/yaml
171
176
ln -s $(shell python -c 'from __future__ import print_function; import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__) )' ) \
@@ -187,9 +192,11 @@ mypy3: ${PYSOURCES}
187
192
MYPYPATH=$$ MYPYPATH:typeshed/3:typeshed/2and3 mypy --disallow-untyped-calls \
188
193
--warn-redundant-casts \
189
194
cwltool
190
-
191
- release : FORCE
195
+ release-test : FORCE
196
+ git diff-index --quiet HEAD -- || ( echo You have uncommited changes, please commit them and try again ; false )
192
197
./release-test.sh
198
+
199
+ release : release-test
193
200
. testenv2/bin/activate && \
194
201
testenv2/src/${MODULE} /setup.py sdist bdist_wheel && \
195
202
pip install twine && \
0 commit comments