forked from jfialkoff/pyphaxio
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (21 loc) · 735 Bytes
/
Makefile
File metadata and controls
25 lines (21 loc) · 735 Bytes
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
swagger-codegen-cli.jar:
wget http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.1/swagger-codegen-cli-2.2.1.jar -O swagger-codegen-cli.jar
swagger-generate: swagger-codegen-cli.jar
java -jar swagger-codegen-cli.jar generate -i ./spec/api.yaml -o ./phaxio -l python -t ./modified_templates
# delete all the stuff it creates that we don't need
rm -rf ./phaxio/test
rm -rf ./phaxio/docs
rm ./phaxio/.gitignore
rm ./phaxio/.travis.yml
rm ./phaxio/git_push.sh
rm ./phaxio/LICENSE
rm ./phaxio/README.md
rm ./phaxio/requirements.txt
rm ./phaxio/setup.py
rm ./phaxio/test-requirements.txt
rm ./phaxio/tox.ini
test:
python setup.py test
pip-publish:
python setup.py sdist upload
python setup.py bdist upload