OXIESEC PANEL
- Current Dir:
/
/
opt
/
gsutil
/
third_party
/
google-auth-library-python
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
12/09/2024 05:26:03 PM
rwxr-xr-x
📄
.coveragerc
315 bytes
11/30/2023 05:43:15 PM
rw-r--r--
📄
.flake8
126 bytes
11/30/2023 05:43:15 PM
rw-r--r--
📁
.github
-
11/30/2023 05:43:15 PM
rwxr-xr-x
📄
.gitignore
582 bytes
11/30/2023 05:43:15 PM
rw-r--r--
📄
.repo-metadata.json
425 bytes
11/30/2023 05:43:15 PM
rw-r--r--
📄
.trampolinerc
1.67 KB
11/30/2023 05:43:15 PM
rw-r--r--
📄
CHANGELOG.md
96.09 KB
11/30/2023 05:43:15 PM
rw-r--r--
📄
CODE_OF_CONDUCT.md
1.93 KB
11/30/2023 05:43:15 PM
rw-r--r--
📄
CONTRIBUTING.rst
6.65 KB
11/30/2023 05:43:15 PM
rw-r--r--
📄
CONTRIBUTORS.md
3.45 KB
11/30/2023 05:43:15 PM
rw-r--r--
📄
LICENSE
11.09 KB
11/30/2023 05:43:15 PM
rw-r--r--
📄
MANIFEST.in
100 bytes
11/30/2023 05:43:15 PM
rw-r--r--
📄
README.rst
2.81 KB
11/30/2023 05:43:15 PM
rw-r--r--
📄
SECURITY.md
329 bytes
11/30/2023 05:43:15 PM
rw-r--r--
📁
docs
-
11/30/2023 05:43:15 PM
rwxr-xr-x
📁
google
-
11/30/2023 05:43:15 PM
rwxr-xr-x
📄
mypy.ini
54 bytes
11/30/2023 05:43:15 PM
rw-r--r--
📄
noxfile.py
4.28 KB
11/30/2023 05:43:15 PM
rw-r--r--
📄
owlbot.py
838 bytes
11/30/2023 05:43:15 PM
rw-r--r--
📄
renovate.json
353 bytes
11/30/2023 05:43:15 PM
rw-r--r--
📁
samples
-
11/30/2023 05:43:15 PM
rwxr-xr-x
📁
scripts
-
11/30/2023 05:43:15 PM
rwxr-xr-x
📄
setup.cfg
27 bytes
11/30/2023 05:43:15 PM
rw-r--r--
📄
setup.py
2.91 KB
11/30/2023 05:43:15 PM
rw-r--r--
📁
system_tests
-
11/30/2023 05:43:15 PM
rwxr-xr-x
📁
testing
-
11/30/2023 05:43:15 PM
rwxr-xr-x
📁
tests
-
11/30/2023 05:43:15 PM
rwxr-xr-x
📁
tests_async
-
11/30/2023 05:43:15 PM
rwxr-xr-x
Editing: noxfile.py
Close
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import os import pathlib import shutil import nox CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute() # https://github.com/psf/black/issues/2964, pin click version to 8.0.4 to # avoid incompatiblity with black. CLICK_VERSION = "click==8.0.4" BLACK_VERSION = "black==19.3b0" BLACK_PATHS = [ "google", "tests", "tests_async", "noxfile.py", "setup.py", "docs/conf.py", ] @nox.session(python="3.8") def lint(session): session.install( "flake8", "flake8-import-order", "docutils", CLICK_VERSION, BLACK_VERSION ) session.install("-e", ".") session.run("black", "--check", *BLACK_PATHS) session.run( "flake8", "--import-order-style=google", "--application-import-names=google,tests,system_tests", "google", "tests", "tests_async", ) session.run( "python", "setup.py", "check", "--metadata", "--restructuredtext", "--strict" ) @nox.session(python="3.8") def blacken(session): """Run black. Format code to uniform standard. The Python version should be consistent with what is supplied in the Python Owlbot postprocessor. https://github.com/googleapis/synthtool/blob/master/docker/owlbot/python/Dockerfile """ session.install(CLICK_VERSION, BLACK_VERSION) session.run("black", *BLACK_PATHS) @nox.session(python="3.8") def mypy(session): """Verify type hints are mypy compatible.""" session.install("-e", ".") session.install( "mypy", "types-cachetools", "types-certifi", "types-freezegun", "types-pyOpenSSL", "types-requests", "types-setuptools", "types-mock", ) session.run("mypy", "-p", "google", "-p", "tests", "-p", "tests_async") @nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]) def unit(session): constraints_path = str( CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt" ) session.install("-r", "testing/requirements.txt", "-c", constraints_path) session.install("-e", ".", "-c", constraints_path) session.run( "pytest", f"--junitxml=unit_{session.python}_sponge_log.xml", "--cov=google.auth", "--cov=google.oauth2", "--cov=tests", "--cov-report=term-missing", "tests", "tests_async", ) @nox.session(python="3.8") def cover(session): session.install("-r", "testing/requirements.txt") session.install("-e", ".") session.run( "pytest", "--cov=google.auth", "--cov=google.oauth2", "--cov=tests", "--cov=tests_async", "--cov-report=term-missing", "tests", "tests_async", ) session.run("coverage", "report", "--show-missing", "--fail-under=100") @nox.session(python="3.9") def docs(session): """Build the docs for this library.""" session.install("-e", ".[aiohttp]") session.install("sphinx", "alabaster", "recommonmark", "sphinx-docstring-typing") shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) session.run( "sphinx-build", "-T", # show full traceback on exception "-W", # warnings as errors "-N", # no colors "-b", "html", "-d", os.path.join("docs", "_build", "doctrees", ""), os.path.join("docs", ""), os.path.join("docs", "_build", "html", ""), ) @nox.session(python="pypy") def pypy(session): session.install("-r", "testing/requirements.txt") session.install("-e", ".") session.run( "pytest", f"--junitxml=unit_{session.python}_sponge_log.xml", "--cov=google.auth", "--cov=google.oauth2", "--cov=tests", "tests", "tests_async", )