Skip to content

Commit 12b5794

Browse files
committed
Merge branch 'master' into carterturn-prawnblaster-binary
2 parents dc50f3c + 0945101 commit 12b5794

File tree

8 files changed

+31
-41
lines changed

8 files changed

+31
-41
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
if: github.repository == 'labscript-suite/labscript-devices' && (github.event_name != 'create' || github.event.ref_type != 'branch')
6565
steps:
6666
- name: Checkout
67-
uses: actions/checkout@v3
67+
uses: actions/checkout@v4
6868
with:
6969
fetch-depth: 0
7070

@@ -73,7 +73,7 @@ jobs:
7373
run: git tag -d $(git tag --points-at HEAD)
7474

7575
- name: Install Python
76-
uses: actions/setup-python@v4
76+
uses: actions/setup-python@v5
7777
with:
7878
python-version: ${{ matrix.python }}
7979
architecture: ${{ matrix.arch }}
@@ -93,7 +93,7 @@ jobs:
9393
9494
- name: Upload Artifact
9595
if: strategy.job-index == 0 || (env.PURE == 'false' && runner.os != 'Linux')
96-
uses: actions/upload-artifact@v3
96+
uses: actions/upload-artifact@v4
9797
with:
9898
name: dist
9999
path: ./dist
@@ -111,7 +111,7 @@ jobs:
111111
112112
- name: Install Miniconda
113113
if: matrix.conda
114-
uses: conda-incubator/setup-miniconda@v2
114+
uses: conda-incubator/setup-miniconda@v3
115115
with:
116116
auto-update-conda: true
117117
python-version: ${{ matrix.python }}
@@ -140,7 +140,7 @@ jobs:
140140
141141
- name: Upload Artifact
142142
if: matrix.conda
143-
uses: actions/upload-artifact@v3
143+
uses: actions/upload-artifact@v4
144144
with:
145145
name: conda_packages
146146
path: ./conda_packages
@@ -153,7 +153,7 @@ jobs:
153153
steps:
154154
- name: Checkout
155155
if: env.PURE == 'false'
156-
uses: actions/checkout@v3
156+
uses: actions/checkout@v4
157157
with:
158158
fetch-depth: 0
159159

@@ -170,7 +170,7 @@ jobs:
170170

