Skip to content

Commit c6e12a8

Browse files
authored
Merge pull request #344 from FAIRmat-NFDI/300-switch-to-src-layout
Switch to src layout, add default data to package
2 parents 273a0a1 + b29d8b7 commit c6e12a8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+80
-64
lines changed

.github/workflows/check_nexus_version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
git submodule sync --recursive
1717
git submodule update --init --recursive --jobs=4
1818
git submodule foreach --recursive 'git fetch --tags'
19-
cd pynxtools/definitions
19+
cd src/pynxtools/definitions
2020
git describe --dirty --tags --long --match "*[0-9]*" > ../nexus-ref.txt
2121
cd ../
2222
- name: Diff
2323
run: |
24-
diff -w pynxtools/nexus-version.txt pynxtools/nexus-ref.txt
24+
diff -w src/pynxtools/nexus-version.txt src/pynxtools/nexus-ref.txt

.github/workflows/pylint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
python -m pip install -r dev-requirements.txt
2525
- name: ruff
2626
run: |
27-
ruff pynxtools tests
27+
ruff src/pynxtools tests
2828
- name: ruff formatting
2929
run: |
30-
ruff format --check pynxtools tests
30+
ruff format --check src/pynxtools tests
3131
- name: mypy
3232
run: |
33-
mypy pynxtools tests
33+
mypy src/pynxtools tests

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ cover/
8888

8989
# Django stuff:
9090
*.log
91-
!tests/data/dataconverter/readers/mpes/Ref_nexus_mpes.log
9291
!tests/data/nexus/Ref_nexus_test.log
9392
local_settings.py
9493
db.sqlite3
@@ -202,7 +201,7 @@ cython_debug/
202201
!requirements.txt
203202
!dev-requirements.txt
204203
!mkdocs-requirements.txt
205-
!pynxtools/nexus-version.txt
204+
!src/pynxtools/nexus-version.txt
206205
build/
207206
nexusparser.egg-info/PKG-INFO
208207
.python-version

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "pynxtools/definitions"]
2-
path = pynxtools/definitions
3-
url = https://github.com/FAIRmat-NFDI/nexus_definitions.git
1+
[submodule "src/pynxtools/definitions"]
2+
path = src/pynxtools/definitions
3+
url = https://github.com/FAIRmat-NFDI/nexus_definitions.git

MANIFEST.in

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
prune *
22
exclude *
3-
recursive-include pynxtools *.py
3+
recursive-include src/pynxtools *.py
44
include pyproject.toml LICENSE README.md TROUBLESHOOTING.md dev-requirements.txt
5+
include src/pynxtools/data/*
6+
7+
recursive-include src/pynxtools/definitions/base_classes/ *.xml
8+
recursive-include src/pynxtools/definitions/applications/ *.xml
9+
recursive-include src/pynxtools/definitions/contributed_definitions/ *.xml
10+
include src/pynxtools/definitions/*.xsd
11+
include src/pynxtools/nexus-version.txt
12+
include src/pynxtools/definitions/NXDL_VERSION
513

6-
recursive-include pynxtools/definitions/base_classes/ *.xml
7-
recursive-include pynxtools/definitions/applications/ *.xml
8-
recursive-include pynxtools/definitions/contributed_definitions/ *.xml
9-
include pynxtools/definitions/*.xsd
10-
include pynxtools/nexus-version.txt
11-
include pynxtools/definitions/NXDL_VERSION

README.md

Lines changed: 4 additions & 4 deletions

docs/tutorial/converting-data-to-nexus.md

Lines changed: 1 addition & 1 deletion

examples/json_map/README.md

Lines changed: 1 addition & 1 deletion

examples/sts/README.md

Lines changed: 1 addition & 1 deletion

mkdocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ nav:
2525
plugins:
2626
- search
2727
- macros:
28-
module_name: pynxtools/mkdocs
28+
module_name: src/pynxtools/mkdocs
2929

3030
theme:
3131
name: material

0 commit comments

Comments
 (0)