Skip to content

Commit 92e65f4

Browse files
Arapakdec0dedd
andauthored
Migration to python 3.13 (#87)
* feat: upgrade gunicorn to 23.0.0 * feat: upgrade gevent and python * fix: migrate github action to python 3.13 * fix: update python version to 3.13 in release.yml --------- Co-authored-by: Michał Burzyński <[email protected]>
1 parent 543c5fb commit 92e65f4

File tree

5 files changed

+27
-25
lines changed

5 files changed

+27
-25
lines changed

.github/workflows/pytest.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,27 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
include:
16-
- python-version: "3.8"
17-
- python-version: "3.9"
16+
- python-version: "3.13"
1817
runs-on: ubuntu-latest
1918

2019
steps:
21-
- uses: actions/checkout@v3
22-
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
24-
with:
25-
python-version: ${{ matrix.python-version }}
20+
- uses: actions/checkout@v3
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
2625

27-
- name: Install apt dependencies
28-
run: |
29-
sudo apt-get update
30-
sudo apt-get install -y libdb-dev
26+
- name: Install apt dependencies
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y libdb-dev
3130
32-
- name: Install pip dependencies
33-
run: |
34-
python -m pip install --upgrade pip wheel setuptools
35-
pip install -e .[server]
36-
pip install pytest
31+
- name: Install pip dependencies
32+
run: |
33+
python -m pip install --upgrade pip wheel setuptools
34+
pip install -e .[server]
35+
pip install pytest
3736
38-
- name: Run tests
39-
run: |
40-
pytest -vv filetracker/tests
37+
- name: Run tests
38+
run: |
39+
pytest -vv filetracker/tests

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.8
18+
python-version: 3.13
1919
- name: Install build
2020
run: |
2121
python3 -m pip install build

filetracker/servers/run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ def main(args=None):
174174
log_config['loggers']['gunicorn.error']['level'] = options.log_level
175175
log_config['loggers']['gunicorn.access']['level'] = options.log_level
176176
log_config['loggers']['']['level'] = options.log_level
177+
log_config['root'] = {
178+
'level': "WARNING",
179+
'handlers': [],
180+
}
177181

178182
logging.config.dictConfig(log_config)
179183

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ authors = [
1515
]
1616
description = "Filetracker caching file storage"
1717
readme = "README.md"
18-
requires-python = ">=3.7"
18+
requires-python = ">=3.9"
1919
license = {text = "GPL"}
2020
classifiers = [
2121
"Framework :: Django",
@@ -24,7 +24,7 @@ classifiers = [
2424
dependencies = [
2525
"bsddb3==6.2.7",
2626
"flup6",
27-
"gunicorn==19.9.0",
27+
"gunicorn==23.0.0",
2828
"progressbar2",
2929
"requests",
3030
"six",
@@ -36,8 +36,7 @@ version = "2.2.0"
3636

3737
[project.optional-dependencies]
3838
server = [
39-
"gevent==22.10.2",
40-
"greenlet==2.0.2",
39+
"gevent==25.9.1"
4140
]
4241
tests = [
4342
"pytest",

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py38,py39
2+
envlist = py313
33

44
[testenv]
55
extras = server

0 commit comments

Comments
 (0)