Skip to content

Commit 320c732

Browse files
authored
Merge pull request #29 from XeroAPI/sid-development
Update requirements and README to use released versions of flask dependencies
2 parents be7cc1f + 0e6970b commit 320c732

File tree

3 files changed

+5
-31
lines changed

3 files changed

+5
-31
lines changed

README.md

-16
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,6 @@ Please use your Demo Company organisation for your testing.
2222
* Activate new virtual environment by running `source venv/bin/activate`
2323
* Install project dependencies by running `pip install -r requirements.txt`
2424

25-
### Troubleshooting
26-
If you see an error when installing the project dependencies that looks something like ...
27-
28-
```
29-
Please make sure you have the correct access rights
30-
and the repository exists.
31-
fatal: clone of '[email protected]:mitsuhiko/flask-sphinx-themes.git' into submodule path '/private/var/folders/7d/_bchn9r12pn79fr63p88nhv80000gn/T/pip-build-myovpzcq/Flask-Session/docs/_themes' failed
32-
Failed to clone 'docs/_themes'. Retry scheduled
33-
[email protected]: Permission denied (publickey).
34-
```
35-
36-
Please check that your SSH keys are setup for your github profile?
37-
https://github.com/settings/keys
38-
39-
We ran into some issues with the current version of Flask-Session and had to point to a specific commit and download that code into our project. But in order to do that your [SSH keys need to be config](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh).
40-
4125
## Create a Xero App
4226
To obtain your API keys, follow these steps and create a Xero app
4327

app.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@
4545
access_token_url="https://identity.xero.com/connect/token",
4646
refresh_token_url="https://identity.xero.com/connect/token",
4747
scope="offline_access openid profile email accounting.transactions "
48-
"accounting.transactions.read accounting.reports.read "
49-
"accounting.journals.read accounting.settings accounting.settings.read "
50-
"accounting.contacts accounting.contacts.read accounting.attachments "
51-
"accounting.attachments.read assets projects",
48+
"accounting.reports.read accounting.journals.read accounting.settings "
49+
"accounting.contacts accounting.attachments assets projects",
5250
) # type: OAuth2Application
5351

5452

requirements.txt

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
flask
2-
# Werkzeug<1.0 # flask-session not compatible
3-
# see https://github.com/fengsp/flask-session/pull/114
4-
# using patched version of flask-session
5-
git+https://github.com/SqrtMinusOne/flask-session.git@560d00f1a84a9924d788a4f4e1ef35c5cf94c76d#egg=Flask-Session
6-
# Werkzeug<1.0 # flask-oauthlib not compatible
7-
# using patched version of flask-oauthlib
8-
git+https://github.com/ageis/flask-oauthlib.git@c5ea3ace957ceeeeab3cfb6556f32685ff292eab#egg=Flask-OAuthlib
9-
10-
# Use development version of xero-python
11-
#git+ssh://[email protected]/xero-github/xero-python.git@020f780b4e2b48cb33746ae19ddab9fdf128e626#egg=xero-python
12-
xero-python==1.3.0
2+
flask-session==0.3.2
3+
flask-oauthlib==0.9.6
4+
xero-python==1.5.3

0 commit comments

Comments
 (0)