CI for mx_bec / e2e tests with pxii_bec (pull_request) Failing after 1m23s
CI for mx_bec / e2e tests with pxi_bec (pull_request) Failing after 1m33s
CI for mx_bec / unit tests with pxii_bec (pull_request) Failing after 59s
CI for mx_bec / unit tests with pxi_bec (pull_request) Failing after 2m14s
CI for mx_bec / e2e tests with pxiii_bec (pull_request) Failing after 1m12s
CI for mx_bec / e2e tests with pxi_bec (push) Failing after 1m9s
CI for mx_bec / e2e tests with pxii_bec (push) Failing after 1m1s
CI for mx_bec / unit tests with pxii_bec (push) Failing after 1m6s
CI for mx_bec / e2e tests with pxiii_bec (push) Failing after 1m6s
CI for mx_bec / unit tests with pxiii_bec (pull_request) Failing after 1m54s
CI for mx_bec / unit tests with pxi_bec (push) Failing after 1m52s
CI for mx_bec / unit tests with pxiii_bec (push) Failing after 1m54s
94 lines
3.1 KiB
TOML
94 lines
3.1 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "mx_bec"
|
|
version = "0.0.1"
|
|
description = "A shared repository for MX BEC components"
|
|
requires-python = ">=3.11"
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Programming Language :: Python :: 3",
|
|
"Topic :: Scientific/Engineering",
|
|
]
|
|
dependencies = [
|
|
# Workaround while the mx gitea index is not available in the BEC deployment:
|
|
# Direct references to the wheels in the mx Gitea package registry: the deployment installs
|
|
# this package with a plain `pip install -e`, which cannot be given an extra index. To update
|
|
# one, take the new file URL from https://gitea.psi.ch/api/packages/mx/pypi/simple/<package>/
|
|
"aarecommon @ https://gitea.psi.ch/api/packages/mx/pypi/files/aarecommon/0.9.2/aarecommon-0.9.2-py3-none-any.whl",
|
|
# aare_config is a compiled package, with one wheel per Python version (and the sdist for 3.11)
|
|
"aare_config @ https://gitea.psi.ch/api/packages/mx/pypi/files/aare-config/0.3.2/aare_config-0.3.2.tar.gz ; python_version < '3.12'",
|
|
"aare_config @ https://gitea.psi.ch/api/packages/mx/pypi/files/aare-config/0.3.2/aare_config-0.3.2-cp312-cp312-manylinux_2_34_x86_64.whl ; python_version == '3.12'",
|
|
"aare_config @ https://gitea.psi.ch/api/packages/mx/pypi/files/aare-config/0.3.2/aare_config-0.3.2-cp313-cp313-manylinux_2_34_x86_64.whl ; python_version == '3.13'",
|
|
"aare_config @ https://gitea.psi.ch/api/packages/mx/pypi/files/aare-config/0.3.2/aare_config-0.3.2-cp314-cp314-manylinux_2_34_x86_64.whl ; python_version >= '3.14'",
|
|
"aarelcinfer_client @ https://gitea.psi.ch/api/packages/mx/pypi/files/aarelcinfer-client/0.2.0/aarelcinfer_client-0.2.0-py3-none-any.whl",
|
|
"jfjoch_client @ https://gitea.psi.ch/api/packages/mx/pypi/files/jfjoch-client/1.0.0rc188/jfjoch_client-1.0.0rc188-py3-none-any.whl",
|
|
"bec_lib>=3.130.3",
|
|
"bec-server>=3.130.3",
|
|
"bec-ipython-client>=3.130.3",
|
|
"ophyd_devices>=1.46",
|
|
"pydantic>=2.11",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"black",
|
|
"copier",
|
|
"basedpyright",
|
|
"ruff>=0.15",
|
|
"isort",
|
|
"coverage",
|
|
"pylint",
|
|
"pytest",
|
|
"pytest-random-order",
|
|
"ophyd_devices",
|
|
"bec_server",
|
|
"pytest",
|
|
"pytest-mock",
|
|
"pytest-asyncio",
|
|
"pytest-timeout",
|
|
"pytest-bec-e2e", # fixtures which start BEC servers for the end-to-end tests
|
|
"fakeredis[lua]",
|
|
"fastapi",
|
|
"uvicorn",
|
|
]
|
|
|
|
[tool.hatch.metadata]
|
|
allow-direct-references = true # for the Gitea registry wheels in the dependencies
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
include = ["*"]
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
line_length = 100
|
|
multi_line_output = 3
|
|
include_trailing_comma = true
|
|
|
|
[tool.black]
|
|
line-length = 100
|
|
skip-magic-trailing-comma = true
|
|
|
|
[tool.pylint.basic]
|
|
# Good variable names regexes, separated by a comma. If names match any regex,
|
|
# they will always be accepted
|
|
good-names-rgxs = [
|
|
".*scanID.*",
|
|
".*RID.*",
|
|
".*pointID.*",
|
|
".*ID.*",
|
|
".*_2D.*",
|
|
".*_1D.*",
|
|
]
|
|
|
|
[project.scripts]
|
|
mx-bec-service = "mx_bec.main:main"
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
|
|
[tool.ruff.format]
|
|
skip-magic-trailing-comma = true
|