Skip to content

Commit 61c0a10

Browse files
Merge pull request #596 from scipp/lazy
MAINT: Use lazy_loader for lazy loading of submodules
2 parents aadd0e6 + 112edad commit 61c0a10

File tree

22 files changed

+104
-97
lines changed

22 files changed

+104
-97
lines changed

.buildconfig/ci-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
- ipykernel==6.29.5
1515
- ipympl==0.9.4
1616
- ipywidgets==8.1.5
17+
- lazy-loader==0.4
1718
- mantid==6.11.0
1819
- matplotlib==3.7.3
1920
- mpltoolbox==24.05.1

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ dynamic = ["version"]
3131
# Run 'tox -e deps' after making changes here. This will update requirement files.
3232
# Make sure to list one dependency per line.
3333
dependencies = [
34+
"lazy_loader",
3435
"h5py",
3536
"mpltoolbox",
3637
"numpy>=1.20",

requirements/base.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# will not be touched by ``make_base.py``
33
# --- END OF CUSTOM SECTION ---
44
# The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY!
5+
lazy_loader
56
h5py
67
mpltoolbox
78
numpy>=1.20

requirements/base.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SHA1:8028b204890e7f7923037a4acbc74a34e7834749
1+
# SHA1:0d828cbacfc7cf912a961c413fba99e70fc9dde0
22
#
33
# This file is autogenerated by pip-compile-multi
44
# To update, run:
@@ -9,14 +9,16 @@ contourpy==1.3.1
99
# via matplotlib
1010
cycler==0.12.1
1111
# via matplotlib
12-
fonttools==4.55.3
12+
fonttools==4.55.6
1313
# via matplotlib
1414
h5py==3.12.1
1515
# via
1616
# -r base.in
1717
# scippnexus
1818
kiwisolver==1.4.8
1919
# via matplotlib
20+
lazy-loader==0.4
21+
# via -r base.in
2022
matplotlib==3.10.0
2123
# via
2224
# mpltoolbox
@@ -33,7 +35,9 @@ numpy==2.2.2
3335
# scipp
3436
# scipy
3537
packaging==24.2
36-
# via matplotlib
38+
# via
39+
# lazy-loader
40+
# matplotlib
3741
pillow==11.1.0
3842
# via matplotlib
3943
plopp==24.10.0

requirements/basetest.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ appdirs==1.4.4
99
# via pace-neutrons
1010
asttokens==3.0.0
1111
# via stack-data
12-
attrs==24.3.0
12+
attrs==25.1.0
1313
# via hypothesis
1414
brille==0.8.0
1515
# via pace-neutrons
@@ -36,17 +36,17 @@ exceptiongroup==1.2.2
3636
# pytest
3737
execnet==2.1.1
3838
# via pytest-xdist
39-
executing==2.1.0
39+
executing==2.2.0
4040
# via stack-data
4141
flexcache==0.3
4242
# via pint
4343
flexparser==0.4
4444
# via pint
45-
fonttools==4.55.3
45+
fonttools==4.55.6
4646
# via matplotlib
4747
h5py==3.12.1
4848
# via euphonic
49-
hypothesis==6.124.1
49+
hypothesis==6.124.7
5050
# via -r basetest.in
5151
idna==3.10
5252
# via requests
@@ -123,7 +123,7 @@ pluggy==1.5.0
123123
# via pytest
124124
pooch==1.8.2
125125
# via -r basetest.in
126-
prompt-toolkit==3.0.48
126+
prompt-toolkit==3.0.50
127127
# via ipython
128128
psutil==6.1.1
129129
# via

requirements/ci.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# pip-compile-multi
77
#
8-
cachetools==5.5.0
8+
cachetools==5.5.1
99
# via tox
1010
certifi==2024.12.14
1111
# via requests
@@ -17,7 +17,7 @@ colorama==0.4.6
1717
# via tox
1818
distlib==0.3.9
1919
# via virtualenv
20-
filelock==3.16.1
20+
filelock==3.17.0
2121
# via
2222
# tox
2323
# virtualenv
@@ -38,7 +38,7 @@ platformdirs==4.3.6
3838
# virtualenv
3939
pluggy==1.5.0
4040
# via tox
41-
pyproject-api==1.8.0
41+
pyproject-api==1.9.0
4242
# via tox
4343
requests==2.32.3
4444
# via -r ci.in
@@ -48,7 +48,7 @@ tomli==2.2.1
4848
# via
4949
# pyproject-api
5050
# tox
51-
tox==4.23.2
51+
tox==4.24.1
5252
# via -r ci.in
5353
typing-extensions==4.12.2
5454
# via tox

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ prometheus-client==0.21.1
9191
# via jupyter-server
9292
pycparser==2.22
9393
# via cffi
94-
pydantic==2.10.5
94+
pydantic==2.10.6
9595
# via copier
9696
pydantic-core==2.27.2
9797
# via pydantic

requirements/docs.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ alabaster==1.0.0
1212
# via sphinx
1313
asttokens==3.0.0
1414
# via stack-data
15-
attrs==24.3.0
15+
attrs==25.1.0
1616
# via
1717
# jsonschema
1818
# referencing
@@ -50,7 +50,7 @@ docutils==0.21.2
5050
# sphinxcontrib-bibtex
5151
exceptiongroup==1.2.2
5252
# via ipython
53-
executing==2.1.0
53+
executing==2.2.0
5454
# via stack-data
5555
fastjsonschema==2.21.1
5656
# via nbformat
@@ -146,7 +146,7 @@ platformdirs==4.3.6
146146
# pooch
147147
pooch==1.8.2
148148
# via -r docs.in
149-
prompt-toolkit==3.0.48
149+
prompt-toolkit==3.0.50
150150
# via ipython
151151
psutil==6.1.1
152152
# via ipykernel
@@ -177,7 +177,7 @@ pyzmq==26.2.0
177177
# via
178178
# ipykernel
179179
# jupyter-client
180-
referencing==0.36.1
180+
referencing==0.36.2
181181
# via
182182
# jsonschema
183183
# jsonschema-specifications

requirements/nightly.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
# --- END OF CUSTOM SECTION ---
33
# The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY!
4+
lazy_loader
45
h5py
56
numpy>=1.20
67
scipy>=1.7.0

requirements/nightly.txt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SHA1:ed7fd49975142ff15617b14285315691d682ab9c
1+
# SHA1:3823099f3a0aded08b0d6f1d0d41533ad913e37b
22
#
33
# This file is autogenerated by pip-compile-multi
44
# To update, run:
@@ -9,7 +9,7 @@ appdirs==1.4.4
99
# via pace-neutrons
1010
asttokens==3.0.0
1111
# via stack-data
12-
attrs==24.3.0
12+
attrs==25.1.0
1313
# via hypothesis
1414
brille==0.8.0
1515
# via pace-neutrons
@@ -36,20 +36,20 @@ exceptiongroup==1.2.2
3636
# pytest
3737
execnet==2.1.1
3838
# via pytest-xdist
39-
executing==2.1.0
39+
executing==2.2.0
4040
# via stack-data
4141
flexcache==0.3
4242
# via pint
4343
flexparser==0.4
4444
# via pint
45-
fonttools==4.55.3
45+
fonttools==4.55.6
4646
# via matplotlib
4747
h5py==3.12.1
4848
# via
4949
# -r nightly.in
5050
# euphonic
5151
# scippnexus
52-
hypothesis==6.124.1
52+
hypothesis==6.124.7
5353
# via -r nightly.in
5454
idna==3.10
5555
# via requests
@@ -77,6 +77,8 @@ jupyterlab-widgets==3.0.13
7777
# via ipywidgets
7878
kiwisolver==1.4.8
7979
# via matplotlib
80+
lazy-loader==0.4
81+
# via -r nightly.in
8082
libpymcr==0.1.8
8183
# via pace-neutrons
8284
matplotlib==3.10.0
@@ -114,6 +116,7 @@ pace-neutrons==0.3.1
114116
packaging==24.2
115117
# via
116118
# euphonic
119+
# lazy-loader
117120
# matplotlib
118121
# pooch
119122
# pytest
@@ -139,7 +142,7 @@ pluggy==1.5.0
139142
# via pytest
140143
pooch==1.8.2
141144
# via -r nightly.in
142-
prompt-toolkit==3.0.48
145+
prompt-toolkit==3.0.50
143146
# via ipython
144147
psutil==6.1.1
145148
# via

0 commit comments

Comments
 (0)