Skip to content

Commit

Permalink
Merge pull request #4572 from ttys0dev/update-python
Browse files Browse the repository at this point in the history
Update python to version 3.13
  • Loading branch information
mlissner authored Oct 17, 2024
2 parents 94cbe53 + c21dbb5 commit c72de53
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
# `github/codeql-action/init`)
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-python@v5
with:
# Once codebase is updated, this can easily be changed to any specific version.
python-version: "3.12"
python-version: "3.13"

- name: Install Poetry
uses: snok/install-poetry@v1
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
exclude: migrations
default_language_version:
python: "python3.12"
python: "python3.13"
ci:
autoupdate_schedule: quarterly
repos:
Expand Down
18 changes: 18 additions & 0 deletions cl/api/migrations/0012_alter_webhookevent_status_code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.2 on 2024-10-15 00:07

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0011_pghistory_v3_4_0_trigger_update'),
]

operations = [
migrations.AlterField(
model_name='webhookevent',
name='status_code',
field=models.SmallIntegerField(blank=True, choices=[(100, 'Continue'), (101, 'Switching Protocols'), (102, 'Processing'), (103, 'Early Hints'), (200, 'Ok'), (201, 'Created'), (202, 'Accepted'), (203, 'Non Authoritative Information'), (204, 'No Content'), (205, 'Reset Content'), (206, 'Partial Content'), (207, 'Multi Status'), (208, 'Already Reported'), (226, 'Im Used'), (300, 'Multiple Choices'), (301, 'Moved Permanently'), (302, 'Found'), (303, 'See Other'), (304, 'Not Modified'), (305, 'Use Proxy'), (307, 'Temporary Redirect'), (308, 'Permanent Redirect'), (400, 'Bad Request'), (401, 'Unauthorized'), (402, 'Payment Required'), (403, 'Forbidden'), (404, 'Not Found'), (405, 'Method Not Allowed'), (406, 'Not Acceptable'), (407, 'Proxy Authentication Required'), (408, 'Request Timeout'), (409, 'Conflict'), (410, 'Gone'), (411, 'Length Required'), (412, 'Precondition Failed'), (413, 'Content Too Large'), (414, 'Uri Too Long'), (415, 'Unsupported Media Type'), (416, 'Range Not Satisfiable'), (417, 'Expectation Failed'), (418, 'Im A Teapot'), (421, 'Misdirected Request'), (422, 'Unprocessable Content'), (423, 'Locked'), (424, 'Failed Dependency'), (425, 'Too Early'), (426, 'Upgrade Required'), (428, 'Precondition Required'), (429, 'Too Many Requests'), (431, 'Request Header Fields Too Large'), (451, 'Unavailable For Legal Reasons'), (500, 'Internal Server Error'), (501, 'Not Implemented'), (502, 'Bad Gateway'), (503, 'Service Unavailable'), (504, 'Gateway Timeout'), (505, 'Http Version Not Supported'), (506, 'Variant Also Negotiates'), (507, 'Insufficient Storage'), (508, 'Loop Detected'), (510, 'Not Extended'), (511, 'Network Authentication Required')], help_text='The HTTP status code received from the POST request.', null=True),
),
]
6 changes: 6 additions & 0 deletions cl/api/migrations/0012_alter_webhookevent_status_code.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
BEGIN;
--
-- Alter field status_code on webhookevent
--
-- (no-op)
COMMIT;
2 changes: 1 addition & 1 deletion docker/django/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12-slim as build-base
FROM python:3.13-slim as build-base

RUN apt-get update --option "Acquire::Retries=3" --quiet=2 && \
apt-get install \
Expand Down
14 changes: 11 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pillow = "*"
pycparser = "^2.22"
pyopenssl = "*"
pyparsing = "^3.2.0"
python = ">=3.12, <3.13"
python = ">=3.12, <3.14"
python-dateutil = "^2.9.0"
python-magic = "^0.4.27"
pytz = "*"
Expand Down

0 comments on commit c72de53

Please sign in to comment.