Skip to content

Commit 526a5c3

Browse files
committed
Merge pull request #39 from josuebrunel/dev
fix #38 : yaml support added
2 parents eace2f2 + 3a0d046 commit 526a5c3

File tree

16 files changed

+149
-66
lines changed

16 files changed

+149
-66
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,10 @@ docs/_build/
5555

5656
# PyBuilder
5757
target/
58+
59+
# Dev
60+
data.json
61+
data.yml
62+
oauth*.*
63+
secrets.tar
64+
*.swp

.travis.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
language: python
22
python:
3-
- '2.7'
4-
- '3.2'
5-
- '3.3'
6-
- '3.4'
7-
- pypy
8-
- pypy3
3+
- '2.7'
4+
- '3.3'
5+
- '3.4'
6+
- '3.5'
7+
- pypy
8+
- pypy3
99
install:
10-
- pip install -r requirements.txt
11-
- pip install myql coverage coveralls
10+
- pip install -r requirements.txt
11+
- pip install myql coverage coveralls pytest
1212
script:
13-
- coverage run --source=yahoo_oauth -m unittest discover
14-
env:
15-
global:
16-
- secure: UeQ8wCwJBCyvCpqvYyJtJImdsEkIUioFF2UOFtQmw9aT601lvF5wfSohFPWHSGaJaIu+6TiiZgybQwj9EW44tJvb1E20n6AY1rxsL6zUtsWfAFvNF9DxLGEH5RCIPyyCkBxBFIObV8Md58E4VY+vCKdy3RyXbmK8bhC7/ioD7cQwjeKwd46PWgjllW4JxCXSbLkY4FJ3hAHMccE/njpA3dy4LD4+SxPiiOU+HIJoY4GOtRQG3LSNK1ZIMC15OMN954ZLkbLUAf5KZqonc9RoFaZuXgCAAuogIgxUQXO40HmqqIE+HTPvwAT+idH2NIZvvWg9IDVe8MdIgFUuGTTcveAh7KLKZCL0Qv8vHefvFOT+lIEoJ6AVlAjCFBUIInNswUyRySa7UD1JZ6txW8BqyykPNta68n0D4RH9ri+MxPpxcBHmaAbDGAl+qEsLa6gjOmULOIP+0QzrGt5LzomrIKZ77w2VA0sDHhis4wEQCcjSZs8HeixqNeCyV+mabUKWu8pQ6jPCwmOW+XZ/hLDm06x89okeS17ejJRrQdK88h7S0vXgTEX2vdpyQfFReOa/s8ssVDbLUQ2xvLM/zPU8itfV0gK8ANHLBYjNqDW51rYXAJSOQfJVA/4RMk4Hmx8EF8EUs6k5oi+GW9ITso5ohnVLeASMyaEYpmdT8O9e7NQ=
17-
- secure: AHfzuvNGZIWHJeXzNhVVmMI1EPyu6ZBiuVjWP6kox6shq3zYwn5dxcU0tC62nIjYi/QQvnC0x0wpzZqXv/9yMtRzLukg4LFxuBl1o5FzpxGJZZgtKf0GC1u0Cp+b5GCT62Fdpn2LYramWKBHlF05atUYgyST8H2zaHe/SmQnjhmlki4nSJUfVmG40/hrGyemtELIHoQy85ujvjFV18p+7MTL+ySc9E13P1JrgecV8uZ7Ya8ajAHU/gqFFRupdS5cOpje+MuasltCZPcb74xWfECvoZqbWurj4UCRBTs80oxulkmVJTWbzB9KWjoqOSJQqJfI1LIZod6OJEsdVENBEH7HZ6El9U2KZ54FIYDNnO704jPQp/WC8YXFvzZucgsFWb2RS0PZ77CwHLrGdoPn3y8Rm7gHb4QHTOuhQSi9dzl+XdZzVpduaT9Z7LRej/31LOAmrQyRMgoiYiRf183yx8guhSYwaC+EHodCOq0HSKEYfxWVlrwML17vFhjD5A0kOSJ2cc0A7QmOjYlUJ5VI5A57re9PFg5g7yd7TIX+6vZ4GVdv3alCeP58u1QSeH96aTYMeiszI9GVTE5AjdaPD+K28TDb9U+PuqBXILKUH/pDlXtYLNqDPUDiD+seOH1UXKrpG00kTWQ/q7lQ6thHZORfOSNe7i//pdKBy1cfbC8=
13+
- coverage run --source=yahoo_oauth -m pytest -v tests.py
1814
before_install:
1915
- openssl aes-256-cbc -K $encrypted_6d515aab85d8_key -iv $encrypted_6d515aab85d8_iv
2016
-in secrets.tar.enc -out secrets.tar -d
2117
- tar xvf secrets.tar
2218
after_success:
23-
- coverage report
24-
- coveralls
19+
- coverage report
20+
- coveralls

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Wether you use **OAuth1** or **OAuth2**, only **2** parameters are required.
2525
* ___consumer_key___
2626
* ___consumer_secret___
2727

