-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
122 lines (105 loc) · 3.15 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# quickstart:
# pdm install
# pdm run pytest
# dependencies
# - use `pdm add <package>` and `pdm remove <package>` to manage dependencies
# - use `pdm add -d -G dev <packag>` to add a dev dependency
# - use `pdm update --update-all` to update dependencies
# - use `pdm install` to install dependencies
# usage:
# - use `pdm run <pythonfile>` to execute code
# - use `pdm run pytest` to perform unit tests
# line lengths:
# - Excessive line lengths aren't good. But rather then automatically
# breaking them and turning into vertical blocks we want to see the
# nastiness sticking out prominently.
[project]
name = "feeph.i2c"
version = "0.7.4"
description = "abstraction layer for the I²C bus (incl. simulation for testing)"
authors = [
{name = "Feeph Aifeimei", email = "[email protected]"},
]
requires-python = ">=3.10,<3.13"
dependencies = [
"adafruit-blinka~=8.46",
"gpiod~=2.2",
"RPI-GPIO~=0.7",
]
readme = "README.md"
license = {text = "GPL-3.0-or-later"}
repository = "https://github.com/feeph/libi2c-python/"
keywords = [
"i2c",
"smbus",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Hardware",
"Typing :: Typed",
]
[project.urls]
#documentation =
#homepage = "https://github.com/feeph/libi2c-python"
repository = "https://github.com/feeph/libi2c-python"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
# -------------------------------------------------------------------------
# tooling
# -------------------------------------------------------------------------
# https://github.com/PyCQA/isort
# https://pycqa.github.io/isort/
[tool.isort]
# use the black profile but override "multi_line_output"
profile = "black"
line_length = 250
multi_line_output = 7
src_paths = ["feeph/", "tests/"]
# https://pypi.org/project/autopep8/
[tool.autopep8]
max_line_length = 250
ignore = ["E221", "E241"]
in-place = true
[tool.pdm]
distribution = true
# automatically update requirements.txt and requirements-dev.txt
# on `pdm lock`
[[tool.pdm.autoexport]]
filename = "requirements.txt"
groups = ["default"]
[[tool.pdm.autoexport]]
filename = "requirements-dev.txt"
groups = ["dev", "tools"]
[tool.pdm.build]
includes = ["feeph/"]
source-includes = ["tests/"]
[tool.pdm.dev-dependencies]
dev = [
]
tools = [
"autopep8 ~= 2.2",
"copier ~= 9.3",
"coverage-lcov ~= 0.3",
"flake8 ~= 7.0",
"mypy ~= 1.10",
"pylint ~= 3.2",
"pytest-cov ~= 5.0",
"pytest-sugar ~= 1.0",
]
# during development: fetch all packages in our namespace from TestPyPI
#
# this config is used exclusively by pdm and has no impact on regular
# consumers using `pip install <package>` to install the package
[[tool.pdm.source]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
include_packages = ["feeph-*"]
[tool.pylint."MESSAGES CONTROL"]
fail-under = 8
max-line-length = 250
disable = "no-else-return,use-list-literal"