Skip to content

Commit

Permalink
support python 3.12 (#64)
Browse files Browse the repository at this point in the history
* support python 3.12
* update to setup-python@v4
* Allow Python pre-releases in CI
* update pip, poetry, and setuptools versions to the latest
  • Loading branch information
TomerBin authored Oct 3, 2023
1 parent ca5233c commit 5df05bd
Show file tree
Hide file tree
Showing 5 changed files with 255 additions and 223 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
- name: Install Python dependencies
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
env:
POETRY_VERSION: 1.2.2
POETRY_VERSION: 1.6.1
run: |
pip install pip==22.3 setuptools==65.5.0
pip install pip==23.2.1 setuptools==68.2.2
curl -sSL https://install.python-poetry.org | python3 -
export VENV="$(poetry env info -p)"
source ${VENV}/bin/activate
Expand All @@ -60,9 +60,9 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
POETRY_VERSION: 1.2.2
POETRY_VERSION: 1.6.1
run: |
pip install pip==22.3 setuptools==65.5.0
pip install pip==23.2.1 setuptools==68.2.2
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
poetry build
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- name: Checkout source code
uses: actions/checkout@v3

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

- name: virtualenv cache
uses: syphar/[email protected]
Expand All @@ -48,9 +49,9 @@ jobs:
- name: Install Python dependencies
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
env:
POETRY_VERSION: 1.2.2
POETRY_VERSION: 1.6.1
run: |
pip install pip==22.3 setuptools==65.5.0
pip install pip==23.2.1 setuptools==68.2.2
curl -sSL https://install.python-poetry.org | python3 -
export VENV="$(poetry env info -p)"
source ${VENV}/bin/activate
Expand Down Expand Up @@ -102,7 +103,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- name: source code
uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 3.3.0
* async_firebase now works with python 3.12

## 3.2.0
* ``AsyncFirebaseClient`` empower with advanced features to configure request behaviour such as timeout, or connection pooling.
Example:
Expand Down
Loading

0 comments on commit 5df05bd

Please sign in to comment.