Skip to content

Commit 4dbad20

Browse files
committed
Squashed commit of the following:
commit df53903 Merge: 7a12be5 0248d55 Author: David Meyer <dihm@users.noreply.github.com> Date: Mon Mar 16 13:54:37 2026 -0400 Merge pull request #121 from Json-To-String/variable-name-bug Remove try except for variable checking in favor of string.isidentifi… commit 7a12be5 Merge: 2145dbf 8c5e165 Author: David Meyer <dihm@users.noreply.github.com> Date: Mon Mar 16 13:52:47 2026 -0400 Merge pull request #117 from dihm/pyside6_fix Ignore PySide6 import objects in CWD when saving labscript files on compilation commit 2145dbf Author: David Meyer <dihm.meyer@gmail.com> Date: Mon Mar 16 13:46:09 2026 -0400 Fix build and release workflow. commit fa22b43 Merge: f1ed9cb 32e46d9 Author: David Meyer <dihm@users.noreply.github.com> Date: Mon Mar 16 12:04:38 2026 -0400 Merge pull request #119 from YinFengQi/fix-#118 fix: set 0 as default `max_BLACS_conn_length` commit 0248d55 Author: Jason Pruitt <pruitt.jason8164@gmail.com> Date: Thu Feb 5 10:37:57 2026 -0500 Remove try except for variable checking in favor of string.isidentifier() commit 32e46d9 Author: YinFengQi <mny23@mails.tsinghua.edu.cn> Date: Mon Jan 19 01:09:44 2026 +0800 add attribute `BLACS_connection` to class `Device` - Define the attribute `BLACS_connection` in base class `Device`, to ensure that all `Device` subclasses have this attribute. Suggested-by: @dihm commit ac0c633 Author: YinFengQi <mny23@mails.tsinghua.edu.cn> Date: Fri Dec 12 16:05:58 2025 +0800 fix: set 0 as default `max_BLACS_conn_length` - Set the default value of `max_BLACS_conn_length` to 0 so that the `np.empty` always receives a valid arguement - Fixes #118 commit 8c5e165 Author: David Meyer <dihm.meyer@gmail.com> Date: Tue Dec 2 11:23:25 2025 -0500 Ignore PySide6 ephemeral imports from zip that linger in sys.modules as being in the labscript-suite profile path. Implemented as a simple string filter for common component names. commit f1ed9cb Merge: 8d2e773 c54de6b Author: David Meyer <dihm@users.noreply.github.com> Date: Thu Nov 20 14:42:30 2025 -0500 Merge pull request #114 from ispielma/master Fixed error in a comment that gave the following warning. commit 8d2e773 Merge: 41d6e1c 6d225b4 Author: David Meyer <dihm@users.noreply.github.com> Date: Tue Aug 19 17:22:08 2025 -0400 Merge pull request #115 from dihm/sphinx_update Update sphinx commit 6d225b4 Author: David Meyer <dihm.meyer@gmail.com> Date: Tue Aug 19 16:06:34 2025 -0400 Pin numpy<2 for docs builds. This works around `labscript.core` clobbering from the `pylab` star importing `numpy.core` into the same namespace. commit d687804 Author: David Meyer <dihm.meyer@gmail.com> Date: Tue Aug 19 12:01:04 2025 -0400 Ensure that current project isn't included in intersphinx mapping. commit 3366e57 Author: David Meyer <dihm.meyer@gmail.com> Date: Tue Aug 19 11:59:04 2025 -0400 Improve template whitespace formatting from upstream commit f504f2d Author: David Meyer <dihm.meyer@gmail.com> Date: Tue Aug 19 11:56:40 2025 -0400 Revert "Drop outdated autosummary template" This reverts commit 18e76cd. commit 4e630c0 Author: David Meyer <dihm@users.noreply.github.com> Date: Sun Aug 3 01:07:51 2025 -0400 Properly mock h5_lock, which causes issues on RTD builds commit 18e76cd Author: David Meyer <dihm@users.noreply.github.com> Date: Sat Aug 2 23:56:34 2025 -0400 Drop outdated autosummary template commit 504524e Author: David Meyer <dihm@users.noreply.github.com> Date: Sat Aug 2 23:43:15 2025 -0400 Update sphinx pins and refresh build commit c54de6b Author: spielman <spielman@umd.edu> Date: Mon Jul 14 13:31:35 2025 -0400 Fixed error in comment that gave the warning: ``` .../labscript/labscript/utils.py:176: SyntaxWarning: invalid escape sequence '\*' """Returns max of the arguments or zero if sequence is empty. ```
1 parent 233150a commit 4dbad20

11 files changed

Lines changed: 105 additions & 464 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@v6
3838
with:
3939
fetch-depth: 0
4040

@@ -43,7 +43,7 @@ jobs:
4343
run: git tag -d $(git tag --points-at HEAD)
4444

