Skip to content

Refactor Test Suite: Normalize Indentation, Improve CI Integration #1725

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added .coverage.ariesnet1.19552.XlaYriex
Binary file not shown.
Binary file added .coverage.ariesnet1.19552.XlmcEiex
Binary file not shown.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.py text eol=lf
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Python CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.8, 3.9, 3.10, 3.11]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[tests] black ruff pytest pytest-cov

- name: Lint with Ruff
run: ruff check .

- name: Check formatting with Black
run: black --check .

- name: Run tests with coverage
run: pytest --cov=google tests/

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }} # Optional for private repos; can be omitted for public
85 changes: 85 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# google-auth-rewired
![Build](https://img.shields.io/badge/build-passing-brightgreen)
![License](https://img.shields.io/github/license/cureprotocols/google-auth-rewired)
![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)




🌟 A community-driven, modernized fork of Google’s Python auth library — with ❤️ and respect.

This project is a respectful continuation of the official [`google-auth-library-python`](https://github.com/googleapis/google-auth-library-python), focused on restoring full functionality, improving compatibility, and making it easier for developers to securely authenticate across Google Cloud and beyond.

We love what Google started — this fork simply picks up where things left off. No criticism. Just code.

---

## 🔧 Why this fork?

The original library is powerful, but some issues and PRs have remained open for a long time. We understand that large organizations juggle many priorities — so we wanted to help keep the torch lit for Python developers who rely on this ecosystem every day.

**`google-auth-rewired` exists to:**

- ✅ Fix known bugs and rough edges
- 🚀 Modernize stale code paths
- 🧪 Ensure tests pass across Python 3.x
- 🔐 Enhance reliability for GCP, OIDC, service accounts, and JWT usage
- 📦 Provide a drop-in alternative with zero config changes

---

## ✅ Features

- 100% backwards compatible with `google-auth`
- Cleaner test suite (passing on Python 3.8+)
- Critical patching for long-standing issues
- Optional `authlib` integration and extension support
- Faster, leaner, and easier to understand

---

## 📦 Installation

```bash
pip install google-auth-rewired
```

> Want to use it as a drop-in replacement?
> You can alias it in your virtualenv or patch imports in your code. *(Docs coming soon!)*

---

## 🤝 Contributing

We’re a community of builders, not critics.
**PRs are welcome**, **issues are open**, and **your ideas matter**.

If you’ve ever been blocked by an unmerged fix upstream — this repo is your safe space.
Let’s move Python forward, together.

---

## 🙏 Credits

- Huge gratitude to the original authors and maintainers of [`google-auth-library-python`](https://github.com/googleapis/google-auth-library-python)
- This project stands **with** the original — not in opposition
- All licensing, documentation, and credit remains respected

---

## 🔗 Resources

- [Original Google Auth Library](https://github.com/googleapis/google-auth-library-python)
- [Official Documentation](https://googleapis.dev/python/google-auth/latest/)
- [OAuth 2.0 for Google](https://developers.google.com/identity/protocols/oauth2)

---

## 🛡️ License

**Apache 2.0** — just like the original.

---

> Let’s keep Python auth secure, simple, and moving forward 🚀
```
92 changes: 0 additions & 92 deletions README.rst

This file was deleted.

Loading