forked from flasgger/flasgger
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (26 loc) · 783 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
.PHONY: install
install:
@python setup.py develop
.PHONY: pep8
pep8:
@flake8 flasgger --ignore=F403
.PHONY: flasgger_package
flasgger_package:
@cd etc/flasgger_package; python setup.py install
.PHONY: test
test: pep8 flasgger_package
@py.test tests -s -vv --cov --cov-config=.coveragerc --doctest-modules flasgger
.PHONY: sdist
sdist: test
@rm -rf dist/*
@python setup.py sdist bdist_wheel
@twine upload dist/*
.PHONY: clean
clean:
@find ./ -name '*.pyc' -exec rm -f {} \;
@find ./ -name 'Thumbs.db' -exec rm -f {} \;
@find ./ -name '*~' -exec rm -f {} \;
# Updates swagger_ui_dist files
# Need to manually remove extra files added by this command
upgrade_swagger_ui:
@tar --strip-components 1 -C flasgger/ui3/static/ -xvf `npm pack [email protected]` package/