Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
f66fbe3
Initial commit
Apr 12, 2017
b6b1933
Use code font for httplib2 in README
dhermes Apr 13, 2017
05a9dcd
Merge pull request #1 from dhermes/patch-1
Apr 13, 2017
3b5c754
Remove unused travis session
Apr 13, 2017
df19ea4
Update docstring for Request after move. (#2)
tswast May 17, 2017
bcabf2b
Updating README/setup.py for new location. (#3)
dhermes Jun 13, 2017
8f64557
Release v0.0.3 (#5)
Nov 14, 2017
0e89f94
Bug: Catch any underlying exceptions from http.HTTPException (#7)
Poogles Dec 4, 2017
bee2ab9
feat: expose a few httplib2 properties and a method (#9)
arithmetic1728 Jul 7, 2020
507e0ca
Release 0.0.4 (#11)
busunkim96 Jul 7, 2020
626a7ed
Expose redirect_codes on AuthorizedHttp. (#12)
craigcitro Jul 25, 2020
d3ad381
Fix the signature of AuthorizedHttp.request to match the signature of…
liuchaoren Sep 14, 2020
970ba39
Add renovate.json (#15)
renovate-bot Sep 30, 2020
9ef17d0
chore: use nox and kokoro (#16)
busunkim96 Oct 1, 2020
5abb150
build: migrate to flakybot (#21)
JustinBeckwith Jan 29, 2021
a34a465
feat: add close method (#14)
busunkim96 Mar 1, 2021
192bfb8
chore: release 0.1.0 (#22)
release-please[bot] Mar 1, 2021
3f8f9d4
chore: add a Code of Conduct (#24)
google-cloud-policy-bot[bot] Mar 25, 2021
255ce77
chore: prevent normalization of semver versioning (#26)
dandhlee Apr 16, 2021
99ab6b0
chore(revert): revert preventing normalization (#27)
dandhlee Apr 27, 2021
3c9d5aa
chore: add SECURITY.md (#28)
google-cloud-policy-bot[bot] May 12, 2021
b85f7c6
chore: add library type to .repo-metadata.json (#29)
parthea May 12, 2021
9b121f3
chore: migrate to owl bot (#31)
parthea Jun 1, 2021
afa5464
chore: add kokoro 3.9 config templates (#37)
gcf-owl-bot[bot] Jun 24, 2021
271e19a
build(python): exit with success status if no samples found (#38)
gcf-owl-bot[bot] Jul 14, 2021
1ed9d81
build(python): remove python 3.7 from kokoro Dockerfile (#39)
gcf-owl-bot[bot] Jul 14, 2021
2102108
chore: fix kokoro config for samples (#40)
gcf-owl-bot[bot] Jul 23, 2021
1276087
chore: migrate default branch from master to main (#42)
parthea Aug 25, 2021
bd7119d
chore: removing owlbot directives for conversion to main (#43)
nicain Sep 2, 2021
0cfa3e1
chore: relocate owl bot post processor (#45)
SurferJeffAtGoogle Sep 21, 2021
31e4ba2
chore: add default_version and codeowner_team to .repo-metadata.json …
parthea Oct 4, 2021
84ee461
build: use trampoline_v2 for python samples and allow custom dockerfi…
gcf-owl-bot[bot] Oct 5, 2021
0428b5e
chore(python): Add kokoro configs for python 3.10 samples testing (#48)
gcf-owl-bot[bot] Oct 8, 2021
1262579
chore(python): push cloud library docs to staging bucket for Cloud RA…
gcf-owl-bot[bot] Oct 25, 2021
4fe7076
chore(python): add .github/CODEOWNERS as a templated file (#52)
gcf-owl-bot[bot] Nov 11, 2021
3b765cd
chore: use python-samples-reviewers (#55)
gcf-owl-bot[bot] Jan 6, 2022
26ea389
chore: update release level in repo-metadata.json (#54)
parthea Jan 7, 2022
a255285
build: switch to release-please for tagging (#57)
gcf-owl-bot[bot] Jan 13, 2022
00f4829
chore(python): update release.sh to use keystore (#58)
gcf-owl-bot[bot] Jan 14, 2022
b47ea48
chore(python): exclude templated GH action workflows (#59)
gcf-owl-bot[bot] Jan 22, 2022
8f40dc8
chore: add custom sync repo settings (#60)
parthea Feb 9, 2022
6dccf48
ci: use click<8.1.0 for lint/blacken session (#61)
gcf-owl-bot[bot] Apr 1, 2022
7229836
chore(python): Enable size-label bot (#63)
gcf-owl-bot[bot] Apr 1, 2022
922c167
chore(python): add license header to auto-label.yaml (#64)
gcf-owl-bot[bot] Apr 6, 2022
076605f
chore(python): use ubuntu 22.04 in docs image (#66)
gcf-owl-bot[bot] Apr 21, 2022
121b145
chore(python): auto approve template changes (#67)
gcf-owl-bot[bot] May 5, 2022
6b25073
chore(python): drop python 3.6 (#72)
gcf-owl-bot[bot] Jul 23, 2022
2a58d49
chore: remove 'pip install' statements from python_library templates …
gcf-owl-bot[bot] Aug 24, 2022
a82a453
chore(python): update dependency distlib (#78)
gcf-owl-bot[bot] Aug 30, 2022
3f8f158
(#79)
gcf-owl-bot[bot] Sep 1, 2022
573d91e
chore(python): update .kokoro/requirements.txt (#80)
gcf-owl-bot[bot] Sep 2, 2022
e13fc06
chore: update dependency protobuf >= 3.20.2 (#92)
gcf-owl-bot[bot] Oct 3, 2022
0cd7b7f
chore: Update CODEOWNERS (#93)
sai-sunder-s Oct 5, 2022
3b80f96
chore: use templated renovate config (#91)
parthea Oct 6, 2022
6d41c4d
build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…
gcf-owl-bot[bot] Dec 14, 2022
6f3cf9e
chore(python): add support for python 3.11 [autoapprove] (#100)
gcf-owl-bot[bot] Jan 6, 2023
1672433
build(deps): bump cryptography from 38.0.3 to 39.0.1 in /synthtool/gc…
gcf-owl-bot[bot] Feb 8, 2023
2d89b6e
chore(python): upgrade gcp-releasetool in .kokoro [autoapprove] (#102)
gcf-owl-bot[bot] Feb 27, 2023
c4a6729
chore(deps): Update nox in .kokoro/requirements.in [autoapprove] (#103)
gcf-owl-bot[bot] Mar 16, 2023
8f973ec
build(deps): bump requests from 2.28.1 to 2.31.0 in /synthtool/gcp/te…
gcf-owl-bot[bot] May 25, 2023
6c5d9f1
build(deps): bump cryptography from 39.0.1 to 41.0.0 in /synthtool/gc…
gcf-owl-bot[bot] Jun 3, 2023
144b03c
chore: store artifacts in placer (#106)
gcf-owl-bot[bot] Jun 29, 2023
838d1a2
build(deps): [autoapprove] bump cryptography from 41.0.0 to 41.0.2 (#…
gcf-owl-bot[bot] Jul 17, 2023
a042ee0
build(deps): [autoapprove] bump pygments from 2.13.0 to 2.15.0 (#108)
gcf-owl-bot[bot] Jul 21, 2023
b380763
build(deps): [autoapprove] bump certifi from 2022.12.7 to 2023.7.22 (…
gcf-owl-bot[bot] Jul 27, 2023
4845a25
build: [autoapprove] bump cryptography from 41.0.2 to 41.0.3 (#112)
gcf-owl-bot[bot] Aug 3, 2023
b02cb9e
chore: Update Python versions, remove six (#111)
jay0lee Aug 21, 2023
bfe8740
fix: update setup.py (#114)
sabuhigr Aug 21, 2023
67d8725
chore(main): release 0.1.1 (#115)
release-please[bot] Sep 11, 2023
e7b32f5
chore: [autoapprove] bump cryptography from 41.0.3 to 41.0.4 (#117)
gcf-owl-bot[bot] Oct 4, 2023
29c94b8
chore: [autoapprove] Update `black` and `isort` to latest versions (#…
gcf-owl-bot[bot] Oct 9, 2023
af5d68c
chore: rename rst files to avoid conflict with service names (#122)
gcf-owl-bot[bot] Oct 26, 2023
2f47b9b
deps: remove third-party mock library (#124)
felixonmars Nov 13, 2023
0518b4b
chore: bump urllib3 from 1.26.12 to 1.26.18 (#123)
gcf-owl-bot[bot] Nov 15, 2023
62faf0a
feat: Add support for Python 3.12 (#126)
gcf-owl-bot[bot] Nov 24, 2023
8701e7d
build: treat warnings as errors (#127)
parthea Nov 28, 2023
d57ee53
chore: bump cryptography from 41.0.5 to 41.0.6 in /synthtool/gcp/temp…
gcf-owl-bot[bot] Dec 10, 2023
c6efc83
build: filter warning from google-auth (#131)
parthea Dec 12, 2023
67f14fe
chore(main): release 0.2.0 (#125)
release-please[bot] Dec 12, 2023
43b6a78
build(python): fix `docs` and `docfx` builds (#133)
gcf-owl-bot[bot] Jan 25, 2024
34a2b58
build(deps): bump cryptography from 42.0.2 to 42.0.4 in .kokoro (#137)
gcf-owl-bot[bot] Mar 11, 2024
547367a
chore(python): update dependencies in /.kokoro (#139)
gcf-owl-bot[bot] Mar 22, 2024
c6b1a9e
chore(python): bump idna from 3.4 to 3.7 in .kokoro (#146)
gcf-owl-bot[bot] Apr 12, 2024
de3b778
chore: update templated files (#152)
gcf-owl-bot[bot] Jul 3, 2024
e439f24
chore(python): use python 3.10 for docs build (#155)
gcf-owl-bot[bot] Jul 9, 2024
7ac9b35
chore: update templated files (#161)
parthea Oct 29, 2024
e0d20dc
chore(python): update dependencies in .kokoro/docker/docs (#166)
gcf-owl-bot[bot] Nov 14, 2024
379061b
chore(python): Update the python version in docs presubmit to use 3.1…
gcf-owl-bot[bot] Jan 3, 2025
5ce69e5
chore: update readme of httplib2 to indicate library is deprecated (#…
harkamaljot Jan 15, 2025
15054f6
chore(python): conditionally load credentials in .kokoro/build.sh (#182)
gcf-owl-bot[bot] Mar 3, 2025
4ee2124
chore: remove unused files (#186)
parthea Mar 7, 2025
f831d73
fix: drop python 3.6 (#188)
parthea Mar 11, 2025
ef8e49a
fix: remove setup.cfg configuration for creating universal wheels (#191)
parthea Mar 14, 2025
3ea7b5b
chore: link to package documentation in README (#190)
parthea Mar 14, 2025
24013fd
chore: remove config for older py versions (#198)
ohmayr Oct 30, 2025
62303e4
chore(main): release 0.2.1 (#189)
release-please[bot] Oct 30, 2025
2bcc0c4
chore(librarian): onboard to librarian (#197)
ohmayr Oct 30, 2025
4c48fb6
chore(librarian): clean up owlbot files and pin image sha (#200)
parthea Nov 11, 2025
7eeee83
Merge remote-tracking branch 'remote.googleapis/google-auth-library-p…
parthea Nov 24, 2025
1623021
Trigger owlbot post-processor
parthea Nov 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/google-auth-httplib2/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[run]
branch = True

[report]
omit =
*/conftest.py
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
# Ignore debug-only repr
def __repr__
# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError
33 changes: 33 additions & 0 deletions packages/google-auth-httplib2/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
#
# Copyright 2024 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
#
# https://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.

# Generated by synthtool. DO NOT EDIT!
[flake8]
ignore = E203, E231, E266, E501, W503
exclude =
# Exclude generated code.
**/proto/**
**/gapic/**
**/services/**
**/types/**
*_pb2.py

# Standard linting exemptions.
**/.nox/**
__pycache__,
.git,
*.pyc,
conf.py
12 changes: 12 additions & 0 deletions packages/google-auth-httplib2/.github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Code owners file.
# This file controls who is tagged for review for any given pull request.
#
# For syntax help see:
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
# Note: This file is autogenerated. To make changes to the codeowner team, please update .repo-metadata.json.

# @googleapis/yoshi-python @googleapis/googleapis-auth are the default owners for changes in this repo
* @googleapis/yoshi-python @googleapis/googleapis-auth

# @googleapis/python-samples-reviewers @googleapis/googleapis-auth are the default owners for samples changes
/samples/ @googleapis/python-samples-reviewers @googleapis/googleapis-auth
28 changes: 28 additions & 0 deletions packages/google-auth-httplib2/.github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# How to Contribute

We'd love to accept your patches and contributions to this project. There are
just a few small guidelines you need to follow.

## Contributor License Agreement

Contributions to this project must be accompanied by a Contributor License
Agreement. You (or your employer) retain the copyright to your contribution;
this simply gives us permission to use and redistribute your contributions as
part of the project. Head over to <https://cla.developers.google.com/> to see
your current agreements on file or to sign a new one.

You generally only need to submit a CLA once, so if you've already submitted one
(even if it was for a different project), you probably don't need to do it
again.

## Code reviews

All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
information on using pull requests.

## Community Guidelines

This project follows [Google's Open Source Community
Guidelines](https://opensource.google.com/conduct/).
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Bug report
about: Create a report to help us improve

---

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

- Search the issues already opened: https://github.com/googleapis/google-auth-library-python-httplib2/issues
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python

If you are still having issues, please be sure to include as much information as possible:

#### Environment details

- OS type and version:
- Python version: `python --version`
- pip version: `pip --version`
- `google-auth-httplib2` version: `pip show google-auth-httplib2`

#### Steps to reproduce

1. ?
2. ?

#### Code example

```python
# example
```

#### Stack trace
```
# example
```

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest an idea for this library

---

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Support request
about: If you have a support contract with Google, please create an issue in the Google Cloud Support console.

---

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/google-auth-library-python-httplib2/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕
20 changes: 20 additions & 0 deletions packages/google-auth-httplib2/.github/auto-label.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2024 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.
requestsize:
enabled: true

path:
pullrequest: true
paths:
samples: "samples"
17 changes: 17 additions & 0 deletions packages/google-auth-httplib2/.github/blunderbuss.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Blunderbuss config
#
# This file controls who is assigned for pull requests and issues.
# Note: This file is autogenerated. To make changes to the assignee
# team, please update `codeowner_team` in `.repo-metadata.json`.
assign_issues:
- googleapis/googleapis-auth

assign_issues_by:
- labels:
- "samples"
to:
- googleapis/python-samples-reviewers
- googleapis/googleapis-auth

assign_prs:
- googleapis/googleapis-auth
15 changes: 15 additions & 0 deletions packages/google-auth-httplib2/.github/header-checker-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{"allowedCopyrightHolders": ["Google LLC"],
"allowedLicenses": ["Apache-2.0", "MIT", "BSD-3"],
"ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt", "**/__init__.py", "samples/**/constraints.txt", "samples/**/constraints-test.txt"],
"sourceFileExtensions": [
"ts",
"js",
"java",
"sh",
"Dockerfile",
"yaml",
"py",
"html",
"txt"
]
}
Empty file.
61 changes: 61 additions & 0 deletions packages/google-auth-httplib2/.github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
on:
pull_request:
branches:
- main
name: unittest
jobs:
unit:
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
runs-on: ubuntu-22.04
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install nox
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install nox
- name: Run unit tests
env:
COVERAGE_FILE: .coverage-${{ matrix.python }}
run: |
nox -s unit-${{ matrix.python }}
- name: Upload coverage results
uses: actions/upload-artifact@v4
with:
name: coverage-artifact-${{ matrix.python }}
path: .coverage-${{ matrix.python }}
include-hidden-files: true

cover:
runs-on: ubuntu-latest
needs:
- unit
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install coverage
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install coverage
- name: Download coverage results
uses: actions/download-artifact@v4
with:
path: .coverage-results/
- name: Report coverage results
run: |
find .coverage-results -type f -name '*.zip' -exec unzip {} \;
coverage combine .coverage-results/**/.coverage*
coverage report --show-missing --fail-under=99
40 changes: 40 additions & 0 deletions packages/google-auth-httplib2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Build artifacts
*.py[cod]
__pycache__
*.egg-info/
build/
dist/

# Documentation-related
docs/_build

# Test files
.nox/
.tox/
.cache/

# Django test database
db.sqlite3

# Coverage files
.coverage
coverage.xml
nosetests.xml
htmlcov/

# Files with private / local data
scripts/local_test_setup
tests/data/key.json
tests/data/key.p12
tests/data/user-key.json

# PyCharm configuration:
.idea

# Generated files
pylintrc
pylintrc.test

# Test logs
coverage.xml
*sponge_log.xml
60 changes: 60 additions & 0 deletions packages/google-auth-httplib2/.kokoro/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/bin/bash
# Copyright 2024 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
#
# https://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.

set -eo pipefail

CURRENT_DIR=$(dirname "${BASH_SOURCE[0]}")

if [[ -z "${PROJECT_ROOT:-}" ]]; then
PROJECT_ROOT=$(realpath "${CURRENT_DIR}/..")
fi

pushd "${PROJECT_ROOT}"

# Disable buffering, so that the logs stream through.
export PYTHONUNBUFFERED=1

# Debug: show build environment
env | grep KOKORO

# Setup service account credentials.
if [[ -f "${KOKORO_GFILE_DIR}/service-account.json" ]]
then
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
fi

# Setup project id.
if [[ -f "${KOKORO_GFILE_DIR}/project-id.json" ]]
then
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
fi

# If this is a continuous build, send the test log to the FlakyBot.
# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then
cleanup() {
chmod +x $KOKORO_GFILE_DIR/linux_amd64/flakybot
$KOKORO_GFILE_DIR/linux_amd64/flakybot
}
trap cleanup EXIT HUP
fi

# If NOX_SESSION is set, it only runs the specified session,
# otherwise run all the sessions.
if [[ -n "${NOX_SESSION:-}" ]]; then
python3 -m nox -s ${NOX_SESSION:-}
else
python3 -m nox
fi
Loading
Loading