Skip to content

Commit

Permalink
Merge branch 'new-api'
Browse files Browse the repository at this point in the history
  • Loading branch information
rienafairefr committed Feb 11, 2018
2 parents 1dbd72e + 4727c71 commit ab006c2
Show file tree
Hide file tree
Showing 221 changed files with 19,533 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ install:
- PACKAGE_VERSION=`python setup.py --version`
- TAG_NAME=v$PACKAGE_VERSION
- pip install tox-travis
- pip install twine
before_install:
- export TRAVIS_COMMIT_MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
- echo "$TRAVIS_COMMIT_MESSAGE"
Expand All @@ -16,6 +17,8 @@ script:
before_deploy:
# create the documentation
- pip install wheel
after_success:
- "./upload_pypi.sh"
deploy:
provider: pypi
user: rienafairefr
Expand Down
12 changes: 12 additions & 0 deletions generate_api.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
echo -- `cat swagger.json`

VERSION=${TRAVIS_TAG:-${TAG_NAME:-dev}}

docker run --rm --user `id -u`:`id -g` -v ${PWD}:/local swaggerapi/swagger-codegen-cli:v2.3.0\
generate -i /local/swagger.json\
--git-user-id rienafairefr\
--git-repo-id pynYNAB\
-l python -o /local/ynab-api -DprojectName=ynab_api -DpackageName=ynab\
-DpackageVersion="$VERSION" -DappDescription="This is an autogenerated package to access\
api.youneedabudget.com using its swagger spec"
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ sqlalchemy
lxml
ofxtools
bcrypt
pyYAML
pyYAML
-e ynab-api
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
'aenum',
'ofxtools',
'sqlalchemy',
'ynab_api',
'pyYAML'
],

Expand Down

0 comments on commit ab006c2

Please sign in to comment.