Skip to content

Commit

Permalink
PAS-507 | Python 3.9 (#73)
Browse files Browse the repository at this point in the history
Co-authored-by: Maciej Zieniuk <[email protected]>
  • Loading branch information
jonashendrickx and mzieniukbw authored Sep 24, 2024
1 parent a1eef25 commit 8e20359
Show file tree
Hide file tree
Showing 11 changed files with 823 additions and 770 deletions.
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
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
- 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

0 comments on commit 8e20359

Please sign in to comment.