-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: (40 commits) Pre-release version 5.9.5 Update requirements (#721) Version 5.9.4 New path for stubs.py (#719) chore(package): update yargs-parser to version 8.0.0 (#718) chore(package): update uglify-js to version 3.1.3 (#717) chore(package): update bower to version 1.8.2 chore(package): update uglify-js to version 3.1.2 chore(package): update uglify-js to version 3.1.1 chore(package): update uglify-js to version 3.1.0 (#711) Fix and close #709 (#710) Fix linter warnings (#708) chore(package): update gulp-sourcemaps to version 2.6.1 (#706) chore(package): update uglify-js to version 3.0.28 (#707) Revert "Add "Alternative Token" handling for flask-login (see #699)" (#705) chore(package): update browser-sync to version 2.18.13 (#700) chore(package): update uglify-js to version 3.0.25 (#697) Add "Alternative Token" handling for flask-login (see #699) (#701) chore(package): update coffee-script to version 1.12.7 (#698) chore(package): update uglify-js to version 3.0.24 (#696) ...
- Loading branch information
Showing
23 changed files
with
122 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import flask | ||
import jwt | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import flask | ||
|
||
import auth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import flask | ||
|
||
import auth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import flask | ||
|
||
import auth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import flask | ||
|
||
import auth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import flask | ||
|
||
import auth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import flask | ||
|
||
import auth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import flask | ||
|
||
import auth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import hashlib | ||
|
||
import flask | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import flask | ||
|
||
import auth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import base64 | ||
|
||
from flask_oauthlib import client | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import flask | ||
|
||
import auth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import flask | ||
|
||
import auth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
import flask | ||
|
||
import auth | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# coding: utf-8 | ||
|
||
import os | ||
import pkgutil | ||
import sys | ||
|
||
|
||
def path_package_path(deps_path, shadow_pkgs): | ||
sys.path.insert(0, deps_path) | ||
for _, pkg, ispkg in pkgutil.iter_modules(): | ||
if ispkg and pkg in shadow_pkgs: | ||
global_pkg = __import__(pkg) | ||
global_pkg.__path__.insert(0, '%s/%s' % (deps_path, pkg)) | ||
|
||
|
||
def is_shadowing(package_name): | ||
try: | ||
__import__(os.path.splitext(package_name)[0]) | ||
return True | ||
except ImportError: | ||
pass | ||
return False | ||
|
||
|
||
def get_shadows_zip(filename): | ||
import zipfile | ||
|
||
shadow_pkgs = set() | ||
with zipfile.ZipFile(filename) as lib_zip: | ||
already_test = [] | ||
for fname in lib_zip.namelist(): | ||
pname, fname = os.path.split(fname) | ||
if fname or (pname and fname): | ||
continue | ||
if pname not in already_test and '/' not in pname: | ||
already_test.append(pname) | ||
if is_shadowing(pname): | ||
shadow_pkgs.add(pname) | ||
return shadow_pkgs | ||
|
||
|
||
def get_shadows_dir(dirname): | ||
shadow_pkgs = set() | ||
if not os.path.exists(dirname): | ||
return shadow_pkgs | ||
for pkg in os.listdir(dirname): | ||
if not os.path.isfile(pkg) and is_shadowing(pkg): | ||
shadow_pkgs.add(pkg) | ||
return shadow_pkgs | ||
|
||
|
||
def sys_path_insert(dirname): | ||
if dirname.endswith('.zip'): | ||
path_package_path(dirname, get_shadows_zip(dirname)) | ||
else: | ||
path_package_path(dirname, get_shadows_dir(dirname)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
blinker==1.4 | ||
flask-login==0.4.0 | ||
flask-oauthlib==0.9.3 | ||
flask-restful==0.3.5 | ||
flask-oauthlib==0.9.4 | ||
flask-restful==0.3.6 | ||
flask-wtf==0.14.2 | ||
flask==0.12.1 | ||
pyjwt==1.5.0 | ||
unidecode==0.4.20 | ||
webargs==1.6.1 | ||
flask==0.12.2 | ||
pyjwt==1.5.3 | ||
unidecode==0.4.21 | ||
webargs==1.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters