Skip to content

Commit a951b8d

Browse files
Pentushaosminogin
authored andcommitted
Drop legacy Python versions
1 parent 1219cdb commit a951b8d

File tree

3 files changed

+4
-19
lines changed

3 files changed

+4
-19
lines changed

.github/workflows/tests-and-linters.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,12 @@ on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66

7-
tests-on-legacy-versions:
8-
name: Run tests on legacy versions
9-
runs-on: ubuntu-20.04
10-
strategy:
11-
matrix:
12-
python-version: [2.7, 3.5, 3.6, 3.7, pypy2.7, pypy3.9]
13-
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-python@v4
16-
with:
17-
python-version: ${{ matrix.python-version }}
18-
- run: pip install tox
19-
- run: tox
20-
env:
21-
TOXENV: ${{ matrix.python-version }}
22-
237
test-on-different-versions:
248
name: Run tests
259
runs-on: ubuntu-latest
2610
strategy:
2711
matrix:
28-
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]
12+
python-version: [3.8, 3.9, 3.10, 3.11, 3.12]
2913
steps:
3014
- uses: actions/checkout@v3
3115
- uses: actions/setup-python@v4

tests/typing/configuration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
from pathlib import Path
2+
from typing import Any
23

34
from dependency_injector import providers
45
from pydantic import BaseSettings as PydanticSettings # type: ignore
56

67

78
# Test 1: to check the getattr
89
config1 = providers.Configuration()
9-
provider1: providers.Factory[dict[Any, Any]] = providers.Factory(dict, a=config1.a)
10+
provider1: dict[str, Any] = providers.Factory(dict, a=config1.a)
1011

1112
# Test 2: to check the from_*() method
1213
config2 = providers.Configuration()

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist=
3-
coveralls, pylint, flake8, pydocstyle, 3.8, 3.9, 3.10, 3.11, 3.12, pypy3.9, pypy3.10
3+
coveralls, pylint, flake8, pydocstyle, 3.8, 3.9, 3.10, 3.11, 3.12, pypy3.10
44

55
[testenv]
66
deps=

0 commit comments

Comments
 (0)