Skip to content
Snippets Groups Projects
Commit e4322e68 authored by Pierre-Olivier Autran's avatar Pierre-Olivier Autran
Browse files

Merge branch 'migrate_toml' into 'main'

migration from setup.py/cfg to pyproject.toml

See merge request !249
parents 6c1c62c7 e07d297c
No related branches found
No related tags found
1 merge request!249migration from setup.py/cfg to pyproject.toml
Pipeline #217449 passed
[project]
name = "tomoscan"
dynamic = ["version"]
authors = [
{ name = "Henri Payno", email = "henri.payno@esrf.fr" },
{ name = "Pierre Paleo", email = "pierre.paleo@esrf.fr" },
{ name = "Pierre-Olivier Autran", email = "pierre-olivier.autran@esrf.fr" },
{ name = "Jérôme Lesaint", email = "jerome.lesaint@esrf.fr" },
{ name = "Alessandro Mirone", email = "mirone@esrf.fr" }
]
description = "Utility to access tomography data at ESRF"
readme = { file = "README.md", content-type = "text/markdown" }
license = { text = "MIT" }
requires-python = ">=3.8"
keywords = ["NXtomo", "nexus", "tomography", "esrf", "bliss-tomo"]
classifiers = [
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Environment :: Console",
"Environment :: X11 Applications :: Qt",
"Operating System :: POSIX",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries :: Python Modules"
]
dependencies = [
"setuptools",
"h5py>=3.0",
"silx>=2.0",
"lxml",
"dicttoxml",
"packaging",
"psutil",
"nxtomo>=1.3.0dev8",
"pyunitsystem>=2.0.0a",
"numpy",
"packaging>=22.0"
]
[project.optional-dependencies]
full = [
"glymur",
"imageio",
"tqdm",
"tifffile[zarr]>=2023.7.4; python_version >= '3.10'",
"tifffile; python_version < '3.10'",
"zarr; python_version < '3.10'",
"fsspec; python_version < '3.10'"
]
test = [
"pytest",
"python-gitlab",
"glymur",
"imageio",
"tqdm",
"tifffile[zarr]>=2023.7.4; python_version >= '3.10'",
"tifffile; python_version < '3.10'",
"zarr; python_version < '3.10'",
"fsspec; python_version < '3.10'"
]
doc = [
"Sphinx>=4.0.0, <5.2.0",
"nbsphinx",
"pandoc",
"ipykernel",
"jupyter_client",
"nbconvert",
"h5glance",
"pydata_sphinx_theme",
"sphinx-design",
"sphinx-autodoc-typehints",
"glymur",
"imageio",
"tqdm",
"tifffile[zarr]>=2023.7.4; python_version >= '3.10'",
"tifffile; python_version < '3.10'",
"zarr; python_version < '3.10'",
"fsspec; python_version < '3.10'"
]
[build-system]
requires = [
"setuptools>=61.0",
"wheel",
"numpy"
]
build-backend = "setuptools.build_meta"
[tool.sphinx]
source-dir = "./doc"
[project.scripts]
tomoscan = "tomoscan.__main__:main"
[tool.setuptools.dynamic]
version = { attr = "tomoscan.__version__" }
[tool.setuptools.packages.find]
where = ["."]
[metadata]
name = tomoscan
version = attr: tomoscan.__version__
author = Henri Payno, Pierre Paleo, Pierre-Olivier Autran, Jérôme Lesaint, Alessandro Mirone
author_email = henri.payno@esrf.fr, pierre.paleo@esrf.fr, pierre-olivier.autran@esrf.fr, jerome.lesaint@esrf.fr, mirone@esrf.fr
description = "utilitary to access tomography data at esrf"
long_description = file: README.md
long_description_content_type = text/markdown
license = MIT
url = https://gitlab.esrf.fr/tomotools/tomoscan
project_urls =
Bug Tracker = https://gitlab.esrf.fr/tomotools/tomoscan/-/issues
classifiers =
Intended Audience :: Education
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3
Environment :: Console
Environment :: X11 Applications :: Qt
Operating System :: POSIX
Natural Language :: English
Topic :: Scientific/Engineering :: Physics
Topic :: Software Development :: Libraries :: Python Modules
[options]
packages = find:
python_requires = >=3.6
install_requires =
setuptools
h5py>=3.0
silx>=2.0
lxml
dicttoxml
packaging
psutil
nxtomo>=1.3.0dev8
pyunitsystem>=2.0.0a
numpy
packaging>=22.0 # https://github.com/pypa/setuptools/issues/4483
[options.extras_require]
full =
glymur
imageio
tqdm
tifffile[zarr]>=2023.7.4; python_version >= '3.10'
# the zarr extra requirement as been added on july 2024 only and for python 3.10 or higher
tifffile; python_version < '3.10'
zarr; python_version < '3.10'
fsspec; python_version < '3.10'
test =
%(full)s
pytest
python-gitlab
doc =
%(full)s
Sphinx>=4.0.0, <5.2.0
nbsphinx
pandoc
ipykernel
jupyter_client
nbconvert
h5glance
pydata_sphinx_theme
sphinx-design
sphinx-autodoc-typehints
setup_requires =
setuptools
numpy
[build_sphinx]
source-dir = ./doc
#!/usr/bin/python
import setuptools
if __name__ == "__main__":
setuptools.setup()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment