1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
[build-system]
requires = [
"setuptools",
"cython",
"wheel",
"numpy>=2.0.0rc1",
]
build-backend = "setuptools.build_meta"
[project]
name = "refnx"
authors = [{name="Andrew Nelson", email="andyfaff+refnx@gmail.com"}]
description = "Neutron and X-ray Reflectometry Analysis"
license = "BSD-3-Clause"
readme = "README.md"
requires-python = ">=3.9"
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"numpy>=1.26.4",
"scipy",
"orsopy",
]
[project.urls]
homepage = "https://github.com/refnx/refnx"
documentation = "https://refnx.readthedocs.io/en/latest"
tracker = "https://github.com/refnx/refnx/issues"
source = "https://github.com/refnx/refnx"
[project.optional-dependencies]
all = [
"IPython",
"ipywidgets",
"traitlets",
"matplotlib",
"xlrd",
"h5py",
"jupyter",
"tqdm",
"pymc",
"pytensor",
"attrs",
"pandas",
"pyparsing",
"periodictable",
"pyqt6",
"qtpy",
"corner",
"numba",
]
test = [
"pytest",
"uncertainties",
]
[project.gui-scripts]
refnx = "refnx.reflect:main"
[tool.setuptools]
packages = [
"refnx",
"refnx._lib",
"refnx._lib.tests",
"refnx._lib.emcee",
"refnx._lib.emcee.backends",
"refnx._lib.emcee.moves",
"refnx._lib.ptemcee",
"refnx.analysis",
"refnx.analysis.tests",
"refnx.analysis.tests.NIST_STRD",
"refnx.dataset",
"refnx.dataset.tests",
"refnx.reduce",
"refnx.reduce._app",
"refnx.reduce._app.ui",
"refnx.reduce.batch_reduce",
"refnx.reduce.tests",
"refnx.reflect",
"refnx.reflect._app",
"refnx.reflect._app.icons",
"refnx.reflect._app.tests",
"refnx.reflect._app.ui",
"refnx.reflect._app.ui.licences",
"refnx.reflect.tests",
"refnx.util",
"refnx.util.tests",
]
[tool.black]
line-length = 79
extend-exclude="refnx/_lib/emcee/|refnx/_lib/ptemcee/|benchmarks"
[tool.ruff]
exclude = [
"refnx/_lib/emcee",
"refnx/reflect/_app/resources_rc.py",
"refnx/_lib/ptemcee",
"*.ipynb",
]
[tool.ruff.lint]
ignore = ["F401", "F405", "E501", "E203", "E231"]
[tool.cibuildwheel]
skip = "pp* cp36-* cp37-* cp38-* cp39-*"
test-requires = ["pytest", "periodictable"]
test-command = "pytest --pyargs refnx.reflect.tests.test_reflect"
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
# On an Linux Intel runner with qemu installed, build Intel and ARM wheels
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
musllinux-x86_64-image = "musllinux_1_2"
musllinux-aarch64-image = "musllinux_1_2"
[tool.cibuildwheel.windows]
archs = ["AMD64"]
|