-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore/python3 #646
Chore/python3 #646
Changes from 23 commits
4653cea
edc944c
0e3099f
9aaf024
2aa361c
46fce29
13ad2ca
a1cfeac
525ce4c
79d1da7
604d105
0099a74
83471db
8d4be60
941f912
c3b2e3e
545ec0d
9db625d
928b382
11132a9
0daa0f0
cd1f788
e73c7fa
8613c07
46af1ba
71e22c7
19f8eb9
7974071
addd965
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
workflow "Run python formatter" { | ||
on = "pull_request" | ||
resolves = ["Run wool"] | ||
} | ||
|
||
action "Run wool" { | ||
uses = "uc-cdis/wool@master" | ||
secrets = ["GITHUB_TOKEN"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ python: | |
|
||
matrix: | ||
allow_failures: | ||
- python: "3.6" | ||
- python: "2.7" | ||
|
||
sudo: false | ||
|
||
|
@@ -15,9 +15,6 @@ cache: pip | |
addons: | ||
postgresql: "9.4" | ||
|
||
env: | ||
- REPOSITORY="uc-cdis/fence" PR_NUMBER="$TRAVIS_PULL_REQUEST" | ||
|
||
install: | ||
- pip uninstall -y six || true # travis installs wrong version | ||
- pip uninstall -y userdatamodel || true | ||
|
@@ -27,7 +24,6 @@ install: | |
- python setup.py install | ||
- psql -U postgres -c "create database fence_test_tmp" | ||
- if [[ $TRAVIS_PYTHON_VERSION != 3.6 ]]; then userdatamodel-init --db fence_test_tmp; fi | ||
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install -e git+https://[email protected]/uc-cdis/wool.git#egg=wool; fi | ||
|
||
before_script: | ||
- sudo rm -f /etc/boto.cfg | ||
|
@@ -41,4 +37,3 @@ script: | |
after_script: | ||
- python-codacy-coverage -r coverage.xml | ||
- COVERALLS_REPO_TOKEN=$COVERALLS_TOKEN coveralls | ||
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 && $PR_NUMBER != false ]]; then wool; fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!groovy | ||
|
||
@Library('cdis-jenkins-lib@master') _ | ||
@Library('cdis-jenkins-lib@chore/python3') _ | ||
|
||
testPipeline { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,7 @@ At the moment, supported IDPs include: | |
- InCommon | ||
- eduGAIN | ||
|
||
Note: the Shibboleth dockerfile image is at https://quay.io/repository/cdis/fence-shib and is NOT compatible with python 3/the latest fence. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is there a specific reason for this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i didn't update the shibboleth dockerfile to work with python 3 code for now, I discussed with Rudy and he said master fence probably won't be deployed to the commons that's using this dockerfile |
||
|
||
## OIDC & OAuth2 | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from fence import app_init, app | ||
|
||
app_init(app) | ||
application = app |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from urlparse import urlparse | ||
from urllib.parse import urlparse | ||
|
||
import flask | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is already set in the base image https://github.com/uc-cdis/cloud-automation/blob/master/Docker/python-nginx/python3.6-alpine3.7/Dockerfile#L168-L169