28-
I recommend putting those two into a file. Only ***json*** files are supported
28+
I recommend putting those two into a file. Only ***json*** and ***yaml*** files are supported
2929

3030
```json
3131
{

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ required.
2121
- ***consumer*\ key**\ \_
2222
- ***consumer*\ secret**\ \_
2323

24-
I recommend putting those two into a file. Only ***json*** files are
24+
I recommend putting those two into a file. Only ***json*** and ***yaml*** files are
2525
supported
2626

2727
.. code:: json

dev_requirements.txt

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
Jinja2>=2.7.3
2-
Markdown>=2.6.2
3-
MarkupSafe>=0.23
4-
PyYAML>=3.11
5-
certifi>=2015.04.28
6-
click>=4.0
7-
coverage>=3.7.1
8-
coveralls>=0.5
9-
docopt>=0.6.2
10-
ghp-import>=0.4.1
11-
livereload>=2.4.0
12-
mkdocs>=0.13.3
13-
myql>=1.2.2
14-
oauthlib>=0.7.2
15-
rauth>=0.7.1
16-
requests>=2.7.0
17-
requests-oauthlib>=0.5.0
18-
six>=1.9.0
19-
tornado>=4.2
1+
Jinja2=>2.8
2+
Markdown=>2.6.2
3+
MarkupSafe=>0.23
4+
PyYAML=>3.11
5+
certifi=>2015.9.6.2
6+
click=>5.1
7+
coverage=>4.0
8+
coveralls=>1.0
9+
docopt=>0.6.2
10+
ghp-import=>0.4.1
11+
livereload=>2.4.0
12+
mkdocs=>0.14.0
13+
myql=>1.2.7
14+
oauthlib=>1.0.3
15+
pluggy=>0.3.1
16+
py=>1.4.30
17+
pytest=>2.8.2
18+
rauth=>0.7.1
19+
requests=>2.8.0
20+
requests-oauthlib=>0.5.0
21+
six=>1.10.0
22+
tornado=>4.2.1
23+
tox=>2.1.1
24+
virtualenv=>13.1.2
25+
yahoo-oauth=>0.1.7

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Wether you use **OAuth1** or **OAuth2**, only **2** parameters are required.
1515
* ___consumer_key___
1616
* ___consumer_secret___
1717

18-
I recommend putting those two into a file. Only ***json*** files are supported
18+
I recommend putting those two into a file. Only ***json*** and ***yaml*** files are supported
1919

2020
```json
2121
{

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
site_name: Yahoo-OAuth
22
repo_url: https://github.com/josuebrunel/yahoo-oauth
33
site_url: http://yahoo-oauth.readthedocs.org/en/latest/yahoo-oauth/
4+
use_directory_urls: false
5+
strict: true
46
site_description: Documentation on the Yahoo-OAuth Library
57
site_author: Josue Kouka
68
google_analytics: ['UA-32441224-5', 'yahoo-oauth.readthedocs.org']

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
rauth>=0.7.1
2-
requests>=2.7.0
2+
requests>=2.8.0
3+
pyaml>=3.11

run_tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
set -x
12
if [ ! -z $1 ]; then
23
TestCase=".${1}"
34
else
@@ -10,7 +11,6 @@ else
1011
Test=''
1112
fi
1213

13-
coverage run --source=yahoo_oauth -m unittest discover
14-
#python -m unittest tests$TestCase$Test
14+
coverage run --source=yahoo_oauth -m unittest tests$TestCase$Test
1515
coverage report
1616
coverage html

secrets.tar.enc

3 KB
Binary file not shown.

0 commit comments

Comments
 (0)