Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies #131

Merged
merged 7 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 4 additions & 25 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ jobs:
with:
python-version: "3.11.0"
- run: pip install pre-commit
- uses: actions/cache@v3
id: pre-commit-cache
with:
path: ~/.cache/pre-commit
key: key-0
- run: pre-commit run --all-files
env:
SKIP: rst
Expand All @@ -29,45 +24,29 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.8.18", "3.9.18", "3.10.13", "3.11.7", "3.12.1"]
django-version: [ "3.2", "4.2", "5.0"]
python-version: [ "3.9.18", "3.10.13", "3.11.7", "3.12.1" ]
django-version: [ "4.2", "5.0", "5.1" ]
exclude:
# Django v3 does not support Python >3.10
- django-version: 3.2
python-version: 3.11.7
- django-version: 3.2
python-version: 3.12.1
# Django v5 drops Python <3.10 support
- django-version: 5.0
python-version: 3.8.18
- django-version: 5.0
python-version: 3.9.18
- django-version: 5.1
python-version: 3.9.18
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- uses: actions/cache@v3
id: poetry-cache
with:
path: ~/.local
key: key-4
- uses: snok/install-poetry@v1
with:
virtualenvs-create: false
version: 1.2.2
- uses: actions/cache@v3
id: cache-venv
with:
path: .venv
key: ${{ hashFiles('**/poetry.lock') }}-5
- run: |
pip install virtualenv
virtualenv .venv
source .venv/bin/activate
pip install pip setuptools wheel -U
poetry install --no-interaction --no-root
if: steps.cache-venv.outputs.cache-hit != 'true'
- run: |
source .venv/bin/activate
pip install "Django==${{ matrix.django-version }}"
Expand Down
17 changes: 0 additions & 17 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,6 @@
Django GUID attaches a unique correlation ID/request ID to all your log outputs for every request.
In other words, all logs connected to a request now has a unique ID attached to it, making debugging simple.

Which version of Django GUID you should use depends on your Django version and whether you run ``ASGI`` or ``WSGI`` servers.
To determine which Django-GUID version you should use, please see the table below.


+---------------------+--------------------------+
| Django version | Django-GUID version |
+=====================+==========================+
| 3.1.1 or above | 3.x.x - ASGI and WSGI |
+---------------------+--------------------------+
| 3.0.0 - 3.1.0 | 2.x.x - Only WSGI |
+---------------------+--------------------------+
| 2.2.x | 2.x.x - Only WSGI |
+---------------------+--------------------------+

Django GUID >= 3.0.0 uses ``ContextVar`` to store and access the GUID. Previous versions stored the GUID to an object,
making it accessible by using the ID of the current thread. (Version 2 of Django GUID is supported until Django2.2 LTS is over.)

--------------


Expand Down
Loading
Loading