Skip to content
Merged
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
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ exclude =
dist
releases
.venv
.tox
.pytest_cache
.eggs
29 changes: 25 additions & 4 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install poetry
run: pipx install poetry==2.2.1
run: pipx install poetry==2.4.1
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.13"
python-version: "3.14"
cache: 'poetry'
- name: Install dependencies
run: poetry install --no-interaction
Expand All @@ -27,7 +27,7 @@ jobs:
strategy:
matrix:
os: [Ubuntu, macOS, Windows]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
include:
- os: Ubuntu
image: ubuntu-latest
Expand All @@ -41,7 +41,7 @@ jobs:
with:
submodules: true
- name: Install poetry
run: pipx install poetry==2.2.1
run: pipx install poetry==2.4.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
id: python-setup
Expand All @@ -53,3 +53,24 @@ jobs:
- name: Install dependencies
run: poetry install --no-interaction
- run: poetry run pytest

pypy:
name: Ubuntu / PyPy 3.10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
submodules: true
- name: Install Poetry
run: pipx install poetry==2.4.1
- name: Set up PyPy 3.10
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
id: pypy-setup
with:
python-version: pypy3.10
cache: 'poetry'
- name: Set Poetry environment
run: poetry env use ${{ steps.pypy-setup.outputs.python-path }}
- name: Install dependencies
run: poetry install --no-interaction
- run: poetry run pytest
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install poetry
run: pipx install poetry==2.2.1
run: pipx install poetry==2.4.1
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.13"
python-version: "3.14"
cache: 'poetry'
- name: Publish
env:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.10.0
- Add support for Python 3.14
- Remove Support for EOL Python 3.9
- Remove tox in favor of running pytest directly with Poetry and the GitHub Actions Python version matrix.

# 1.9.0
- Add support for PKCS#8 private key format

Expand Down
11 changes: 5 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Contributing

We use [travis](https://travis-ci.org) for automated CI of the code (and status checks are required to pass prior to PR merges being accepted).
We use travis to deploy updated versions to PyPI (only from `master`)
GitHub Actions runs the automated checks for pull requests and publishes releases to PyPI.

For local development (cross version) we use [tox](http://tox.readthedocs.io/en/latest/) with [pyenv](https://github.com/pyenv/pyenv) to automate the running of unit tests against different python versions in virtualised python environments.
For local development, install the dependencies with Poetry and run the unit tests with pytest. The test suite runs against all supported Python versions in CI.

## Installation

Expand All @@ -14,7 +13,7 @@ To setup your environment:
brew update
brew install pyenv
```
1. Install your favorite Python version (>= 3.8 please!)
1. Install your favorite Python version (>= 3.10 please!)
```bash
pyenv install <YOUR_FAVORITE_VERSION>
```
Expand Down Expand Up @@ -43,6 +42,6 @@ to init the submodule.

## Unit Tests

1. Make any changes, update the tests and then run tests with `poetry run tox`.
1. Make any changes, update the tests and then run tests with `poetry run pytest`.
1. Coverage report can be viewed using `open htmlcov/index.html`.
1. Or if you don't care about tox, just run `poetry run pytest` or `poetry run pytest <SOME_FILE>`.
1. To run a specific test file, use `poetry run pytest <SOME_FILE>`.
7 changes: 4 additions & 3 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ The framework is licensed under the MIT licensing terms.
What versions of Python are supported?
--------------------------------------
Each release of requests-mauth is tested against:
* Python 3.8
* Python 3.9
* Python 3.10
* Python 3.11
* Python 3.12
* Python 3.13
* Python 3.14
* PyPy3

The values tested can be seen in the `tox.ini` file. We use tox to test the code across Python versions, see the README.md for details.
The test matrix is maintained in the project's GitHub Actions workflow.
20 changes: 20 additions & 0 deletions factbook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: backstage.io/v1alpha1
kind: Component
spec:
type: library
lifecycle: production
owner: ae@mdsol.com
experience: enablement
metadata:
json_schema: https://github.com/mdsol/platform-standards/tree/main/schemas/v1alpha1.schema.json
name: mauth-client-python
title: MAuth Client Python
description: A client library for MAuth in Python.
teams:
- name: Architecture Enablement
number: 119
people:
- role: technical owner
email: ykitamura@mdsol.com
annotations:
product: N/A
Loading