4545
- name: Install Python
46-
uses: actions/setup-python@v5
46+
uses: actions/setup-python@v6
4747
with:
4848
python-version: '3.x'
4949

@@ -222,7 +222,7 @@ jobs:
222222

223223
steps:
224224
- name: Checkout
225-
uses: actions/checkout@v4
225+
uses: actions/checkout@v6
226226
with:
227227
fetch-depth: 0
228228

@@ -231,7 +231,7 @@ jobs:
231231
run: git tag -d $(git tag --points-at HEAD)
232232

233233
- name: Install Python
234-
uses: actions/setup-python@v5
234+
uses: actions/setup-python@v6
235235
with:
236236
python-version: ${{ env.DEFAULT_PYTHON }}
237237

@@ -252,7 +252,7 @@ jobs:
252252

253253
- name: Upload artifact
254254
if: env.PURE == 'false' || strategy.job-index == 0
255-
uses: actions/upload-artifact@v4
255+
uses: actions/upload-artifact@v6
256256
with:
257257
name: dist-${{ matrix.os }}
258258
path: ./dist
@@ -264,7 +264,7 @@ jobs:
264264
miniforge-version: "latest"
265265
auto-update-conda: true
266266
conda-remove-defaults: true
267-
auto-activate-base: true
267+
auto-activate: true
268268
activate-environment: ""
269269

270270
- name: Conda package
@@ -274,11 +274,11 @@ jobs:
274274
# Short path to minimise odds of hitting Windows max path length
275275
CONDA_BUILD_ARGS+=" --croot ${{ runner.temp }}\cb"
276276
fi
277-
conda install -c labscript-suite setuptools-conda "conda-build<25"
277+
conda install -c labscript-suite setuptools-conda
278278
setuptools-conda build $CONDA_BUILD_ARGS .
279279
280280
- name: Upload artifact
281-
uses: actions/upload-artifact@v4
281+
uses: actions/upload-artifact@v6
282282
with:
283283
name: conda_packages-${{ matrix.os }}
284284
path: ./conda_packages
@@ -298,7 +298,7 @@ jobs:
298298

299299
steps:
300300
- name: Download Artifact
301-
uses: actions/download-artifact@v4
301+
uses: actions/download-artifact@v8
302302
with:
303303
pattern: dist*
304304
path: ./dist
@@ -332,7 +332,7 @@ jobs:
332332

333333
steps:
334334
- name: Download Artifact
335-
uses: actions/download-artifact@v4
335+
uses: actions/download-artifact@v8
336336
with:
337337
pattern: dist*
338338
path: ./dist
@@ -360,7 +360,7 @@ jobs:
360360

361361
steps:
362362
- name: Download Artifact
363-
uses: actions/download-artifact@v4
363+
uses: actions/download-artifact@v8
364364
with:
365365
pattern: dist*
366366
path: ./dist
@@ -378,7 +378,7 @@ jobs:
378378

379379
steps:
380380
- name: Download Artifact
381-
uses: actions/download-artifact@v4
381+
uses: actions/download-artifact@v8
382382
with:
383383
pattern: conda_packages-*
384384
path: ./conda_packages
@@ -390,7 +390,7 @@ jobs:
390390
miniforge-version: "latest"
391391
auto-update-conda: true
392392
conda-remove-defaults: true
393-
auto-activate-base: true
393+
auto-activate: true
394394
activate-environment: ""
395395

396396
- name: Install Anaconda cloud client
@@ -417,7 +417,7 @@ jobs:
417417

418418
steps:
419419
- name: Download Artifact
420-
uses: actions/download-artifact@v4
420+
uses: actions/download-artifact@v8
421421
with:
422422
pattern: conda_packages-*
423423
path: ./conda_packages
@@ -429,7 +429,7 @@ jobs:
429429
miniforge-version: "latest"
430430
auto-update-conda: true
431431
conda-remove-defaults: true
432-
auto-activate-base: true
432+
auto-activate: true
433433
activate-environment: ""
434434

435435
- name: Install Anaconda cloud client

docs/Makefile

Lines changed: 17 additions & 174 deletions
Original file line numberDiff line numberDiff line change
@@ -1,183 +1,26 @@
1-
# Makefile for Sphinx documentation
1+
# Minimal makefile for Sphinx documentation
22
#
33

4-
# You can set these variables from the command line.
5-
SPHINXOPTS =
6-
SPHINXBUILD = sphinx-build
7-
PAPER =
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
89
BUILDDIR = build
10+
AUTOSUMMARYDIR = source/api/_autosummary
911

