Skip to content

Commit 3d5d36b

Browse files
Drop Python 3.7 (#129)
* Drop Python 3.7 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Cleanup dependencies --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c80ef2f commit 3d5d36b

File tree

7 files changed

+23
-13
lines changed

7 files changed

+23
-13
lines changed

.github/workflows/main.yml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version:
17-
- 3.7
1817
- 3.8
1918
- 3.9
2019
- "3.10"

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 2023.6
4+
- Drop Python 3.7 support
5+
36
## 2023.5
47
- Add Python 3.12 support
58
- Testing Library upgraded to [v9.3.1](https://github.com/testing-library/dom-testing-library/releases/tag/v9.3.1)

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ pytest --selenium-headless
1111
# run tests and display coverage info:
1212
pytest --selenium-headless --cov=selenium_testing_library --cov-report html
1313

14-
# To test on multiple Python versions make sure that py37, py38, py39 are
15-
# installed on your system and available through python3.7, python3.8,
16-
# python3.9. (Use pyenv and add the pyenv shims to your path
14+
# To test on multiple Python versions make sure that py38, py39, 310, 311, 312 are
15+
# installed on your system and available through python3.8,
16+
# python3.9, python3.10, python3.11, python3.12. (Use pyenv and add the pyenv shims to your path
1717
# `export PATH=$(pyenv root)/shims:$PATH`). Then run tox:
1818
tox
1919
```

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Selenium Testing Library (STL) is a Python library implementing [Testing-Library
77

88
## Dependencies
99

10-
- Python 3.7, 3.8, 3.9, 3.10, 3.11, 3.12-dev
10+
- Python 3.8, 3.9, 3.10, 3.11, 3.12-dev
1111
- [`selenium`](https://pypi.org/project/selenium/) >= 3.0.0, [`typing-extensions`](https://pypi.org/project/typing-extensions/) >= 4.0.0
1212
## Installation
1313

pyproject.toml

+4-5
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ include = [
1414
"Changelog" = "https://github.com/anze3db/selenium-testing-library/blob/main/CHANGELOG.md"
1515

1616
[tool.poetry.dependencies]
17-
python = "^3.7"
17+
python = "^3.8"
1818
selenium = ">3.0.0"
19-
typing_extensions = ">=4.0.0"
20-
ruff = "^0.0.247"
2119

2220
[tool.poetry.dev-dependencies]
21+
ruff = "^0.0.247"
2322
pytest = "*"
2423
black = "*"
2524
pytest-cov = "*"
@@ -65,11 +64,11 @@ push = true
6564
]
6665

6766
[tool.mypy]
68-
python_version = "3.7"
67+
python_version = "3.8"
6968
warn_unused_configs = true
7069

7170
[tool.ruff]
72-
target-version = "py37"
71+
target-version = "py38"
7372
select = [
7473
# Pyflakes
7574
"F",

selenium_testing_library/screen.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
from pathlib import Path
2-
from typing import Any, Callable, Generic, List, Optional, TypeVar, Union, cast
2+
from typing import (
3+
Any,
4+
Callable,
5+
Generic,
6+
List,
7+
Optional,
8+
Protocol,
9+
TypeVar,
10+
Union,
11+
cast,
12+
)
313

414
from selenium.common.exceptions import (
515
NoSuchElementException,
@@ -9,7 +19,6 @@
919
from selenium.webdriver.remote.webelement import WebElement
1020
from selenium.webdriver.support import expected_conditions
1121
from selenium.webdriver.support.ui import WebDriverWait
12-
from typing_extensions import Protocol
1322

1423
from . import locators
1524

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{37,38,39,310,311,312}
2+
envlist = py{38,39,310,311,312}
33
isolated_build = True
44

55
[testenv]

0 commit comments

Comments
 (0)