171171
- name: Upload Artifact
172172
if: env.PURE == 'false'
173-
uses: actions/upload-artifact@v3
173+
uses: actions/upload-artifact@v4
174174
with:
175175
name: dist
176176
path: dist/*manylinux*.whl
@@ -182,13 +182,13 @@ jobs:
182182
steps:
183183

184184
- name: Download Artifact
185-
uses: actions/download-artifact@v3
185+
uses: actions/download-artifact@v4
186186
with:
187187
name: dist
188188
path: ./dist
189189

190190
- name: Download Artifact
191-
uses: actions/download-artifact@v3
191+
uses: actions/download-artifact@v4
192192
with:
193193
name: conda_packages
194194
path: ./conda_packages
@@ -226,7 +226,7 @@ jobs:
226226
password: ${{ secrets.pypi }}
227227

228228
- name: Install Miniconda
229-
uses: conda-incubator/setup-miniconda@v2
229+
uses: conda-incubator/setup-miniconda@v3
230230
with:
231231
auto-update-conda: true
232232

docs/source/conf.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#
1313
import os
1414
from pathlib import Path
15-
from m2r import MdInclude
16-
from recommonmark.transform import AutoStructify
1715
from jinja2 import FileSystemLoader, Environment
1816

1917
# -- Project information (unique to each project) -------------------------------------
@@ -46,7 +44,7 @@
4644
"sphinx.ext.todo",
4745
"sphinx.ext.viewcode",
4846
"sphinx_rtd_theme",
49-
"recommonmark",
47+
"myst_parser",
5048
]
5149

5250
autodoc_typehints = 'description'
@@ -55,6 +53,7 @@
5553

5654
# Prefix each autosectionlabel with the name of the document it is in and a colon
5755
autosectionlabel_prefix_document = True
56+
myst_heading_anchors = 2
5857

5958
# Add any paths that contain templates here, relative to this directory.
6059
templates_path = ['_templates']
@@ -203,20 +202,7 @@
203202
# Use m2r only for mdinclude and recommonmark for everything else
204203
# https://github.com/readthedocs/recommonmark/issues/191#issuecomment-622369992
205204
def setup(app):
206-
config = {
207-
# 'url_resolver': lambda url: github_doc_root + url,
208-
'auto_toc_tree_section': 'Contents',
209-
'enable_eval_rst': True,
210-
}
211-
app.add_config_value('recommonmark_config', config, True)
212-
app.add_transform(AutoStructify)
213-
214-
# from m2r to make `mdinclude` work
215-
app.add_config_value('no_underscore_emphasis', False, 'env')
216-
app.add_config_value('m2r_parse_relative_links', False, 'env')
217-
app.add_config_value('m2r_anonymous_references', False, 'env')
218-
app.add_config_value('m2r_disable_inline_math', False, 'env')
219-
app.add_directive('mdinclude', MdInclude)
205+
220206
app.add_css_file('custom.css')
221207

222208
# generate the components.rst file dynamically so it points to stable/latest

labscript_devices/FunctionRunner/blacs_workers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
from time import monotonic
1515
import numpy as np
1616
import labscript_utils.h5_lock
17+
from labscript_utils.shot_utils import get_shot_globals
1718
import h5py
1819
from blacs.tab_base_classes import Worker
19-
import runmanager
2020
import runmanager.remote
2121
from zprocess import rich_print
2222
from .utils import deserialise_function
@@ -48,7 +48,7 @@ class ShotContext(object):
4848
def __init__(self, h5_file, device_name):
4949
self.h5_file = h5_file
5050
self.device_name = device_name
51-
self.globals = runmanager.get_shot_globals(h5_file)
51+
self.globals = get_shot_globals(h5_file)
5252

5353

5454
class FunctionRunnerWorker(Worker):

labscript_devices/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from setuptools_scm import get_version
1111
__version__ = get_version(
1212
root,
13-
version_scheme="release-branch-semver",
13+
version_scheme=os.getenv("SCM_VERSION_SCHEME", "release-branch-semver"),
1414
local_scheme=os.getenv("SCM_LOCAL_SCHEME", "node-and-date"),
1515
)
1616
else:

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "setuptools_scm>=4.1.0"]
2+
requires = ["setuptools>=64", "wheel", "setuptools_scm>=8"]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools_scm]

readthedocs.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
# Required
55
version: 2
66

7+
# Set build environment options
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.11"
12+
713
# Build documentation in the docs/ directory with Sphinx
814
sphinx:
915
builder: dirhtml
@@ -15,13 +21,11 @@ formats:
1521
- pdf
1622
- epub
1723

18-
# Optionally set the version of Python and requirements required to build your docs
24+
# Optionally set the requirements required to build your docs
1925
python:
20-
version: 3.7
2126
install:
2227
- method: pip
2328
path: .
2429
extra_requirements:
2530
- docs
26-
system_packages: true
2731

setup.cfg

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ install_requires =
3232
runmanager>=3.0.0
3333
importlib_metadata
3434
labscript>=3.0.0
35-
labscript_utils>=3.0.0
35+
labscript_utils>=3.3.0
3636
numpy>=1.15.1
3737
pillow
3838
tqdm
@@ -47,8 +47,6 @@ install_requires =
4747
[options.extras_require]
4848
docs =
4949
PyQt5
50-
Sphinx==4.4.0
51-
sphinx-rtd-theme==0.5.2
52-
recommonmark==0.6.0
53-
m2r==0.2.1
54-
mistune<2.0.0
50+
Sphinx==7.2.6
51+
sphinx-rtd-theme==2.0.0
52+
myst_parser==2.0.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
use_scm_version={
6-
"version_scheme": "release-branch-semver",
6+
"version_scheme": os.getenv("SCM_VERSION_SCHEME", "release-branch-semver"),
77
"local_scheme": os.getenv("SCM_LOCAL_SCHEME", "node-and-date"),
88
}
99
)

0 commit comments

Comments
 (0)