Skip to content

Commit 8e20359

Browse files
Jonas Hendrickxmzieniukbw
Jonas Hendrickx
andauthored
PAS-507 | Python 3.9 (#73)
Co-authored-by: Maciej Zieniuk <[email protected]>
1 parent a1eef25 commit 8e20359

File tree

11 files changed

+823
-770
lines changed

11 files changed

+823
-770
lines changed

.github/workflows/cd.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ jobs:
1414
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1515
- name: Install poetry
1616
run: pipx install poetry
17-
- name: Set up Python 3.8
17+
- name: Set up Python
1818
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
1919
with:
20-
python-version: '3.8'
20+
python-version: '3.9'
2121
cache: 'poetry'
22+
- name: Setup
23+
run: poetry env use 3.9
24+
- name: Environment information
25+
run: poetry env info
2226
- name: Configure PYPI
2327
run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
2428
- name: Publish to PYPI

.github/workflows/ci.yml

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
jobs:
12-
build:
12+
build-sdk:
1313
runs-on: ubuntu-latest
1414
permissions:
1515
contents: read
@@ -18,11 +18,15 @@ jobs:
1818
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1919
- name: Install poetry
2020
run: pipx install poetry
21-
- name: Set up Python 3.8
21+
- name: Set up Python
2222
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
2323
with:
24-
python-version: '3.8'
24+
python-version: '3.9'
2525
cache: 'poetry'
26+
- name: Setup
27+
run: poetry env use 3.9
28+
- name: Environment information
29+
run: poetry env info
2630
- name: Build
2731
run: poetry install --with dev,test
2832
- name: Run isort
@@ -37,3 +41,50 @@ jobs:
3741
run: poetry run mypy .
3842
- name: Test
3943
run: poetry run pytest
44+
45+
build-flask-example:
46+
runs-on: ubuntu-latest
47+
permissions:
48+
contents: read
49+
packages: write
50+
steps:
51+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
52+
- name: Install poetry
53+
run: pipx install poetry
54+
- name: Set up Python
55+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
56+
with:
57+
python-version: '3.9'
58+
cache: 'poetry'
59+
- name: Setup
60+
run: poetry env use 3.9
61+
- name: Environment information
62+
run: poetry env info
63+
- name: Build
64+
run: |
65+
cd examples/flask
66+
poetry install --with dev
67+
68+
build-streamlit-example:
69+
runs-on: ubuntu-latest
70+
permissions:
71+
contents: read
72+
packages: write
73+
steps:
74+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
75+
- name: Install poetry
76+
run: pipx install poetry
77+
- name: Set up Python
78+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
79+
with:
80+
python-version: '3.9'
81+
cache: 'poetry'
82+
- name: Setup
83+
run: poetry env use 3.9
84+
- name: Environment information
85+
run: poetry env info
86+
- name: Build
87+
run: |
88+
cd examples/streamlit
89+
poetry install --with dev
90+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ For a comprehensive list of examples, check out the [API documentation][api-docs
9999

100100
## Contributing
101101

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

105105
Activate shell: `poetry shell`

examples/flask/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Please read the documentation here: https://docs.passwordless.dev
77
This example uses *Flask* and provides UI and REST interfaces to interact with
88
the [Passwordless Python SDK][passwordless-python-sdk] to the *Passwordless API*.
99

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

1313
Activate shell: `poetry shell`

0 commit comments

Comments
 (0)