build: moved to pyproject.toml
This commit is contained in:
parent
9c092740b9
commit
6ba2428dd8
@ -151,7 +151,7 @@ semver:
|
||||
- export REPOSITORY_PASSWORD=$CI_PYPI_TOKEN
|
||||
- >
|
||||
semantic-release publish -v DEBUG
|
||||
-D version_variable=./setup.py:__version__
|
||||
-D version_toml=./pyproject.toml:project.version
|
||||
-D hvcs=gitlab
|
||||
|
||||
allow_failure: false
|
||||
|
40
pyproject.toml
Normal file
40
pyproject.toml
Normal file
@ -0,0 +1,40 @@
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "ophyd_devices"
|
||||
version = "0.29.2"
|
||||
description = "Custom device implementations based on the ophyd hardware abstraction layer"
|
||||
requires-python = ">=3.10"
|
||||
classifiers = [
|
||||
"Development Status :: 3 - Alpha",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Topic :: Scientific/Engineering",
|
||||
]
|
||||
dependencies = [
|
||||
"ophyd",
|
||||
"typeguard",
|
||||
"prettytable",
|
||||
"bec_lib",
|
||||
"numpy",
|
||||
"pyyaml",
|
||||
"std_daq_client",
|
||||
"pyepics",
|
||||
"pytest",
|
||||
"h5py",
|
||||
"hdf5plugin",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = ["black", "isort", "coverage", "pylint", "pytest", "pytest-random-order"]
|
||||
|
||||
[project.scripts]
|
||||
ophyd_test = "ophyd_devices:launch"
|
||||
|
||||
[project.urls]
|
||||
"Bug Tracker" = "https://gitlab.psi.ch/bec/ophyd_devices/issues"
|
||||
Homepage = "https://gitlab.psi.ch/bec/ophyd_devices"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
include = ["*"]
|
24
setup.cfg
24
setup.cfg
@ -1,24 +0,0 @@
|
||||
[metadata]
|
||||
name = ophyd_devices
|
||||
description = Custom device implementations based on the ophyd hardware abstraction layer
|
||||
long_description = file: README.md
|
||||
long_description_content_type = text/markdown
|
||||
url = https://gitlab.psi.ch/bec/ophyd_devices
|
||||
project_urls =
|
||||
Bug Tracker = https://gitlab.psi.ch/bec/ophyd_devices/issues
|
||||
classifiers =
|
||||
Programming Language :: Python :: 3
|
||||
Development Status :: 3 - Alpha
|
||||
Topic :: Scientific/Engineering
|
||||
|
||||
[options]
|
||||
package_dir =
|
||||
= .
|
||||
packages = find:
|
||||
python_requires = >=3.10
|
||||
|
||||
[options.packages.find]
|
||||
where = .
|
||||
|
||||
[semantic_release]
|
||||
version_variable = setup.py:__version__
|
24
setup.py
24
setup.py
@ -1,24 +0,0 @@
|
||||
from setuptools import setup
|
||||
|
||||
__version__ = "0.29.2"
|
||||
|
||||
if __name__ == "__main__":
|
||||
setup(
|
||||
install_requires=[
|
||||
"ophyd",
|
||||
"typeguard",
|
||||
"prettytable",
|
||||
"bec_lib",
|
||||
"numpy",
|
||||
"pyyaml",
|
||||
"std_daq_client",
|
||||
"pyepics",
|
||||
"pytest",
|
||||
"h5py",
|
||||
"hdf5plugin",
|
||||
],
|
||||
extras_require={"dev": ["pytest", "pytest-random-order", "black", "coverage"]},
|
||||
package_data={"ophyd_devices.smaract": ["smaract_sensors.json"]},
|
||||
entry_points={"console_scripts": ["ophyd_test = ophyd_devices:launch"]},
|
||||
version=__version__,
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user