Skip to content

Commit b8ad616

Browse files
authored
Merge pull request #33 from con/py310
Increase minimum Python version to 3.10
2 parents f1fdbe6 + 4d6d5d2 commit b8ad616

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v4
1818
with:
19-
python-version: '3.8'
19+
python-version: '3.10'
2020

2121
- name: Install dependencies
2222
run: |

.github/workflows/smoke-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v4
1818
with:
19-
python-version: '^3.8'
19+
python-version: '^3.10'
2020

2121
- name: Install solidation
2222
run: python -m pip install .

.github/workflows/typing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v4
1818
with:
19-
python-version: '3.8'
19+
python-version: '3.10'
2020

2121
- name: Install dependencies
2222
run: |

setup.cfg

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ keywords =
1616
classifiers =
1717
Programming Language :: Python :: 3 :: Only
1818
Programming Language :: Python :: 3
19-
Programming Language :: Python :: 3.8
20-
Programming Language :: Python :: 3.9
2119
Programming Language :: Python :: 3.10
2220
Programming Language :: Python :: 3.11
2321
Programming Language :: Python :: Implementation :: CPython
@@ -35,7 +33,7 @@ packages = find_namespace:
3533
package_dir =
3634
=src
3735
include_package_data = True
38-
python_requires = >= 3.8
36+
python_requires = >= 3.10
3937
install_requires =
4038
click >= 8.0
4139
click-loglevel ~= 0.2

src/solidation/__main__.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
import os
88
from pathlib import Path
99
from random import sample
10+
from re import Pattern
1011
from statistics import quantiles
11-
from typing import TYPE_CHECKING, Any, List, Pattern, Set, Union
12+
from typing import TYPE_CHECKING, Any
1213
from urllib.parse import quote
1314
import click
1415
from click_loglevel import LogLevel
@@ -37,7 +38,7 @@ class RepoSpec(BaseModel):
3738

3839
class OrgSpec(BaseModel):
3940
name: GHUser
40-
fetch_members: Union[StrictBool, Pattern] = False
41+
fetch_members: StrictBool | Pattern = False
4142
member_activity_only: bool = False
4243

4344
def member_fetched(self, user: str) -> bool:
@@ -50,9 +51,9 @@ def member_fetched(self, user: str) -> bool:
5051
class Configuration(BaseModel):
5152
project: str = "Project"
5253
recent_days: int = Field(default=7, ge=1)
53-
organizations: List[Union[GHUser, OrgSpec]] = Field(default_factory=list)
54-
repositories: List[Union[GHRepo, RepoSpec]] = Field(default_factory=list)
55-
members: Set[GHUser] = Field(default_factory=set)
54+
organizations: list[GHUser | OrgSpec] = Field(default_factory=list)
55+
repositories: list[GHRepo | RepoSpec] = Field(default_factory=list)
56+
members: set[GHUser] = Field(default_factory=set)
5657
num_oldest_prs: int = Field(default=10, ge=1)
5758
max_random_issues: int = Field(default=5, ge=1)
5859

0 commit comments

Comments
 (0)