diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index e5696a0..de851dc 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -21,10 +21,10 @@ jobs: uv pip install -r dev-requirements.txt - name: ruff check run: | - ruff check pynxtools_mpes tests + ruff check src/pynxtools_mpes tests - name: ruff format run: | - ruff format --check pynxtools_mpes tests + ruff format --check src/pynxtools_mpes tests - name: mypy run: | - mypy pynxtools_mpes tests + mypy src/pynxtools_mpes tests diff --git a/MANIFEST.in b/MANIFEST.in index 4276f0d..a9131e3 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ prune * exclude * -recursive-include pynxtools_mpes *.py +recursive-include src/pynxtools_mpes *.py include pyproject.toml README.md dev-requirements.txt \ No newline at end of file diff --git a/docs/reference/mpes.md b/docs/reference/mpes.md index 4d1cb7e..648d694 100644 --- a/docs/reference/mpes.md +++ b/docs/reference/mpes.md @@ -2,7 +2,7 @@ The reader supports [HDF5](https://www.hdfgroup.org/solutions/hdf5/) files created using the MPES instruments at the Department of Physical Chemistry of the [Fritz Haber Institute of the Max Planck Society (FHI)](https://pc.fhi-berlin.mpg.de). -The reader for can be found [here](https://github.com/FAIRmat-NFDI/pynxtools-mpes/blob/main/pynxtools_mpes/reader.py). +The reader for can be found [here](https://github.com/FAIRmat-NFDI/pynxtools-mpes/blob/main/src/pynxtools_mpes/reader.py). Example data for the MPES reader is available [here](https://github.com/FAIRmat-NFDI/pynxtools-mpes/tree/main/tests/data). diff --git a/mkdocs.yaml b/mkdocs.yaml index 1dc9de4..4362a0d 100644 --- a/mkdocs.yaml +++ b/mkdocs.yaml @@ -20,7 +20,7 @@ nav: plugins: - search - macros: - module_name: pynxtools_mpes/mkdocs + module_name: src/pynxtools_mpes/mkdocs theme: name: material diff --git a/pyproject.toml b/pyproject.toml index c155370..1e3b2a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,13 +55,15 @@ docs = [ [project.entry-points."pynxtools.reader"] mpes = "pynxtools_mpes.reader:MPESReader" -[tool.setuptools] -packages = ["pynxtools_mpes"] +[tool.setuptools.packages.find] +where = [ + "src", +] [tool.setuptools_scm] [tool.ruff] -include = ["pynxtools_mpes/*.py", "tests/*.py"] +include = ["src/*.py", "tests/*.py"] line-length = 88 indent-width = 4 diff --git a/pynxtools_mpes/__init__.py b/src/pynxtools_mpes/__init__.py similarity index 100% rename from pynxtools_mpes/__init__.py rename to src/pynxtools_mpes/__init__.py diff --git a/pynxtools_mpes/mkdocs.py b/src/pynxtools_mpes/mkdocs.py similarity index 100% rename from pynxtools_mpes/mkdocs.py rename to src/pynxtools_mpes/mkdocs.py diff --git a/pynxtools_mpes/reader.py b/src/pynxtools_mpes/reader.py similarity index 100% rename from pynxtools_mpes/reader.py rename to src/pynxtools_mpes/reader.py