Skip to content

Commit 1b62d6f

Browse files
CoMPaTechbouwew
authored andcommitted
Merge into pyproject.toml
1 parent f743da5 commit 1b62d6f

File tree

6 files changed

+78
-79
lines changed

6 files changed

+78
-79
lines changed

.coveragerc

Lines changed: 0 additions & 12 deletions
This file was deleted.

plugwise/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""Plugwise module."""
22

3-
__version__ = "0.27.0"
3+
import importlib.metadata
4+
5+
__version__ = importlib.metadata.version(__package__ or __name__)
46

57
from plugwise.smile import Smile
68
from plugwise.stick import Stick

pyproject.toml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
[build-system]
2+
requires = ["setuptools~=62.3", "wheel~=0.37.1"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "plugwise"
7+
version = "0.27.0"
8+
license = {file = "LICENSE"}
9+
description = "Plugwise Smile (Adam/Anna/P1), Stretch and USB (Stick) module for Python 3."
10+
readme = "README.md"
11+
keywords = ["home", "automation", "plugwise", "module"]
12+
classifiers = [
13+
"Development Status :: 5 - Production/Stable",
14+
"Intended Audience :: Developers",
15+
"License :: OSI Approved :: MIT License",
16+
"Operating System :: OS Independent",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Topic :: Home Automation",
20+
]
21+
authors = [
22+
{ name = "Plugwise device owners"}
23+
]
24+
maintainers = [
25+
{ name = "bouwew"},
26+
{ name = "brefra"},
27+
{ name = "CoMPaTech" }
28+
]
29+
requires-python = ">=3.9.0"
30+
dependencies = [
31+
"aiohttp",
32+
"async_timeout",
33+
"crcmod",
34+
"defusedxml",
35+
"munch",
36+
"pyserial",
37+
"python-dateutil",
38+
"semver",
39+
]
40+
41+
[project.urls]
42+
"Source Code" = "https://github.com/plugwise/python-plugwise"
43+
"Bug Reports" = "https://github.com/plugwise/python-plugwise/issues"
44+
45+
[tool.setuptools]
46+
platforms = ["any"]
47+
include-package-data = true
48+
49+
[tool.setuptools.packages.find]
50+
include = ["plugwise*"]
51+
152
[tool.black]
253
target-version = ["py39", "py310"]
354
exclude = 'generated'
@@ -121,6 +172,12 @@ overgeneral-exceptions = [
121172
]
122173

123174
[tool.pytest.ini_options]
175+
asyncio_mode = "strict"
176+
markers = [
177+
# mark a test as a asynchronous io test.
178+
"asyncio",
179+
]
180+
124181
testpaths = [
125182
"tests",
126183
]
@@ -157,3 +214,17 @@ exclude = [
157214
"messages",
158215
"connections",
159216
]
217+
218+
[tool.coverage.run]
219+
source = "plugwise"
220+
omit= [
221+
"*/venv/*",
222+
"setup.py",
223+
"plugwise/connections/*",
224+
"plugwise/controller.py",
225+
"plugwise/messages/*",
226+
"plugwise/nodes/*",
227+
"plugwise/parser.py",
228+
"plugwise/stick.py",
229+
"plugwise/util.py",
230+
]

pytest.ini

Lines changed: 0 additions & 4 deletions
This file was deleted.

setup.cfg

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
1+
# Setuptools v62.3 doesn't support editable installs with just 'pyproject.toml' (PEP 660).
2+
# Keep this file until it does!
3+
14
[metadata]
2-
license = MIT License
3-
license_file = LICENSE
4-
platforms = any
5-
description = Plugwise Smile, Stretch and USB module for Python 3.
6-
long_description = file: README.md
7-
keywords = home, automation, plugwise
8-
classifier =
9-
Development Status :: 5 - Production/Stable
10-
Intended Audience :: Developers
11-
License :: OSI Approved :: MIT License
12-
Operating System :: OS Independent
13-
Programming Language :: Python :: 3.10
14-
Topic :: Home Automation
5+
url = https://github.com/plugwise/python-plugwise
156

167
[mypy]
178
python_version = 3.9

setup.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)