10-
# User-friendly check for sphinx-build
11-
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12-
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13-
endif
14-
15-
# Internal variables.
16-
PAPEROPT_a4 = -D latex_paper_size=a4
17-
PAPEROPT_letter = -D latex_paper_size=letter
18-
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
19-
# the i18n builder cannot share the environment and doctrees with the others
20-
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
21-
22-
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext
23-
12+
# Put it first so that "make" without argument is like "make help".
2413
help:
25-
@echo "Please use \`make <target>' where <target> is one of"
26-
@echo " html to make standalone HTML files"
27-
@echo " dirhtml to make HTML files named index.html in directories"
28-
@echo " singlehtml to make a single large HTML file"
29-
@echo " pickle to make pickle files"
30-
@echo " json to make JSON files"
31-
@echo " htmlhelp to make HTML files and a HTML help project"
32-
@echo " qthelp to make HTML files and a qthelp project"
33-
@echo " devhelp to make HTML files and a Devhelp project"
34-
@echo " epub to make an epub"
35-
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
36-
@echo " latexpdf to make LaTeX files and run them through pdflatex"
37-
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
38-
@echo " text to make text files"
39-
@echo " man to make manual pages"
40-
@echo " texinfo to make Texinfo files"
41-
@echo " info to make Texinfo files and run them through makeinfo"
42-
@echo " gettext to make PO message catalogs"
43-
@echo " changes to make an overview of all changed/added/deprecated items"
44-
@echo " xml to make Docutils-native XML files"
45-
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
46-
@echo " linkcheck to check all external links for integrity"
47-
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
48-
@echo " coverage to run coverage check of the documentation (if enabled)"
14+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
4915

5016
clean:
51-
rm -rf $(BUILDDIR)/*
52-
53-
html:
54-
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
55-
@echo
56-
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
57-
58-
dirhtml:
59-
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
60-
@echo
61-
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
62-
63-
singlehtml:
64-
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
65-
@echo
66-
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
67-
68-
pickle:
69-
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
70-
@echo
71-
@echo "Build finished; now you can process the pickle files."
72-
73-
json:
74-
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
75-
@echo
76-
@echo "Build finished; now you can process the JSON files."
77-
78-
htmlhelp:
79-
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
80-
@echo
81-
@echo "Build finished; now you can run HTML Help Workshop with the" \
82-
".hhp project file in $(BUILDDIR)/htmlhelp."
83-
84-
qthelp:
85-
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
86-
@echo
87-
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
88-
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
89-
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/labscript.qhcp"
90-
@echo "To view the help file:"
91-
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/labscript.qhc"
92-
93-
devhelp:
94-
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
95-
@echo
96-
@echo "Build finished."
97-
@echo "To view the help file:"
98-
@echo "# mkdir -p $$HOME/.local/share/devhelp/labscript"
99-
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/labscript"
100-
@echo "# devhelp"
101-
102-
epub:
103-
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
104-
@echo
105-
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
106-
107-
latex:
108-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
109-
@echo
110-
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
111-
@echo "Run \`make' in that directory to run these through (pdf)latex" \
112-
"(use \`make latexpdf' here to do that automatically)."
113-
114-
latexpdf:
115-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
116-
@echo "Running LaTeX files through pdflatex..."
117-
$(MAKE) -C $(BUILDDIR)/latex all-pdf
118-
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
119-
120-
latexpdfja:
121-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
122-
@echo "Running LaTeX files through platex and dvipdfmx..."
123-
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
124-
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
125-
126-
text:
127-
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
128-
@echo
129-
@echo "Build finished. The text files are in $(BUILDDIR)/text."
130-
131-
man:
132-
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
133-
@echo
134-
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
135-
136-
texinfo:
137-
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
138-
@echo
139-
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
140-
@echo "Run \`make' in that directory to run these through makeinfo" \
141-
"(use \`make info' here to do that automatically)."
142-
143-
info:
144-
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
145-
@echo "Running Texinfo files through makeinfo..."
146-
make -C $(BUILDDIR)/texinfo info
147-
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
148-
149-
gettext:
150-
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
151-
@echo
152-
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
153-
154-
changes:
155-
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
156-
@echo
157-
@echo "The overview file is in $(BUILDDIR)/changes."
158-
159-
linkcheck:
160-
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
161-
@echo
162-
@echo "Link check complete; look for any errors in the above output " \
163-
"or in $(BUILDDIR)/linkcheck/output.txt."
164-
165-
doctest:
166-
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
167-
@echo "Testing of doctests in the sources finished, look at the " \
168-
"results in $(BUILDDIR)/doctest/output.txt."
169-
170-
coverage:
171-
$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
172-
@echo "Testing of coverage in the sources finished, look at the " \
173-
"results in $(BUILDDIR)/coverage/python.txt."
17+
@echo "Removing autosummary directory"
18+
@rm -rf $(AUTOSUMMARYDIR)
19+
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
17420

175-
xml:
176-
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
177-
@echo
178-
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
21+
.PHONY: help clean Makefile
17922

180-
pseudoxml:
181-
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
182-
@echo
183-
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
23+
# Catch-all target: route all unknown targets to Sphinx using the new
24+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
25+
%: Makefile
26+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

0 commit comments

Comments
 (0)