forked from stlehmann/pyads
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
110 lines (97 loc) · 2.24 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
[project]
name = "pyads"
description = "Python wrapper for TwinCAT ADS library"
authors = [
{ name = "Stefan Lehmann", email = "[email protected]" },
]
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
]
license = { text = "MIT" }
dynamic = ["version"]
dependencies = []
[project.optional-dependencies]
docs = [
"sphinx",
"sphinx_rtd_theme",
"recommonmark",
]
tests = [
"pytest",
"pytest-cov",
"tox",
]
dev = [
"build",
"flake8",
"pytest==7.4.4",
"coverage",
"coveralls",
]
[project.urls]
Repository = "https://github.com/stlehmann/pyads"
Documentation = "https://pyads.readthedocs.io"
[build-system]
requires = ["setuptools >= 61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["pyads", "pyads.testserver"]
package-dir = { "" = "src" }
include-package-data = true
# ^ needed for MANIFEST.in
#[tool.setuptools.package-data]
# Package data (adslib/) is handled by MANIFEST.in instead
[tool.setuptools.exclude-package-data]
pyads = ["adslib/**"]
# ^ Odd trick, put this excludes the adslib source again from a wheel build and from a pip install
[tool.setuptools.dynamic]
version = {attr = "pyads.__version__"}
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py37, py38, py39, py310
[testenv]
commands = discover
deps = discover
changedir = tests
whitelist_externals=*
passenv = TWINCAT3DIR
[pytest]
testpaths = tests
"""
[tool.black]
line-length = 88
target-version = ["py37", "py38", "py39", "py310"]
include = ".pyi?$"
exclude = """
(
/(
.eggs
| .git
| .mypy_cache
| .tox
| .venv
| _build
| buck-out
| build
| dist
| adslib
| pyads.egg-info
)/
| pyads/__init__.py
)
"""
[tool.pydocstyle]
ignore = ["D105", "D213", "D203", "D107"]
[tool.coverage.run]
include = ["pyads/*"]
omit = ["pyads/testserver/__main__.py"]