aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJon Wayne Parrott <jonwayne@google.com>2017-03-22 12:59:41 -0700
committerGitHub <noreply@github.com>2017-03-22 12:59:41 -0700
commit06a27e853b05b58102dfc3d8a459c213b5c15a63 (patch)
tree9ac276e7a9d835823e89d46d53b7816332eaf5f4 /scripts
parent0190660f79c4310987f405b3d8e5db4c5927665b (diff)
downloadgoogle-auth-library-python-06a27e853b05b58102dfc3d8a459c213b5c15a63.tar.gz
Separate oauthlib integration into its own package (#137)
* Centralize the run_pylint script. * Use io.open instead of open in setup.py for httplib2_transport * Move httplib2_transport -> additional_packages/google_auth_httplib2 * Remove unneeded dependencies in google_auth_httplib2 * Update classifiers to note 3.6 support. * Don't install the HEAD version of google-auth when testing google-auth-httplib2. * Add google-auth-oauthlib package. * Remove google.oauth2.oauthlib and google.oauth2.flow and associated tests. * Make travis run google-auth-oauthlib's tox. * Specify tox workdir.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/run_pylint.py13
-rwxr-xr-xscripts/travis.sh13
2 files changed, 20 insertions, 6 deletions
diff --git a/scripts/run_pylint.py b/scripts/run_pylint.py
index e9ac7ec..c33a53e 100644
--- a/scripts/run_pylint.py
+++ b/scripts/run_pylint.py
@@ -20,6 +20,7 @@ the fly based on programmatic defaults.
from __future__ import print_function
+import argparse
import collections
import copy
import io
@@ -236,6 +237,12 @@ def make_rc(base_cfg, target_filename,
def main():
"""Script entry point. Lints both sets of files."""
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--library-filesets', nargs='+', default=[])
+ parser.add_argument('--test-filesets', nargs='+', default=[])
+
+ args = parser.parse_args()
+
default_config = read_config(get_default_config())
make_rc(default_config, PRODUCTION_RC,
additions=_PRODUCTION_RC_ADDITIONS,
@@ -243,11 +250,11 @@ def main():
make_rc(default_config, TEST_RC,
additions=_TEST_RC_ADDITIONS,
replacements=_TEST_RC_REPLACEMENTS)
- lint_fileset('google', rc_filename=PRODUCTION_RC,
+
+ lint_fileset(*args.library_filesets, rc_filename=PRODUCTION_RC,
description='Library')
- lint_fileset('tests', 'system_tests', rc_filename=TEST_RC,
+ lint_fileset(*args.test_filesets, rc_filename=TEST_RC,
description='Test')
-
if __name__ == '__main__':
main()
diff --git a/scripts/travis.sh b/scripts/travis.sh
index 9e11de8..5acb4c2 100755
--- a/scripts/travis.sh
+++ b/scripts/travis.sh
@@ -43,7 +43,14 @@ tox
# Run tox for sub-packages.
if [[ $TOXENV != "docs" && -z $SYSTEM_TEST ]]; then
- echo "Running tox for httplib2_transport..."
- cd httplib2_transport
- tox
+ echo "Running tox for google_auth_httplib2..."
+ cd additional_packages/google_auth_httplib2
+ # --workdir is specified to avoid path names being too long, which
+ # causes subprocess calls to hit the execve character limit.
+ # See https://github.com/pypa/virtualenv/issues/596
+ tox --workdir ~/.tox-httplib2
+ cd $ROOT
+ echo "Running tox for google_auth_oauthlib..."
+ cd additional_packages/google_auth_oauthlib
+ tox --workdir ~/.tox-oauthlib
fi