Skip to content

Commit 228e958

Browse files
committed
Drop python 3.10
1 parent 1f5eb87 commit 228e958

8 files changed

Lines changed: 20 additions & 33 deletions

File tree

.github/workflows/bugwarrior.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
timeout-minutes: 5
1111
strategy:
1212
matrix:
13-
python-version: ["3.10", 3.11, 3.12, 3.13, 3.14]
13+
python-version: [3.11, 3.12, 3.13, 3.14]
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sphinx:
1010
build:
1111
os: ubuntu-22.04
1212
tools:
13-
python: "3.10"
13+
python: "3.11"
1414
jobs:
1515
pre_create_environment:
1616
- asdf plugin add uv

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
Unreleased
2+
----------
3+
4+
Dependency Updates
5+
==================
6+
7+
- Drop python-3.10 support.
8+
- Drop tomli.
9+
110
2.1.0
211
-----
312

bugwarrior/config/load.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22
import logging
33
import os
44
from pathlib import Path
5-
import sys
5+
import tomllib
66
from typing import Any
77

8-
if sys.version_info >= (3, 11):
9-
import tomllib
10-
else:
11-
import tomli as tomllib
12-
138
from .validation import Config, validate_config
149

1510
# The name of the environment variable that can be used to ovewrite the path

bugwarrior/docs/_ext/extras.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
import pathlib
2-
import sys
2+
import tomllib
33

44
from docutils import nodes
55
from sphinx.util.docutils import SphinxDirective
66

7-
if sys.version_info >= (3, 11):
8-
import tomllib
9-
else:
10-
import tomli as tomllib
11-
127

138
class Extras(SphinxDirective):
149
"""List extra dependency groups."""

pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ name = "bugwarrior"
33
version = "2.1.0.post"
44
description = "a command line utility for updating your local taskwarrior database from your forge issue trackers"
55
readme = "bugwarrior/README.rst"
6-
requires-python = ">=3.10"
6+
requires-python = ">=3.11"
77
license = "GPL-3.0-or-later"
88
license-files = ["LICENSE.txt"]
99
keywords=["task", "taskwarrior", "todo", "github"]
1010
classifiers=[
1111
"Development Status :: 4 - Beta",
1212
"Intended Audience :: Developers",
1313
"Programming Language :: Python :: 3",
14+
"Programming Language :: Python :: 3.11",
15+
"Programming Language :: Python :: 3.12",
16+
"Programming Language :: Python :: 3.13",
17+
"Programming Language :: Python :: 3.14",
1418
"Topic :: Software Development :: Bug Tracking",
1519
"Topic :: Utilities",
1620
]
@@ -26,7 +30,6 @@ dependencies = [
2630
# which is no longer bundled in venvs since Python 3.12 (see #1150).
2731
"setuptools",
2832
"taskw>=0.8",
29-
"tomli ; python_version <= '3.10'",
3033
]
3134

3235
[project.optional-dependencies]
@@ -128,8 +131,7 @@ build-backend = "setuptools.build_meta"
128131
docs = [
129132
# sphinx-inline-tabs is incompatible with docutils-0.22 https://github.com/pradyunsg/sphinx-inline-tabs/pull/51
130133
"docutils<0.22",
131-
"sphinx>=1.0,<9.0 ; python_version <= '3.10'",
132-
"sphinx>=9.0.3 ; python_version >= '3.11'",
134+
"sphinx>=9.0.3",
133135
"sphinx-click",
134136
"sphinx-inline-tabs",
135137
]

tests/base.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import contextlib
22
import os.path
33
import shutil
4-
import sys
54
import tempfile
65
import typing
76
import unittest
@@ -133,14 +132,6 @@ def tearDown(self):
133132
def inject_fixtures(self, caplog):
134133
self.caplog = caplog
135134

136-
if sys.version_info < (3, 11):
137-
138-
def enterContext(self, cm):
139-
"""Backport of unittest.TestCase.enterContext for Python 3.10."""
140-
value = cm.__enter__()
141-
self.addCleanup(cm.__exit__, None, None, None)
142-
return value
143-
144135
def validate(self) -> validation.Config:
145136
config = self.config.copy()
146137
config['general'] = config.get('general', {})

tests/config/test_load.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22
import itertools
33
import os
44
from pathlib import Path
5-
import sys
65
import textwrap
6+
import tomllib
77
from unittest import TestCase
88

9-
if sys.version_info >= (3, 11):
10-
import tomllib
11-
else:
12-
import tomli as tomllib
13-
149
from bugwarrior.config import load
1510

1611
from ..base import ConfigTest

0 commit comments

Comments
 (0)