Skip to content

Commit

Permalink
feat: Drop support of Python 3.7 (#72)
Browse files Browse the repository at this point in the history
* feat: Drop support of Python 3.7
  • Loading branch information
akalex authored Feb 6, 2024
1 parent e9bf0e9 commit 6bb4561
Show file tree
Hide file tree
Showing 6 changed files with 201 additions and 307 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5

- name: Install Poetry
uses: snok/install-poetry@v1
Expand Down Expand Up @@ -50,11 +50,11 @@ jobs:
steps:
- name: source code
if: startsWith(github.ref, 'refs/tags/')
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
if: startsWith(github.ref, 'refs/tags/')
uses: actions/setup-python@v4
uses: actions/setup-python@v5

- name: Install Poetry
uses: snok/install-poetry@v1
Expand Down
44 changes: 29 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- name: Checkout source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -54,7 +55,10 @@ jobs:

- name: Install Dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction -vv
run: poetry install --no-interaction --no-root

- name: Install library
run: poetry install --no-interaction

- name: Log currently installed packages and versions
run: poetry show
Expand All @@ -64,17 +68,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: source code
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
version: ${{ env.POETRY_VERSION }}
virtualenvs-in-project: true
installer-parallel: true

Expand All @@ -89,6 +93,9 @@ jobs:
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root

- name: Install library
run: poetry install --no-interaction

- name: Check code style
run: poetry run black --check --line-length=120 --diff async_firebase

Expand All @@ -97,19 +104,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: source code
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Load cached venv
id: cached-poetry-dependencies
Expand All @@ -122,6 +129,9 @@ jobs:
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root

- name: Install library
run: poetry install --no-interaction

- name: Static type checker
run: |
python -m pip install types-setuptools
Expand All @@ -132,22 +142,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- name: source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
- name: Set up Python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Load cached venv
id: cached-poetry-dependencies
Expand All @@ -160,6 +171,9 @@ jobs:
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root

- name: Install library
run: poetry install --no-interaction

- name: Run pytest
run: poetry run pytest tests/

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.5.0
* [BREAKING] Drop support of **Python 3.7**

## 3.4.1
* [FIX] The batch URL is composed incorrectly, which causes an HTTP 404 response to be received.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


* Free software: MIT license
* Requires: Python 3.7+
* Requires: Python 3.8+

## Features

Expand Down
Loading

0 comments on commit 6bb4561

Please sign in to comment.