Skip to content

Commit f492356

Browse files
committed
replace setup.cfg by only pyproject.toml
1 parent f692656 commit f492356

File tree

4 files changed

+92
-81
lines changed

4 files changed

+92
-81
lines changed

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
max-line-length = 240
3+
docstring-convention = google
4+
5+
ignore = D401, E111, E114

MANIFEST.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
exclude .editorconfig
2+
exclude .gitignore
3+
exclude .pylintrc
4+
exclude .readthedocs.yaml
5+
exclude .travis.yml
6+
exclude mkdocs.yml
7+
8+
9+
prune .github
10+
prune docker
11+
prune docs

pyproject.toml

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,80 @@
11
[build-system]
2-
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
2+
requires = ["setuptools>=61.2", "setuptools_scm[toml]>=6.2"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "python-openhab"
7+
description = "python library for accessing the openHAB REST API"
8+
authors = [{ name = "Georges Toth", email = "georges@trypill.org" }]
9+
license = { text = "AGPLv3+" }
10+
classifiers = [
11+
"Development Status :: 5 - Production/Stable",
12+
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
13+
"Intended Audience :: Developers",
14+
"Operating System :: OS Independent",
15+
"Programming Language :: Python :: 3",
16+
"Programming Language :: Python :: 3 :: Only",
17+
]
18+
keywords = ["openHAB"]
19+
requires-python = ">=3.5"
20+
dependencies = [
21+
"requests~=2.26",
22+
"python-dateutil~=2.8",
23+
"requests_oauthlib~=1.3",
24+
]
25+
dynamic = ["version"]
26+
27+
[project.readme]
28+
file = "README.md"
29+
content-type = "text/markdown"
30+
31+
[project.urls]
32+
Homepage = "https://github.com/sim0nx/python-openhab"
33+
Download = "https://github.com/sim0nx/python-openhab"
34+
Tracker = "https://github.com/sim0nx/python-openhab/issues"
35+
Documentation = "http://python-openhab.readthedocs.io/en/latest/?badge=latest"
36+
Source = "https://github.com/sim0nx/python-openhab"
37+
38+
[project.optional-dependencies]
39+
docs = [
40+
"mkdocs-material",
41+
"mkdocstrings",
42+
]
43+
dev = [
44+
"pylint",
45+
"mypy",
46+
"flake8",
47+
"flake8-comprehensions",
48+
"flake8-docstrings",
49+
"types-python-dateutil",
50+
"types-requests",
51+
]
52+
test = [
53+
"pytest",
54+
"coverage",
55+
"beautifulsoup4",
56+
]
57+
558
[tool.setuptools_scm]
59+
60+
[tool.setuptools]
61+
include-package-data = true
62+
63+
[tool.setuptools.packages]
64+
find = { namespaces = false }
65+
66+
[tool.setuptools.package-data]
67+
openhab = ["py.typed"]
68+
69+
[tool.mypy]
70+
show_error_context = true
71+
show_column_numbers = true
72+
ignore_missing_imports = true
73+
disallow_incomplete_defs = true
74+
disallow_untyped_defs = true
75+
disallow_untyped_calls = false
76+
warn_no_return = true
77+
warn_redundant_casts = true
78+
warn_unused_ignores = true
79+
strict_optional = true
80+
check_untyped_defs = false

setup.cfg

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

0 commit comments

Comments
 (0)