Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
extend-ignore = E203,E501,E701
max-line-length = 88
exclude = [".eggs"]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
!.gitignore
!.github
!.readthedocs.yaml
!.flake8

# Byte / compiled / optimized
*.py[cod]
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To be sure all HDF5 files are compliant with the latest standard

```bash
pip install -e .[dev]
./converted/generate.sh
./nxxas_examples/generate.sh
```

### Linting
Expand Down
6 changes: 4 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

import os
import sys
from pynxxas import __version__ as release
from importlib.metadata import version as get_version

release = get_version("pynxxas")

sys.path.append(os.path.abspath("./_ext"))

project = "pynxxas"
version = ".".join(release.split(".")[:2])
copyright = "2024-present, ESRF"
copyright = "2024-2025, ESRF"
author = "ESRF"
docstitle = f"{project} {version}"

Expand Down
60 changes: 59 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,62 @@
requires = [
"setuptools>=46.4"
]
build-backend = "setuptools.build_meta"
build-backend = "setuptools.build_meta"

[project]
name = "pynxxas"
version = "0.0.1a"
authors = [{name = "ESRF", email = "dau-pydev@esrf.fr"}]
description = "Read and write XAS data in NeXus format"
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.8"
dependencies = [
"numpy",
"h5py",
"pydantic >=2.6",
"pint >=0.24.4",
"charset_normalizer",
]

[project.urls]
Homepage = "https://github.com/XraySpectroscopy/pynxxas/"
Documentation = "https://pynxxas.readthedocs.io/"
Repository = "https://github.com/XraySpectroscopy/pynxxas/"
Issues = "https://github.com/XraySpectroscopy/pynxxas/issues"
Changelog = "https://github.com/XraySpectroscopy/pynxxas/-/blob/main/CHANGELOG.md"

[project.optional-dependencies]
test = [
"pytest >=7",
]
dev = [
"pynxxas[test]",
"black >=22",
"flake8 >=4",
"xraylarch",
]
doc = [
"pynxxas[test]",
"sphinx >=4.5",
"sphinx-autodoc-typehints >=1.16",
"pydata-sphinx-theme < 0.15",
"xraylarch",
]

[tool.setuptools]
package-dir = { "" = "src" }

[tool.setuptools.packages.find]
where = ["src"]

[tool.coverage.run]
omit = ['*/tests/*']

[project.scripts]
nxxas-convert = "pynxxas.apps.nxxas_convert:main"
70 changes: 0 additions & 70 deletions setup.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions setup.py

This file was deleted.

1 change: 0 additions & 1 deletion src/pynxxas/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
__version__ = "0.0.1a"