Skip to content

Commit

Permalink
Make pyproject,toml in parity with setup.cfg and setup.py
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Dec 19, 2022
1 parent 509d26b commit 60e3e42
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,69 @@
[build-system]
requires = ["setuptools>=40.6.0"]
build-backend = "setuptools.build_meta"


[project]
name = "pyadi-iio"
dynamic = ["version", "readme"]
description = "Analog Devices python interfaces for hardware with Industrial I/O drivers"
license = {text = "ADI BSD"}
classifiers = [
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules"]
requires-python = ">=3.7"
authors = [
{name = "Travis Collins", email="[email protected]"},
]
maintainers = [
{name = "Travis Collins", email="[email protected]"},
{name = "Analog Devices, Inc"}
]
dependencies = [
'numpy >= 1.20',
'pylibiio >= 0.23.1',
]

[tool.setuptools.dynamic]
version = {attr = "adi.__version__"}
readme = {file = "README.md"}

[tool.setuptools.packages.find]
where = ["."]
include = ["adi"]
exclude = ["test*"]
namespaces = true

[project.optional-dependencies]
jesd = [
"paramiko"
]

[project.urls]
homepage = "https://analogdevicesinc.github.io/pyadi-iio/"
documentation = "https://analogdevicesinc.github.io/pyadi-iio/"
repository = "https://github/analogdevicesinc/pyadi-iio"

[isort]
multi_line_output="3"
include_trailing_comma="True"
force_grid_wrap="0"
use_parentheses="True"
line_length="88"

[flake8]
ignore = ["E203", "E266", "E501", "W503", "F401", "F403"]
max-line-length = "88"
max-complexity = "18"
select = ["B","C","E","F","W","T4"]
exclude = ["test/*","examples/*","doc/*","images/*"]

[mypy]
ignore_missing_imports="true"

0 comments on commit 60e3e42

Please sign in to comment.