Skip to content

Commit ad20138

Browse files
authored
Add SPDX license identifier (#198)
* Drop support for Python 3.7 + 3.8 * Add SPDX license identifier
1 parent f3abe33 commit ad20138

File tree

5 files changed

+13
-33
lines changed

5 files changed

+13
-33
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Python
1414
uses: actions/setup-python@v5.5.0
1515
with:
16-
python-version: "3.8"
16+
python-version: "3.9"
1717
- name: Check formatting
1818
uses: pre-commit/action@v3.0.1
1919

@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Python
2727
uses: actions/setup-python@v5.5.0
2828
with:
29-
python-version: "3.8"
29+
python-version: "3.9"
3030
- name: Lint with ruff
3131
run: |
3232
python -m pip install --upgrade pip
@@ -39,32 +39,12 @@ jobs:
3939
mypy devolo_home_control_api
4040
mypy tests || true
4141
42-
test_old:
43-
name: Test with Python 3.7
44-
runs-on: ubuntu-22.04
45-
steps:
46-
- name: Checkout sources
47-
uses: actions/checkout@v4.2.2
48-
- name: Set up Python ${{ matrix.python-version }}
49-
uses: actions/setup-python@v5.5.0
50-
with:
51-
python-version: 3.7
52-
allow-prereleases: true
53-
check-latest: true
54-
- name: Install dependencies
55-
run: |
56-
python -m pip install --upgrade pip
57-
pip install -e .[test]
58-
- name: Test with pytest
59-
run: |
60-
pytest --cov=devolo_home_control_api
61-
6242
test:
6343
name: Test with Python ${{ matrix.python-version }}
6444
runs-on: ubuntu-latest
6545
strategy:
6646
matrix:
67-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
47+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
6848
steps:
6949
- name: Checkout sources
7050
uses: actions/checkout@v4.2.2

.github/workflows/pythonpublish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Python
1313
uses: actions/setup-python@v5.5.0
1414
with:
15-
python-version: "3.8"
15+
python-version: "3.9"
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip

devolo_home_control_api/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
"""the devolo Home Control API."""
2-
try:
3-
from importlib.metadata import PackageNotFoundError, version
4-
except ImportError:
5-
from importlib_metadata import PackageNotFoundError, version # type: ignore[no-redef]
2+
from importlib.metadata import PackageNotFoundError, version
63

74
try:
85
__version__ = version("devolo_home_control_api")

docs/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1111
- Set methods of properties now return True on success and False on failure
1212
- Last activities attributes are not timezone aware
1313

14+
### Changed
15+
16+
- Drop support for Python 3.7 and 3.8
17+
- Use SPDX license identifier for project metadata
18+
1419
## [v0.18.3] - 2023/03/14
1520

1621
### Fixed

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
build-backend = "setuptools.build_meta"
3-
requires = ["setuptools>=61", "setuptools_scm[toml]>=6.2"]
3+
requires = ["setuptools>=77.0", "setuptools_scm[toml]>=6.2"]
44

55
[project]
66
authors = [
@@ -9,12 +9,10 @@ authors = [
99
]
1010
classifiers = [
1111
"Programming Language :: Python :: 3",
12-
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
1312
"Operating System :: OS Independent",
1413
]
1514
description = "devolo Home Control API in Python"
1615
dependencies = [
17-
"importlib-metadata;python_version<'3.8'",
1816
"python-dateutil>=2.8.0",
1917
"requests>=2.4.0",
2018
"typing-extensions>=4.1.0;python_version<'3.11'",
@@ -24,10 +22,10 @@ dependencies = [
2422
dynamic = [
2523
"version",
2624
]
27-
license = { file = "LICENSE" }
25+
license = "GPL-3.0-or-later"
2826
name = "devolo_home_control_api"
2927
readme = "README.md"
30-
requires-python = ">= 3.7"
28+
requires-python = ">= 3.9"
3129
urls = {changelog = "https://github.com/2Fake/devolo_home_control_api/docs/CHANGELOG.md", homepage = "https://github.com/2Fake/devolo_home_control_api"}
3230

3331
[project.optional-dependencies]

0 commit comments

Comments
 (0)