Skip to content

Commit

Permalink
Update dependencies (#153)
Browse files Browse the repository at this point in the history
Co-authored-by: Václav Dohnal <[email protected]>
  • Loading branch information
illagrenan and Václav Dohnal authored Jan 11, 2025
1 parent 93bab0b commit 63c8ab7
Show file tree
Hide file tree
Showing 8 changed files with 527 additions and 433 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""

[[tool.bumpversion.files]]
filename = "django_asgi_lifespan/__init__.py"
filename = "django_brotli/__init__.py"
search = "__version__ = \"{current_version}\""
replace = "__version__ = \"{new_version}\""
36 changes: 25 additions & 11 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,50 +13,64 @@ jobs:
strategy:
matrix:
python-versions: [ "3.10", "3.11", "3.12", "3.13" ]
django-versions: [ "4.2.*", "5.0.*", "5.1.*"]
django-versions: [ "4.2.*", "5.0.*", "5.1.*" ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
exclude:
- python-versions: "3.13"
django-versions: "4.2.*"
- python-versions: "3.13"
django-versions: "5.0.*"
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-versions }}

- name: Install Poetry
run: |
python -m pip install --no-input --upgrade pip
pip install --no-input poetry
uses: snok/install-poetry@v1
with:
version: 2.0.0
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
installer-parallel: true

- name: Check pyproject.toml
run: |
poetry check -vv -n
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install -vv -n
- uses: actions/cache@v4
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ matrix.python-versions }}-${{ hashFiles('poetry.lock') }}
poetry install -vv --no-interaction
- name: Install Django
run: |
poetry run pip install --upgrade django==${{ matrix.django-versions }}
- name: Install Task
uses: arduino/setup-task@v2
if: steps.cached-task.outputs.cache-hit != 'true'
with:
version: 3.4.x
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run linters
Expand Down
27 changes: 24 additions & 3 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,32 @@ jobs:
with:
python-version: ${{ matrix.python-versions }}

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 2.0.0
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
installer-parallel: true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install -vv --no-interaction
- name: Install Django
run: |
python -m pip install --no-input --upgrade pip
pip install poetry
poetry install -vv -n
poetry run pip install --upgrade django==${{ matrix.django-versions }}
- name: Install Task
uses: arduino/setup-task@v2
Expand Down
23 changes: 20 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,28 @@ jobs:
with:
python-version: ${{ matrix.python-versions }}

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 2.0.0
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
installer-parallel: true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
python -m pip install --no-input --upgrade pip
pip install poetry
poetry install -vv -n
poetry install -vv --no-interaction
- name: Install Task
uses: arduino/setup-task@v2
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
- id: detect-private-key

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
rev: v0.9.1
hooks:
- id: ruff
files: ^django_asgi_lifespan/
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016-2024, Václav Dohnal
Copyright (c) 2016-2025, Václav Dohnal

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 63c8ab7

Please sign in to comment.