Skip to content
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

PAS-507 | Python 3.9 #73

Merged
merged 17 commits into from
Sep 24, 2024
Merged
8 changes: 6 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.8
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.8'
python-version: '3.9'
cache: 'poetry'
- name: Setup
run: poetry env use 3.9
- name: Environment information
run: poetry env info
- name: Configure PYPI
run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
- name: Publish to PYPI
Expand Down
57 changes: 54 additions & 3 deletions .github/workflows/ci.yml
jonashendrickx marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

jobs:
build:
build-sdk:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -18,11 +18,15 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.8
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.8'
python-version: '3.9'
cache: 'poetry'
- name: Setup
run: poetry env use 3.9
- name: Environment information
run: poetry env info
- name: Build
run: poetry install --with dev,test
jonashendrickx marked this conversation as resolved.
Show resolved Hide resolved
- name: Run isort
Expand All @@ -37,3 +41,50 @@ jobs:
run: poetry run mypy .
- name: Test
run: poetry run pytest

build-flask-example:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.9'
cache: 'poetry'
- name: Setup
run: poetry env use 3.9
- name: Environment information
run: poetry env info
- name: Build
run: |
cd examples/flask
poetry install --with dev

build-streamlit-example:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.9'
cache: 'poetry'
- name: Setup
run: poetry env use 3.9
- name: Environment information
run: poetry env info
- name: Build
run: |
cd examples/streamlit
poetry install --with dev

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ For a comprehensive list of examples, check out the [API documentation][api-docs

## Contributing

This library is compatible with Python 3 and requires minimum Python 3.8 installed.
This library is compatible with Python 3 and requires minimum Python 3.9 installed.
Install [Poetry][poetry] if not already installed.

Activate shell: `poetry shell`
Expand Down
2 changes: 1 addition & 1 deletion examples/flask/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Please read the documentation here: https://docs.passwordless.dev
This example uses *Flask* and provides UI and REST interfaces to interact with
the [Passwordless Python SDK][passwordless-python-sdk] to the *Passwordless API*.

Python 3.8 or newer is required to run the application.
Python 3.9 or newer is required to run the application.
Install [Poetry][poetry] if not already installed.

Activate shell: `poetry shell`
Expand Down
Loading