| 1 |
# DataLab setup configuration file |
| 2 |
|
| 3 |
[build-system] |
| 4 |
requires = ["setuptools"] |
| 5 |
build-backend = "setuptools.build_meta" |
| 6 |
|
| 7 |
[project] |
| 8 |
name = "cdlclient" |
| 9 |
authors = [{ name = "Codra", email = "[email protected]" }] |
| 10 |
description = "Python library providing a simple remote client to DataLab (CDL) application" |
| 11 |
readme = "README.md" |
| 12 |
license = { file = "LICENSE" } |
| 13 |
classifiers = [ |
| 14 |
"Development Status :: 5 - Production/Stable", |
| 15 |
"Intended Audience :: Developers", |
| 16 |
"Intended Audience :: Education", |
| 17 |
"Intended Audience :: Science/Research", |
| 18 |
"Intended Audience :: End Users/Desktop", |
| 19 |
"License :: OSI Approved :: BSD License", |
| 20 |
"Operating System :: MacOS :: MacOS X", |
| 21 |
"Operating System :: Microsoft :: Windows :: Windows 7", |
| 22 |
"Operating System :: Microsoft :: Windows :: Windows 8", |
| 23 |
"Operating System :: Microsoft :: Windows :: Windows 10", |
| 24 |
"Operating System :: Microsoft :: Windows :: Windows 11", |
| 25 |
"Operating System :: POSIX :: Linux", |
| 26 |
"Programming Language :: Python :: 3.8", |
| 27 |
"Programming Language :: Python :: 3.9", |
| 28 |
"Programming Language :: Python :: 3.10", |
| 29 |
"Programming Language :: Python :: 3.11", |
| 30 |
"Programming Language :: Python :: 3.12", |
| 31 |
"Topic :: Scientific/Engineering", |
| 32 |
"Topic :: Scientific/Engineering :: Image Processing", |
| 33 |
"Topic :: Scientific/Engineering :: Human Machine Interfaces", |
| 34 |
"Topic :: Scientific/Engineering :: Visualization", |
| 35 |
"Topic :: Software Development :: Libraries :: Python Modules", |
| 36 |
"Topic :: Software Development :: Widget Sets", |
| 37 |
] |
| 38 |
requires-python = ">=3.8, <4" |
| 39 |
dependencies = ["NumPy >= 1.21", "guidata >= 3.5"] |
| 40 |
dynamic = ["version"] |
| 41 |
|
| 42 |
[project.urls] |
| 43 |
Homepage = "https://github.com/DataLab-Platform/DataLabSimpleClient/" |
| 44 |
Documentation = "https://cdlclient.readthedocs.io/en/latest/" |
| 45 |
|
| 46 |
[project.gui-scripts] |
| 47 |
cdlclient-tests = "cdlclient.tests:run" |
| 48 |
|
| 49 |
[project.optional-dependencies] |
| 50 |
dev = ["ruff", "pylint", "Coverage"] |
| 51 |
doc = ["sphinx", "sphinx_intl", "pydata-sphinx-theme"] |
| 52 |
test = ["PyQt5", "QtPy", "plotpy"] |
| 53 |
|
| 54 |
[tool.setuptools.packages.find] |
| 55 |
include = ["cdlclient*"] |
| 56 |
|
| 57 |
[tool.setuptools.package-data] |
| 58 |
"*" = ["*.svg", "*.mo", "*.txt", "*.json"] |
| 59 |
|
| 60 |
[tool.setuptools.dynamic] |
| 61 |
version = { attr = "cdlclient.__version__" } |
| 62 |
|
| 63 |
[tool.ruff] |
| 64 |
exclude = [".git", ".vscode", "build", "dist"] |
| 65 |
line-length = 88 # Same as Black. |
| 66 |
indent-width = 4 # Same as Black. |
| 67 |
target-version = "py38" # Assume Python 3.8 |
| 68 |
|
| 69 |
[tool.ruff.lint] |
| 70 |
# all rules can be found here: https://beta.ruff.rs/docs/rules/ |
| 71 |
select = ["E", "F", "W", "I"] |
| 72 |
ignore = [ |
| 73 |
"E203", # space before : (needed for how black formats slicing) |
| 74 |
] |
| 75 |
|
| 76 |
[tool.ruff.format] |
| 77 |
quote-style = "double" # Like Black, use double quotes for strings. |
| 78 |
indent-style = "space" # Like Black, indent with spaces, rather than tabs. |
| 79 |
skip-magic-trailing-comma = false # Like Black, respect magic trailing commas. |
| 80 |
line-ending = "auto" # Like Black, automatically detect the appropriate line ending. |
| 81 |
|
| 82 |
[tool.ruff.lint.per-file-ignores] |
| 83 |
"doc/*" = ["E402"] |
| 84 |
"svg_icons.py" = ["E501"] |
| 85 |
"datalab_banner.py" = ["E501", "W292"] |