Skip to content

Update serializable branch with main #2072

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

Merged
merged 83 commits into from
Feb 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
8f4fa8e
Version 4.4.6
tim-schilling Jul 10, 2024
46efd5d
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 15, 2024
25656ee
Support an async middleware for the toolbar.
salty-ivy Jun 24, 2024
a9a66a9
Add async tests (#1835)
salomvary Jul 16, 2024
f2e389c
Update installation.rst (#1967)
Dr-Bernard Jul 19, 2024
5d4e97f
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 22, 2024
23bb473
Make toolbar compatible with `FORCE_SCRIPT_NAME`
dmartin Jul 22, 2024
ee258fc
Use `path_info` when resolving requests
dmartin Jul 22, 2024
969f0a7
Support select and explain for UNION queries (#1972)
friedelwolff Jul 26, 2024
c5cdd70
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 29, 2024
573a87b
toggle debug to true so that debug middleware make a complete run
salty-ivy Aug 2, 2024
173b387
Quick hack for including csp_nonces from requests into script tags (#…
karolyi Aug 5, 2024
aea6cc6
[pre-commit.ci] pre-commit autoupdate (#1980)
pre-commit-ci[bot] Aug 5, 2024
89568d5
Slightly increase opacity of debug toolbar button (#1982)
jribbens Aug 6, 2024
405f9f2
Async compatible redirect panel (#1976)
salty-ivy Aug 6, 2024
45cbf41
:wrench: update translation for Persian language
elias-ebrahimpour Jan 24, 2024
9e30a06
Add a paragraph describing our stance on Python typing (#1979)
matthiask Aug 6, 2024
f669930
Use higher contrast when dark mode is enabled (#1987)
myou1985 Aug 13, 2024
d3ea31b
Switch to Django Commons code of conduct
tim-schilling Aug 2, 2024
2cad608
Create new translatable strings.
tim-schilling Aug 6, 2024
c44e668
Update the transifex contributing docs and client version.
tim-schilling Aug 6, 2024
1bbdf38
Update translatable strings
tim-schilling Aug 6, 2024
a8fd83d
Add changelog for translation changes.
tim-schilling Aug 6, 2024
6b3ff1a
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 12, 2024
940fd22
[pre-commit.ci] pre-commit autoupdate (#1989)
pre-commit-ci[bot] Aug 19, 2024
9a81958
Make Panels non async by default (#1990)
salty-ivy Aug 19, 2024
6fc5ce8
Async compatible `StaticFilesPanel` (#1983)
salty-ivy Aug 20, 2024
3ef6e69
Refs #1668: Fixed the unsortable session keys fallback (#1994)
matthiask Aug 21, 2024
b9d34d3
Add Django 5.1 to the CI matrix (#1995)
matthiask Aug 21, 2024
c0419dd
[pre-commit.ci] pre-commit autoupdate (#1996)
pre-commit-ci[bot] Aug 26, 2024
423ad36
Use Heading-4 for PR template for screen-readers. (#1999)
tim-schilling Aug 27, 2024
c401513
Async compatible `HistoryPanel` (#1991)
salty-ivy Aug 27, 2024
f95b40d
Async compatible `SQLPanel` (#1993)
salty-ivy Sep 2, 2024
e9ba829
Version 5.0.0-alpha (#1998)
tim-schilling Sep 2, 2024
3688272
[pre-commit.ci] pre-commit autoupdate (#2000)
pre-commit-ci[bot] Sep 2, 2024
e3f2418
Correct middleware typos
korverdev Sep 8, 2024
8ccfc27
add support for LoginRequiredMiddleware, login_not_required decorator…
dulmandakh Sep 17, 2024
ee04104
[pre-commit.ci] pre-commit autoupdate (#2004)
pre-commit-ci[bot] Sep 17, 2024
7290f9c
Async integration tests (#2001)
salty-ivy Sep 19, 2024
279aec6
Modernize Python type hints and string formatting (#2012)
cclauss Oct 6, 2024
0dd5716
[pre-commit.ci] pre-commit autoupdate (#2006)
pre-commit-ci[bot] Oct 7, 2024
244d4fd
[pre-commit.ci] pre-commit autoupdate (#2013)
pre-commit-ci[bot] Oct 7, 2024
22c92e4
Adding in support for Python 3.13 (#2014)
abeed-avayu Oct 13, 2024
4ad55f7
Fix #2011: Test the divisor, not the dividend for zero (#2015)
matthiask Oct 14, 2024
69b1e27
[pre-commit.ci] pre-commit autoupdate (#2016)
pre-commit-ci[bot] Oct 14, 2024
aac8ea9
[pre-commit.ci] pre-commit autoupdate (#2018)
pre-commit-ci[bot] Oct 21, 2024
a21604a
Update Installation warning doc (#2019)
salty-ivy Oct 24, 2024
89449b6
Convert to Django Commons pypi-github release process (#2017)
tim-schilling Oct 27, 2024
6d45d1d
The static files panel shouldn't choke on unexpected data types (#2021)
matthiask Oct 27, 2024
396b626
Update references to point to django-commons repo
robhudson Oct 27, 2024
fc4bf66
Update pyupgrade's target version to Python 3.9 (#2024)
ulgens Oct 31, 2024
f9892ec
Apply UP006 and UP035 changes (#2025)
ulgens Oct 31, 2024
2c66ff8
Update our pre-commit hooks, especially the ESLint versions (#2026)
matthiask Oct 31, 2024
03c89d7
[pre-commit.ci] pre-commit autoupdate (#2028)
pre-commit-ci[bot] Nov 5, 2024
7f18cf5
I added more explanations to the example/readme file. (#2027)
jong-seoung Nov 5, 2024
fe968e2
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Nov 11, 2024
a9ac5dc
Fix linting errors
matthiask Nov 12, 2024
044d66b
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Nov 25, 2024
2fc00c6
Update the ESLint dependencies
matthiask Nov 26, 2024
f3f6049
Adopt a basic security policy (#2040)
tim-schilling Dec 16, 2024
c24afa7
[pre-commit.ci] pre-commit autoupdate (#2038)
pre-commit-ci[bot] Dec 17, 2024
dc05f85
Fix whitespace view in code
thesayfulla Dec 22, 2024
8fd4841
Use pygments preferred way of wrapping with code element.
tim-schilling Dec 23, 2024
8d12f42
Respect whitespace with the w whitespace class.
tim-schilling Dec 23, 2024
5b0e50c
Regenerate pygments css styles and document the process.
tim-schilling Dec 23, 2024
e96e53f
Merge pull request #2043 from thesayfulla/whitespace-rendering
tim-schilling Dec 23, 2024
5086e68
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 23, 2024
cda70d3
Documented experimental async support.
tim-schilling Dec 24, 2024
4ab012d
Updated Troubleshooting documentation: simpler mimetype workaround fo…
blep Jan 11, 2025
d7fb357
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jan 7, 2025
0e55ae7
Version 5.0.0
tim-schilling Jan 11, 2025
f0c61d4
Update release workflows to latest trusted publisher GHA.
tim-schilling Jan 14, 2025
43d56b8
Support pushing to test pypi on every push.
tim-schilling Jan 14, 2025
5620e0e
Correct the trusted publisher release GHA version.
tim-schilling Jan 14, 2025
8d365cd
Remove unnecessary trigger for releasing new versions.
tim-schilling Jan 14, 2025
b6ae021
Version 5.0.1
tim-schilling Jan 14, 2025
345b760
Reverting back to tags GHA trigger.
tim-schilling Jan 14, 2025
1325f64
Update version for sigstore action to full version.
tim-schilling Jan 14, 2025
5f36663
[pre-commit.ci] pre-commit autoupdate (#2053)
pre-commit-ci[bot] Jan 18, 2025
16f8ff3
Add Django 5.2 to tox matrix (#2064)
tim-schilling Jan 28, 2025
f8fed2c
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jan 27, 2025
fdd636c
[pre-commit.ci] pre-commit autoupdate (#2067)
pre-commit-ci[bot] Feb 4, 2025
5a21920
Merge branch 'main' into serializable
tim-schilling Feb 9, 2025
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
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Description
#### Description

Please include a summary of the change and which issue is fixed. Please also
include relevant motivation and context. Your commit message should include
this information as well.

Fixes # (issue)

# Checklist:
#### Checklist:

- [ ] I have added the relevant tests for this change.
- [ ] I have added an item to the Pending section of ``docs/changes.rst``.
146 changes: 113 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,120 @@
name: Release
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI

on:
push:
tags:
- '*'
on: push

env:
PYPI_URL: https://pypi.org/p/django-debug-toolbar
PYPI_TEST_URL: https://test.pypi.org/p/django-debug-toolbar

jobs:

build:
if: github.repository == 'jazzband/django-debug-toolbar'
name: Build distribution 📦
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install pypa/build
run:
python3 -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: ${{ env.PYPI_URL }}
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1.12

github-release:
name: >-
Sign the Python 🐍 distribution 📦 with Sigstore
and upload them to GitHub Release
needs:
- publish-to-pypi
runs-on: ubuntu-latest

permissions:
contents: write # IMPORTANT: mandatory for making GitHub Releases
id-token: write # IMPORTANT: mandatory for sigstore

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Sign the dists with Sigstore
uses: sigstore/[email protected]
with:
inputs: >-
./dist/*.tar.gz
./dist/*.whl
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--notes ""
- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
# Upload to GitHub Release using the `gh` CLI.
# `dist/` contains the built packages, and the
# sigstore-produced signatures and certificates.
run: >-
gh release upload
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'

publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to Test PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest

environment:
name: testpypi
url: ${{ env.PYPI_TEST_URL }}

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U build hatchling twine

- name: Build package
run: |
hatchling version
python -m build
twine check dist/*

- name: Upload packages to Jazzband
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: jazzband
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
repository_url: https://jazzband.co/projects/django-debug-toolbar/upload
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1.12
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
13 changes: 9 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

services:
mariadb:
Expand Down Expand Up @@ -73,7 +73,8 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
# Skip 3.13 here, it needs the psycopg3 / postgis3 database
python-version: ['3.9', '3.10', '3.11', '3.12']
database: [postgresql, postgis]
# Add psycopg3 to our matrix for modern python versions
include:
Expand All @@ -83,6 +84,10 @@ jobs:
database: psycopg3
- python-version: '3.12'
database: psycopg3
- python-version: '3.13'
database: psycopg3
- python-version: '3.13'
database: postgis3

services:
postgres:
Expand Down Expand Up @@ -145,7 +150,7 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -192,7 +197,7 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: Get pip cache dir
id: pip-cache
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ coverage.xml
venv
.direnv/
.envrc
venv
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
Expand All @@ -10,11 +10,11 @@ repos:
- id: file-contents-sorter
files: docs/spelling_wordlist.txt
- repo: https://github.com/pycqa/doc8
rev: v1.1.1
rev: v1.1.2
hooks:
- id: doc8
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.19.0
rev: 1.22.2
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
Expand All @@ -32,28 +32,28 @@ repos:
args:
- --trailing-comma=es5
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.6.0
rev: v9.19.0
hooks:
- id: eslint
additional_dependencies:
- "eslint@v9.0.0-beta.1"
- "@eslint/js@v9.0.0-beta.1"
- "eslint@v9.18.0"
- "@eslint/js@v9.18.0"
- "globals"
files: \.js?$
types: [file]
args:
- --fix
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.5.1'
rev: 'v0.9.4'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 2.1.4
rev: v2.5.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.18
rev: v0.23
hooks:
- id: validate-pyproject
14 changes: 8 additions & 6 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
[main]
host = https://www.transifex.com
lang_map = sr@latin:sr_Latn
host = https://www.transifex.com
lang_map = sr@latin: sr_Latn

[django-debug-toolbar.main]
file_filter = debug_toolbar/locale/<lang>/LC_MESSAGES/django.po
source_file = debug_toolbar/locale/en/LC_MESSAGES/django.po
source_lang = en
[o:django-debug-toolbar:p:django-debug-toolbar:r:main]
file_filter = debug_toolbar/locale/<lang>/LC_MESSAGES/django.po
source_file = debug_toolbar/locale/en/LC_MESSAGES/django.po
source_lang = en
replace_edited_strings = false
keep_translations = false
47 changes: 2 additions & 45 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,3 @@
# Code of Conduct
# Django Debug Toolbar Code of Conduct

As contributors and maintainers of the Jazzband projects, and in the interest of
fostering an open and welcoming community, we pledge to respect all people who
contribute through reporting issues, posting feature requests, updating documentation,
submitting pull requests or patches, and other activities.

We are committed to making participation in the Jazzband a harassment-free experience
for everyone, regardless of the level of experience, gender, gender identity and
expression, sexual orientation, disability, personal appearance, body size, race,
ethnicity, age, religion, or nationality.

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery
- Personal attacks
- Trolling or insulting/derogatory comments
- Public or private harassment
- Publishing other's private information, such as physical or electronic addresses,
without explicit permission
- Other unethical or unprofessional conduct

The Jazzband roadies have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are not
aligned to this Code of Conduct, or to ban temporarily or permanently any contributor
for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

By adopting this Code of Conduct, the roadies commit themselves to fairly and
consistently applying these principles to every aspect of managing the jazzband
projects. Roadies who do not follow or enforce the Code of Conduct may be permanently
removed from the Jazzband roadies.

This code of conduct applies both within project spaces and in public spaces when an
individual is representing the project or its community.

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by
contacting the roadies at `[email protected]`. All complaints will be reviewed and
investigated and will result in a response that is deemed necessary and appropriate to
the circumstances. Roadies are obligated to maintain confidentiality with regard to the
reporter of an incident.

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version
1.3.0, available at [https://contributor-covenant.org/version/1/3/0/][version]

[homepage]: https://contributor-covenant.org
[version]: https://contributor-covenant.org/version/1/3/0/
The django-debug-toolbar project utilizes the [Django Commons Code of Conduct](https://github.com/django-commons/membership/blob/main/CODE_OF_CONDUCT.md).
6 changes: 2 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[![Jazzband](https://jazzband.co/static/img/jazzband.svg)](https://jazzband.co/)

This is a [Jazzband](https://jazzband.co/) project. By contributing you agree to abide by the [Contributor Code of Conduct](https://jazzband.co/about/conduct) and follow the [guidelines](https://jazzband.co/about/guidelines).
This is a [Django Commons](https://github.com/django-commons/) project. By contributing you agree to abide by the [Contributor Code of Conduct](https://github.com/django-commons/membership/blob/main/CODE_OF_CONDUCT.md).

Please see the
[full contributing documentation](https://django-debug-toolbar.readthedocs.io/en/stable/contributing.html)
[README](https://github.com/django-commons/membership/blob/main/README.md)
for more help.
Loading