ophyd-async 0.3a1__tar.gz → 0.3a2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ophyd_async-0.3a2/.copier-answers.yml +17 -0
- ophyd_async-0.3a2/.devcontainer/devcontainer.json +55 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/.git-blame-ignore-revs +2 -0
- ophyd_async-0.3a2/.github/CONTRIBUTING.md +27 -0
- ophyd_async-0.3a2/.github/actions/install_requirements/action.yml +34 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/.github/dependabot.yml +8 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/.github/pages/make_switcher.py +8 -12
- ophyd_async-0.3a2/.github/workflows/_check.yml +27 -0
- ophyd_async-0.3a2/.github/workflows/_dist.yml +36 -0
- ophyd-async-0.3a1/.github/workflows/docs.yml → ophyd_async-0.3a2/.github/workflows/_docs.yml +15 -14
- ophyd_async-0.3a2/.github/workflows/_pypi.yml +17 -0
- ophyd_async-0.3a2/.github/workflows/_release.yml +32 -0
- ophyd_async-0.3a2/.github/workflows/_test.yml +62 -0
- ophyd_async-0.3a2/.github/workflows/_tox.yml +22 -0
- ophyd_async-0.3a2/.github/workflows/ci.yml +59 -0
- ophyd_async-0.3a2/.github/workflows/periodic.yml +13 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/.gitignore +6 -2
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/.pre-commit-config.yaml +9 -9
- ophyd_async-0.3a2/Dockerfile +18 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/PKG-INFO +19 -75
- ophyd_async-0.3a2/README.md +18 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/docs/_templates/custom-class-template.rst +1 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/docs/conf.py +61 -42
- {ophyd-async-0.3a1/docs/user → ophyd_async-0.3a2/docs}/examples/epics_demo.py +1 -0
- ophyd_async-0.3a2/docs/explanations/decisions/0001-record-architecture-decisions.md +18 -0
- ophyd_async-0.3a2/docs/explanations/decisions/0002-switched-to-python-copier-template.md +28 -0
- {ophyd-async-0.3a1/docs/developer → ophyd_async-0.3a2/docs}/explanations/decisions/0003-ophyd-async-migration.rst +1 -1
- ophyd_async-0.3a2/docs/explanations/decisions/COPYME +19 -0
- ophyd_async-0.3a2/docs/explanations/decisions.md +12 -0
- ophyd_async-0.3a2/docs/explanations.md +10 -0
- ophyd_async-0.3a2/docs/how-to/compound-devices.rst +44 -0
- ophyd_async-0.3a2/docs/how-to/contribute.md +2 -0
- {ophyd-async-0.3a1/docs/user → ophyd_async-0.3a2/docs}/how-to/make-a-simple-device.rst +6 -6
- ophyd_async-0.3a2/docs/how-to/write-tests-for-devices.rst +45 -0
- ophyd_async-0.3a2/docs/how-to.md +10 -0
- ophyd_async-0.3a2/docs/index.md +56 -0
- {ophyd-async-0.3a1/docs/user → ophyd_async-0.3a2/docs}/reference/api.rst +1 -1
- ophyd_async-0.3a2/docs/reference.md +12 -0
- ophyd_async-0.3a2/docs/tutorials/installation.md +42 -0
- {ophyd-async-0.3a1/docs/user → ophyd_async-0.3a2/docs}/tutorials/using-existing-devices.rst +14 -4
- ophyd_async-0.3a2/docs/tutorials.md +10 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/pyproject.toml +26 -36
- ophyd_async-0.3a2/src/ophyd_async/__init__.py +3 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/_version.py +1 -1
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/core/__init__.py +12 -2
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/core/_providers.py +3 -1
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/core/detector.py +65 -38
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/core/device.py +8 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/core/flyer.py +10 -19
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/core/signal.py +36 -17
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/core/signal_backend.py +5 -2
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/core/sim_signal_backend.py +28 -16
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/core/standard_readable.py +4 -2
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/core/utils.py +18 -1
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/_backend/_aioca.py +13 -11
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/_backend/_p4p.py +19 -16
- ophyd_async-0.3a2/src/ophyd_async/epics/_backend/common.py +25 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/__init__.py +4 -0
- ophyd_async-0.3a2/src/ophyd_async/epics/areadetector/aravis.py +69 -0
- ophyd_async-0.3a2/src/ophyd_async/epics/areadetector/controllers/aravis_controller.py +73 -0
- ophyd_async-0.3a2/src/ophyd_async/epics/areadetector/controllers/pilatus_controller.py +61 -0
- ophyd_async-0.3a2/src/ophyd_async/epics/areadetector/drivers/aravis_driver.py +154 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/drivers/pilatus_driver.py +4 -4
- ophyd_async-0.3a2/src/ophyd_async/epics/areadetector/pilatus.py +50 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/writers/_hdffile.py +4 -4
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/writers/hdf_writer.py +6 -1
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/demo/__init__.py +33 -3
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/motion/motor.py +20 -14
- ophyd_async-0.3a2/src/ophyd_async/epics/pvi/__init__.py +3 -0
- ophyd_async-0.3a2/src/ophyd_async/epics/pvi/pvi.py +318 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/signal/signal.py +26 -9
- ophyd_async-0.3a2/src/ophyd_async/panda/__init__.py +36 -0
- ophyd_async-0.3a2/src/ophyd_async/panda/_common_blocks.py +49 -0
- ophyd_async-0.3a2/src/ophyd_async/panda/_hdf_panda.py +48 -0
- ophyd-async-0.3a1/src/ophyd_async/panda/panda_controller.py → ophyd_async-0.3a2/src/ophyd_async/panda/_panda_controller.py +3 -7
- ophyd_async-0.3a2/src/ophyd_async/panda/_trigger.py +39 -0
- ophyd_async-0.3a2/src/ophyd_async/panda/writers/__init__.py +3 -0
- ophyd_async-0.3a2/src/ophyd_async/panda/writers/_hdf_writer.py +220 -0
- ophyd_async-0.3a2/src/ophyd_async/panda/writers/_panda_hdf_file.py +58 -0
- ophyd_async-0.3a2/src/ophyd_async/planstubs/__init__.py +5 -0
- ophyd_async-0.3a2/src/ophyd_async/planstubs/prepare_trigger_and_dets.py +57 -0
- ophyd_async-0.3a2/src/ophyd_async/protocols.py +73 -0
- ophyd_async-0.3a2/src/ophyd_async/sim/__init__.py +11 -0
- ophyd_async-0.3a2/src/ophyd_async/sim/demo/__init__.py +3 -0
- ophyd_async-0.3a2/src/ophyd_async/sim/demo/sim_motor.py +116 -0
- ophyd_async-0.3a2/src/ophyd_async/sim/pattern_generator.py +318 -0
- ophyd_async-0.3a2/src/ophyd_async/sim/sim_pattern_detector_control.py +55 -0
- ophyd_async-0.3a2/src/ophyd_async/sim/sim_pattern_detector_writer.py +34 -0
- ophyd_async-0.3a2/src/ophyd_async/sim/sim_pattern_generator.py +37 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async.egg-info/PKG-INFO +19 -75
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async.egg-info/SOURCES.txt +79 -43
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async.egg-info/requires.txt +3 -6
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/conftest.py +23 -3
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/core/test_async_status.py +1 -1
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/core/test_device.py +1 -3
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/core/test_device_collector.py +4 -4
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/core/test_flyer.py +20 -30
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/core/test_signal.py +39 -5
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/core/test_sim.py +14 -14
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/core/test_utils.py +6 -5
- ophyd_async-0.3a2/tests/epics/_backend/test_common.py +58 -0
- ophyd_async-0.3a2/tests/epics/areadetector/test_aravis.py +226 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/areadetector/test_controllers.py +3 -5
- ophyd_async-0.3a2/tests/epics/areadetector/test_pilatus.py +111 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/areadetector/test_scans.py +12 -10
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/areadetector/test_single_trigger_det.py +0 -4
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/areadetector/test_writers.py +3 -3
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/demo/test_demo.py +106 -14
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/demo/test_demo_ad_sim_detector.py +2 -3
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/motion/test_motor.py +12 -16
- ophyd_async-0.3a2/tests/epics/test_pvi.py +142 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/test_signals.py +56 -16
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/panda/db/panda.db +60 -0
- ophyd_async-0.3a2/tests/panda/test_hdf_panda.py +210 -0
- ophyd-async-0.3a1/tests/panda/test_panda.py → ophyd_async-0.3a2/tests/panda/test_panda_connect.py +71 -36
- ophyd_async-0.3a2/tests/panda/test_panda_controller.py +52 -0
- ophyd_async-0.3a2/tests/panda/test_panda_utils.py +71 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/panda/test_table.py +1 -1
- ophyd_async-0.3a2/tests/panda/test_trigger.py +32 -0
- ophyd_async-0.3a2/tests/panda/test_writer.py +202 -0
- ophyd_async-0.3a2/tests/protocols/test_protocols.py +42 -0
- ophyd_async-0.3a2/tests/sim/__init__.py +0 -0
- ophyd_async-0.3a2/tests/sim/conftest.py +15 -0
- ophyd_async-0.3a2/tests/sim/demo/__init__.py +0 -0
- ophyd_async-0.3a2/tests/sim/demo/test_sim_motor.py +56 -0
- ophyd_async-0.3a2/tests/sim/test_pattern_generator.py +72 -0
- ophyd_async-0.3a2/tests/sim/test_sim_detector.py +52 -0
- ophyd_async-0.3a2/tests/sim/test_sim_writer.py +45 -0
- ophyd_async-0.3a2/tests/sim/test_streaming_plan.py +51 -0
- ophyd_async-0.3a2/tests/test_flyer_with_panda.py +230 -0
- ophyd-async-0.3a1/.devcontainer/Dockerfile +0 -37
- ophyd-async-0.3a1/.devcontainer/devcontainer.json +0 -47
- ophyd-async-0.3a1/.github/CONTRIBUTING.rst +0 -34
- ophyd-async-0.3a1/.github/actions/install_requirements/action.yml +0 -58
- ophyd-async-0.3a1/.github/workflows/code.yml +0 -141
- ophyd-async-0.3a1/.github/workflows/docs_clean.yml +0 -43
- ophyd-async-0.3a1/.github/workflows/linkcheck.yml +0 -27
- ophyd-async-0.3a1/README.rst +0 -72
- ophyd-async-0.3a1/docs/developer/explanations/decisions/0001-record-architecture-decisions.rst +0 -26
- ophyd-async-0.3a1/docs/developer/explanations/decisions/0002-switched-to-pip-skeleton.rst +0 -35
- ophyd-async-0.3a1/docs/developer/explanations/decisions.rst +0 -17
- ophyd-async-0.3a1/docs/developer/how-to/build-docs.rst +0 -38
- ophyd-async-0.3a1/docs/developer/how-to/contribute.rst +0 -1
- ophyd-async-0.3a1/docs/developer/how-to/lint.rst +0 -41
- ophyd-async-0.3a1/docs/developer/how-to/make-release.rst +0 -16
- ophyd-async-0.3a1/docs/developer/how-to/pin-requirements.rst +0 -74
- ophyd-async-0.3a1/docs/developer/how-to/run-tests.rst +0 -12
- ophyd-async-0.3a1/docs/developer/how-to/static-analysis.rst +0 -8
- ophyd-async-0.3a1/docs/developer/how-to/test-container.rst +0 -25
- ophyd-async-0.3a1/docs/developer/how-to/update-tools.rst +0 -16
- ophyd-async-0.3a1/docs/developer/index.rst +0 -64
- ophyd-async-0.3a1/docs/developer/reference/standards.rst +0 -142
- ophyd-async-0.3a1/docs/developer/tutorials/dev-install.rst +0 -60
- ophyd-async-0.3a1/docs/index.rst +0 -29
- ophyd-async-0.3a1/docs/user/explanations/docs-structure.rst +0 -18
- ophyd-async-0.3a1/docs/user/how-to/run-container.rst +0 -15
- ophyd-async-0.3a1/docs/user/index.rst +0 -65
- ophyd-async-0.3a1/docs/user/tutorials/installation.rst +0 -43
- ophyd-async-0.3a1/src/ophyd_async/__init__.py +0 -6
- ophyd-async-0.3a1/src/ophyd_async/epics/_backend/common.py +0 -20
- ophyd-async-0.3a1/src/ophyd_async/epics/areadetector/controllers/pilatus_controller.py +0 -49
- ophyd-async-0.3a1/src/ophyd_async/epics/pvi.py +0 -70
- ophyd-async-0.3a1/src/ophyd_async/panda/__init__.py +0 -25
- ophyd-async-0.3a1/src/ophyd_async/panda/panda.py +0 -241
- ophyd-async-0.3a1/tests/panda/test_panda_controller.py +0 -28
- ophyd-async-0.3a1/tests/panda/test_panda_utils.py +0 -38
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/.codecov.yml +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/.github/pages/index.html +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/.mailmap +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/LICENSE +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/docs/_templates/README +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/docs/_templates/custom-module-template.rst +0 -0
- {ophyd-async-0.3a1/docs/developer → ophyd_async-0.3a2/docs}/explanations/decisions/0004-repository-structure.rst +0 -0
- {ophyd-async-0.3a1/docs/developer → ophyd_async-0.3a2/docs}/explanations/decisions/0005-respect-black-line-length.rst +0 -0
- {ophyd-async-0.3a1/docs/developer → ophyd_async-0.3a2/docs}/explanations/decisions/0006-procedural-device-definitions.rst +0 -0
- {ophyd-async-0.3a1/docs/user → ophyd_async-0.3a2/docs}/explanations/event-loop-choice.rst +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/docs/genindex.rst +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/docs/images/bluesky_ophyd_epics_devices_logo.svg +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/docs/images/bluesky_ophyd_logo.svg +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/docs/images/ophyd_favicon.svg +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/setup.cfg +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/__main__.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/core/async_status.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/core/device_save_loader.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/__init__.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/_backend/__init__.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/controllers/__init__.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/controllers/ad_sim_controller.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/drivers/__init__.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/drivers/ad_base.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/single_trigger_det.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/utils.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/writers/__init__.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/writers/_hdfdataset.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/writers/nd_file_hdf.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/areadetector/writers/nd_plugin.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/demo/demo_ad_sim_detector.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/demo/mover.db +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/demo/sensor.db +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/motion/__init__.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/signal/__init__.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async/epics/signal/_epics_transport.py +0 -0
- /ophyd-async-0.3a1/src/ophyd_async/panda/table.py → /ophyd_async-0.3a2/src/ophyd_async/panda/_table.py +0 -0
- /ophyd-async-0.3a1/src/ophyd_async/panda/utils.py → /ophyd_async-0.3a2/src/ophyd_async/panda/_utils.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async.egg-info/dependency_links.txt +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async.egg-info/entry_points.txt +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/src/ophyd_async.egg-info/top_level.txt +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/core/test_device_save_loader.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/areadetector/__init__.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/areadetector/test_drivers.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/areadetector/test_utils.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/motion/__init__.py +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/epics/test_records.db +0 -0
- {ophyd-async-0.3a1 → ophyd_async-0.3a2}/tests/test_cli.py +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Changes here will be overwritten by Copier
|
|
2
|
+
_commit: 2.1.0
|
|
3
|
+
_src_path: gh:DiamondLightSource/python-copier-template
|
|
4
|
+
author_email: tom.cobb@diamond.ac.uk
|
|
5
|
+
author_name: Tom Cobb
|
|
6
|
+
component_owner: ''
|
|
7
|
+
description: Asynchronous Bluesky hardware abstraction code, compatible with control
|
|
8
|
+
systems like EPICS and Tango
|
|
9
|
+
distribution_name: ophyd-async
|
|
10
|
+
docker: false
|
|
11
|
+
docs_type: sphinx
|
|
12
|
+
git_platform: github.com
|
|
13
|
+
github_org: bluesky
|
|
14
|
+
package_name: ophyd_async
|
|
15
|
+
pypi: true
|
|
16
|
+
repo_name: ophyd-async
|
|
17
|
+
type_checker: pyright
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// For format details, see https://containers.dev/implementors/json_reference/
|
|
2
|
+
{
|
|
3
|
+
"name": "Python 3 Developer Container",
|
|
4
|
+
"build": {
|
|
5
|
+
"dockerfile": "../Dockerfile",
|
|
6
|
+
"target": "developer"
|
|
7
|
+
},
|
|
8
|
+
"remoteEnv": {
|
|
9
|
+
// Allow X11 apps to run inside the container
|
|
10
|
+
"DISPLAY": "${localEnv:DISPLAY}"
|
|
11
|
+
},
|
|
12
|
+
"customizations": {
|
|
13
|
+
"vscode": {
|
|
14
|
+
// Set *default* container specific settings.json values on container create.
|
|
15
|
+
"settings": {
|
|
16
|
+
"python.defaultInterpreterPath": "/venv/bin/python",
|
|
17
|
+
"python.testing.unittestEnabled": false,
|
|
18
|
+
"python.testing.pytestEnabled": true,
|
|
19
|
+
"editor.formatOnSave": true,
|
|
20
|
+
"editor.codeActionsOnSave": {
|
|
21
|
+
"source.organizeImports": "explicit"
|
|
22
|
+
},
|
|
23
|
+
"[python]": {
|
|
24
|
+
"editor.defaultFormatter": "charliermarsh.ruff"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
// Add the IDs of extensions you want installed when the container is created.
|
|
28
|
+
"extensions": [
|
|
29
|
+
"ms-python.python",
|
|
30
|
+
"github.vscode-github-actions",
|
|
31
|
+
"tamasfe.even-better-toml",
|
|
32
|
+
"redhat.vscode-yaml",
|
|
33
|
+
"ryanluker.vscode-coverage-gutters",
|
|
34
|
+
"charliermarsh.ruff",
|
|
35
|
+
"ms-azuretools.vscode-docker"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"features": {
|
|
40
|
+
// Some default things like git config
|
|
41
|
+
"ghcr.io/devcontainers/features/common-utils:2": {
|
|
42
|
+
"upgradePackages": false
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"runArgs": [
|
|
46
|
+
// Allow the container to access the host X11 display and EPICS CA
|
|
47
|
+
"--net=host",
|
|
48
|
+
// Make sure SELinux does not disable with access to host filesystems like tmp
|
|
49
|
+
"--security-opt=label=disable"
|
|
50
|
+
],
|
|
51
|
+
// Mount the parent as /workspaces so we can pip install peers as editable
|
|
52
|
+
"workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspaces,type=bind",
|
|
53
|
+
// After the container is created, install the python project in editable form
|
|
54
|
+
"postCreateCommand": "pip install $([ -f dev-requirements.txt ] && echo '-c dev-requirements.txt') -e '.[dev]' && pre-commit install"
|
|
55
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Contribute to the project
|
|
2
|
+
|
|
3
|
+
Contributions and issues are most welcome! All issues and pull requests are
|
|
4
|
+
handled through [GitHub](https://github.com/bluesky/ophyd-async/issues). Also, please check for any existing issues before
|
|
5
|
+
filing a new one. If you have a great idea but it involves big changes, please
|
|
6
|
+
file a ticket before making a pull request! We want to make sure you don't spend
|
|
7
|
+
your time coding something that might not fit the scope of the project.
|
|
8
|
+
|
|
9
|
+
## Issue or Discussion?
|
|
10
|
+
|
|
11
|
+
Github also offers [discussions](https://github.com/bluesky/ophyd-async/discussions) as a place to ask questions and share ideas. If
|
|
12
|
+
your issue is open ended and it is not obvious when it can be "closed", please
|
|
13
|
+
raise it as a discussion instead.
|
|
14
|
+
|
|
15
|
+
## Code Coverage
|
|
16
|
+
|
|
17
|
+
While 100% code coverage does not make a library bug-free, it significantly
|
|
18
|
+
reduces the number of easily caught bugs! Please make sure coverage remains the
|
|
19
|
+
same or is improved by a pull request!
|
|
20
|
+
|
|
21
|
+
## Developer Information
|
|
22
|
+
|
|
23
|
+
It is recommended that developers use a [vscode devcontainer](https://code.visualstudio.com/docs/devcontainers/containers). This repository contains configuration to set up a containerized development environment that suits its own needs.
|
|
24
|
+
|
|
25
|
+
This project was created using the [Diamond Light Source Copier Template](https://github.com/DiamondLightSource/python-copier-template) for Python projects.
|
|
26
|
+
|
|
27
|
+
For more information on common tasks like setting up a developer environment, running the tests, and setting a pre-commit hook, see the template's [How-to guides](https://diamondlightsource.github.io/python-copier-template/2.1.0/how-to.html).
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Install requirements
|
|
2
|
+
description: Install a version of python then call pip install and report what was installed
|
|
3
|
+
inputs:
|
|
4
|
+
python-version:
|
|
5
|
+
description: Python version to install, default is from Dockerfile
|
|
6
|
+
default: "dev"
|
|
7
|
+
pip-install:
|
|
8
|
+
description: Parameters to pass to pip install
|
|
9
|
+
default: "$([ -f dev-requirements.txt ] && echo '-c dev-requirements.txt') -e .[dev]"
|
|
10
|
+
|
|
11
|
+
runs:
|
|
12
|
+
using: composite
|
|
13
|
+
steps:
|
|
14
|
+
- name: Get version of python
|
|
15
|
+
run: |
|
|
16
|
+
PYTHON_VERSION="${{ inputs.python-version }}"
|
|
17
|
+
if [ $PYTHON_VERSION == "dev" ]; then
|
|
18
|
+
PYTHON_VERSION=$(sed -n "s/ARG PYTHON_VERSION=//p" Dockerfile)
|
|
19
|
+
fi
|
|
20
|
+
echo "PYTHON_VERSION=$PYTHON_VERSION" >> "$GITHUB_ENV"
|
|
21
|
+
shell: bash
|
|
22
|
+
|
|
23
|
+
- name: Setup python
|
|
24
|
+
uses: actions/setup-python@v5
|
|
25
|
+
with:
|
|
26
|
+
python-version: ${{ env.PYTHON_VERSION }}
|
|
27
|
+
|
|
28
|
+
- name: Install packages
|
|
29
|
+
run: pip install ${{ inputs.pip-install }}
|
|
30
|
+
shell: bash
|
|
31
|
+
|
|
32
|
+
- name: Report what was installed
|
|
33
|
+
run: pip freeze
|
|
34
|
+
shell: bash
|
|
@@ -9,8 +9,16 @@ updates:
|
|
|
9
9
|
directory: "/"
|
|
10
10
|
schedule:
|
|
11
11
|
interval: "weekly"
|
|
12
|
+
groups:
|
|
13
|
+
actions:
|
|
14
|
+
patterns:
|
|
15
|
+
- "*"
|
|
12
16
|
|
|
13
17
|
- package-ecosystem: "pip"
|
|
14
18
|
directory: "/"
|
|
15
19
|
schedule:
|
|
16
20
|
interval: "weekly"
|
|
21
|
+
groups:
|
|
22
|
+
dev-dependencies:
|
|
23
|
+
patterns:
|
|
24
|
+
- "*"
|
|
@@ -24,7 +24,7 @@ def get_sorted_tags_list() -> List[str]:
|
|
|
24
24
|
return report_output(stdout, "Tags list")
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
def get_versions(ref: str, add: Optional[str]
|
|
27
|
+
def get_versions(ref: str, add: Optional[str]) -> List[str]:
|
|
28
28
|
"""Generate the file containing the list of all GitHub Pages builds."""
|
|
29
29
|
# Get the directories (i.e. builds) from the GitHub Pages branch
|
|
30
30
|
try:
|
|
@@ -36,9 +36,6 @@ def get_versions(ref: str, add: Optional[str], remove: Optional[str]) -> List[st
|
|
|
36
36
|
# Add and remove from the list of builds
|
|
37
37
|
if add:
|
|
38
38
|
builds.add(add)
|
|
39
|
-
if remove:
|
|
40
|
-
assert remove in builds, f"Build '{remove}' not in {sorted(builds)}"
|
|
41
|
-
builds.remove(remove)
|
|
42
39
|
|
|
43
40
|
# Get a sorted list of tags
|
|
44
41
|
tags = get_sorted_tags_list()
|
|
@@ -58,9 +55,12 @@ def get_versions(ref: str, add: Optional[str], remove: Optional[str]) -> List[st
|
|
|
58
55
|
|
|
59
56
|
def write_json(path: Path, repository: str, versions: str):
|
|
60
57
|
org, repo_name = repository.split("/")
|
|
58
|
+
pages_url = f"https://{org}.github.io"
|
|
59
|
+
if repo_name != f"{org}.github.io":
|
|
60
|
+
# Only add the repo name if it isn't the source for the org pages site
|
|
61
|
+
pages_url += f"/{repo_name}"
|
|
61
62
|
struct = [
|
|
62
|
-
|
|
63
|
-
for version in versions
|
|
63
|
+
{"version": version, "url": f"{pages_url}/{version}/"} for version in versions
|
|
64
64
|
]
|
|
65
65
|
text = json.dumps(struct, indent=2)
|
|
66
66
|
print(f"JSON switcher:\n{text}")
|
|
@@ -69,16 +69,12 @@ def write_json(path: Path, repository: str, versions: str):
|
|
|
69
69
|
|
|
70
70
|
def main(args=None):
|
|
71
71
|
parser = ArgumentParser(
|
|
72
|
-
description="Make a versions.
|
|
72
|
+
description="Make a versions.json file from gh-pages directories"
|
|
73
73
|
)
|
|
74
74
|
parser.add_argument(
|
|
75
75
|
"--add",
|
|
76
76
|
help="Add this directory to the list of existing directories",
|
|
77
77
|
)
|
|
78
|
-
parser.add_argument(
|
|
79
|
-
"--remove",
|
|
80
|
-
help="Remove this directory from the list of existing directories",
|
|
81
|
-
)
|
|
82
78
|
parser.add_argument(
|
|
83
79
|
"repository",
|
|
84
80
|
help="The GitHub org and repository name: ORG/REPO",
|
|
@@ -91,7 +87,7 @@ def main(args=None):
|
|
|
91
87
|
args = parser.parse_args(args)
|
|
92
88
|
|
|
93
89
|
# Write the versions file
|
|
94
|
-
versions = get_versions("origin/gh-pages", args.add
|
|
90
|
+
versions = get_versions("origin/gh-pages", args.add)
|
|
95
91
|
write_json(args.output, args.repository, versions)
|
|
96
92
|
|
|
97
93
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
on:
|
|
2
|
+
workflow_call:
|
|
3
|
+
outputs:
|
|
4
|
+
branch-pr:
|
|
5
|
+
description: The PR number if the branch is in one
|
|
6
|
+
value: ${{ jobs.pr.outputs.branch-pr }}
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
pr:
|
|
10
|
+
runs-on: "ubuntu-latest"
|
|
11
|
+
outputs:
|
|
12
|
+
branch-pr: ${{ steps.script.outputs.result }}
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/github-script@v7
|
|
15
|
+
id: script
|
|
16
|
+
if: github.event_name == 'push'
|
|
17
|
+
with:
|
|
18
|
+
script: |
|
|
19
|
+
const prs = await github.rest.pulls.list({
|
|
20
|
+
owner: context.repo.owner,
|
|
21
|
+
repo: context.repo.repo,
|
|
22
|
+
head: context.repo.owner + ':${{ github.ref_name }}'
|
|
23
|
+
})
|
|
24
|
+
if (prs.data.length) {
|
|
25
|
+
console.log(`::notice ::Skipping CI on branch push as it is already run in PR #${prs.data[0]["number"]}`)
|
|
26
|
+
return prs.data[0]["number"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
on:
|
|
2
|
+
workflow_call:
|
|
3
|
+
|
|
4
|
+
jobs:
|
|
5
|
+
build:
|
|
6
|
+
runs-on: "ubuntu-latest"
|
|
7
|
+
|
|
8
|
+
steps:
|
|
9
|
+
- name: Checkout
|
|
10
|
+
uses: actions/checkout@v4
|
|
11
|
+
with:
|
|
12
|
+
# Need this to get version number from last tag
|
|
13
|
+
fetch-depth: 0
|
|
14
|
+
|
|
15
|
+
- name: Build sdist and wheel
|
|
16
|
+
run: >
|
|
17
|
+
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) &&
|
|
18
|
+
pipx run build
|
|
19
|
+
|
|
20
|
+
- name: Upload sdist and wheel as artifacts
|
|
21
|
+
uses: actions/upload-artifact@v4
|
|
22
|
+
with:
|
|
23
|
+
name: dist
|
|
24
|
+
path: dist
|
|
25
|
+
|
|
26
|
+
- name: Check for packaging errors
|
|
27
|
+
run: pipx run twine check --strict dist/*
|
|
28
|
+
|
|
29
|
+
- name: Install produced wheel
|
|
30
|
+
uses: ./.github/actions/install_requirements
|
|
31
|
+
with:
|
|
32
|
+
pip-install: dist/*.whl
|
|
33
|
+
|
|
34
|
+
- name: Test module --version works using the installed wheel
|
|
35
|
+
# If more than one module in src/ replace with module name to test
|
|
36
|
+
run: python -m $(ls --hide='*.egg-info' src | head -1) --version
|
ophyd-async-0.3a1/.github/workflows/docs.yml → ophyd_async-0.3a2/.github/workflows/_docs.yml
RENAMED
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
name: Docs CI
|
|
2
|
-
|
|
3
1
|
on:
|
|
4
|
-
|
|
5
|
-
pull_request:
|
|
2
|
+
workflow_call:
|
|
6
3
|
|
|
7
4
|
jobs:
|
|
8
|
-
|
|
9
|
-
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
|
|
5
|
+
build:
|
|
10
6
|
runs-on: ubuntu-latest
|
|
11
7
|
|
|
12
8
|
steps:
|
|
13
9
|
- name: Avoid git conflicts when tag and branch pushed at same time
|
|
14
|
-
if:
|
|
10
|
+
if: github.ref_type == 'tag'
|
|
15
11
|
run: sleep 60
|
|
16
12
|
|
|
17
13
|
- name: Checkout
|
|
18
|
-
uses: actions/checkout@
|
|
14
|
+
uses: actions/checkout@v4
|
|
19
15
|
with:
|
|
20
16
|
# Need this to get version number from last tag
|
|
21
17
|
fetch-depth: 0
|
|
22
18
|
|
|
23
19
|
- name: Install system packages
|
|
24
|
-
# Can delete this if you don't use graphviz in your docs
|
|
25
20
|
run: sudo apt-get install graphviz
|
|
26
21
|
|
|
27
22
|
- name: Install python packages
|
|
28
23
|
uses: ./.github/actions/install_requirements
|
|
29
|
-
with:
|
|
30
|
-
requirements_file: requirements-dev-3.x.txt
|
|
31
|
-
install_options: -e .[dev]
|
|
32
24
|
|
|
33
25
|
- name: Build docs
|
|
34
26
|
run: tox -e docs
|
|
35
27
|
|
|
28
|
+
- name: Remove environment.pickle
|
|
29
|
+
run: rm build/html/.doctrees/environment.pickle
|
|
30
|
+
|
|
31
|
+
- name: Upload built docs artifact
|
|
32
|
+
uses: actions/upload-artifact@v4
|
|
33
|
+
with:
|
|
34
|
+
name: docs
|
|
35
|
+
path: build
|
|
36
|
+
|
|
36
37
|
- name: Sanitize ref name for docs version
|
|
37
38
|
run: echo "DOCS_VERSION=${GITHUB_REF_NAME//[^A-Za-z0-9._-]/_}" >> $GITHUB_ENV
|
|
38
39
|
|
|
@@ -43,11 +44,11 @@ jobs:
|
|
|
43
44
|
run: python .github/pages/make_switcher.py --add $DOCS_VERSION ${{ github.repository }} .github/pages/switcher.json
|
|
44
45
|
|
|
45
46
|
- name: Publish Docs to gh-pages
|
|
46
|
-
if: github.
|
|
47
|
+
if: github.ref_type == 'tag' || github.ref_name == 'main'
|
|
47
48
|
# We pin to the SHA, not the tag, for security reasons.
|
|
48
49
|
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
|
|
49
50
|
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
|
|
50
51
|
with:
|
|
51
52
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
52
53
|
publish_dir: .github/pages
|
|
53
|
-
keep_files: true
|
|
54
|
+
keep_files: true
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
on:
|
|
2
|
+
workflow_call:
|
|
3
|
+
|
|
4
|
+
jobs:
|
|
5
|
+
upload:
|
|
6
|
+
runs-on: ubuntu-latest
|
|
7
|
+
environment: release
|
|
8
|
+
|
|
9
|
+
steps:
|
|
10
|
+
- name: Download dist artifact
|
|
11
|
+
uses: actions/download-artifact@v4
|
|
12
|
+
with:
|
|
13
|
+
name: dist
|
|
14
|
+
path: dist
|
|
15
|
+
|
|
16
|
+
- name: Publish to PyPI using trusted publishing
|
|
17
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
on:
|
|
2
|
+
workflow_call:
|
|
3
|
+
|
|
4
|
+
jobs:
|
|
5
|
+
artifacts:
|
|
6
|
+
runs-on: ubuntu-latest
|
|
7
|
+
|
|
8
|
+
steps:
|
|
9
|
+
- name: Download artifacts
|
|
10
|
+
uses: actions/download-artifact@v4
|
|
11
|
+
with:
|
|
12
|
+
merge-multiple: true
|
|
13
|
+
|
|
14
|
+
- name: Zip up docs
|
|
15
|
+
run: |
|
|
16
|
+
set -vxeuo pipefail
|
|
17
|
+
if [ -d html ]; then
|
|
18
|
+
mv html $GITHUB_REF_NAME
|
|
19
|
+
zip -r docs.zip $GITHUB_REF_NAME
|
|
20
|
+
rm -rf $GITHUB_REF_NAME
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
- name: Create GitHub Release
|
|
24
|
+
# We pin to the SHA, not the tag, for security reasons.
|
|
25
|
+
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
|
|
26
|
+
uses: softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564 # v2.0.4
|
|
27
|
+
with:
|
|
28
|
+
prerelease: ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') }}
|
|
29
|
+
files: "*"
|
|
30
|
+
generate_release_notes: true
|
|
31
|
+
env:
|
|
32
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
on:
|
|
2
|
+
workflow_call:
|
|
3
|
+
inputs:
|
|
4
|
+
python-version:
|
|
5
|
+
type: string
|
|
6
|
+
description: The version of python to install
|
|
7
|
+
required: true
|
|
8
|
+
runs-on:
|
|
9
|
+
type: string
|
|
10
|
+
description: The runner to run this job on
|
|
11
|
+
required: true
|
|
12
|
+
secrets:
|
|
13
|
+
CODECOV_TOKEN:
|
|
14
|
+
required: true
|
|
15
|
+
|
|
16
|
+
env:
|
|
17
|
+
# https://github.com/pytest-dev/pytest/issues/2042
|
|
18
|
+
PY_IGNORE_IMPORTMISMATCH: "1"
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
run:
|
|
22
|
+
runs-on: ${{ inputs.runs-on }}
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- name: Checkout
|
|
26
|
+
uses: actions/checkout@v4
|
|
27
|
+
with:
|
|
28
|
+
# Need this to get version number from last tag
|
|
29
|
+
fetch-depth: 0
|
|
30
|
+
|
|
31
|
+
- if: inputs.python-version == 'dev'
|
|
32
|
+
name: Install dev versions of python packages
|
|
33
|
+
uses: ./.github/actions/install_requirements
|
|
34
|
+
|
|
35
|
+
- if: inputs.python-version == 'dev'
|
|
36
|
+
name: Write the requirements as an artifact
|
|
37
|
+
run: pip freeze --exclude-editable > /tmp/dev-requirements.txt
|
|
38
|
+
|
|
39
|
+
- if: inputs.python-version == 'dev'
|
|
40
|
+
name: Upload dev-requirements.txt
|
|
41
|
+
uses: actions/upload-artifact@v4
|
|
42
|
+
with:
|
|
43
|
+
name: dev-requirements
|
|
44
|
+
path: /tmp/dev-requirements.txt
|
|
45
|
+
|
|
46
|
+
- if: inputs.python-version != 'dev'
|
|
47
|
+
name: Install latest versions of python packages
|
|
48
|
+
uses: ./.github/actions/install_requirements
|
|
49
|
+
with:
|
|
50
|
+
python-version: ${{ inputs.python-version }}
|
|
51
|
+
pip-install: ".[dev]"
|
|
52
|
+
|
|
53
|
+
- name: Run tests
|
|
54
|
+
run: tox -e tests
|
|
55
|
+
|
|
56
|
+
- name: Upload coverage to Codecov
|
|
57
|
+
uses: codecov/codecov-action@v4
|
|
58
|
+
with:
|
|
59
|
+
name: ${{ inputs.python-version }}/${{ inputs.runs-on }}
|
|
60
|
+
files: cov.xml
|
|
61
|
+
env:
|
|
62
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
on:
|
|
2
|
+
workflow_call:
|
|
3
|
+
inputs:
|
|
4
|
+
tox:
|
|
5
|
+
type: string
|
|
6
|
+
description: What to run under tox
|
|
7
|
+
required: true
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
run:
|
|
12
|
+
runs-on: "ubuntu-latest"
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Install python packages
|
|
19
|
+
uses: ./.github/actions/install_requirements
|
|
20
|
+
|
|
21
|
+
- name: Run tox
|
|
22
|
+
run: tox -e ${{ inputs.tox }}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
check:
|
|
9
|
+
uses: ./.github/workflows/_check.yml
|
|
10
|
+
|
|
11
|
+
lint:
|
|
12
|
+
needs: check
|
|
13
|
+
if: needs.check.outputs.branch-pr == ''
|
|
14
|
+
uses: ./.github/workflows/_tox.yml
|
|
15
|
+
with:
|
|
16
|
+
tox: pre-commit,type-checking
|
|
17
|
+
|
|
18
|
+
test:
|
|
19
|
+
needs: check
|
|
20
|
+
if: needs.check.outputs.branch-pr == ''
|
|
21
|
+
strategy:
|
|
22
|
+
matrix:
|
|
23
|
+
runs-on: ["ubuntu-latest"] # can add windows-latest, macos-latest
|
|
24
|
+
python-version: ["3.10","3.11"] # 3.12 should be added when p4p is updated
|
|
25
|
+
include:
|
|
26
|
+
# Include one that runs in the dev environment
|
|
27
|
+
- runs-on: "ubuntu-latest"
|
|
28
|
+
python-version: "dev"
|
|
29
|
+
fail-fast: false
|
|
30
|
+
uses: ./.github/workflows/_test.yml
|
|
31
|
+
with:
|
|
32
|
+
runs-on: ${{ matrix.runs-on }}
|
|
33
|
+
python-version: ${{ matrix.python-version }}
|
|
34
|
+
secrets:
|
|
35
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
36
|
+
|
|
37
|
+
docs:
|
|
38
|
+
needs: check
|
|
39
|
+
if: needs.check.outputs.branch-pr == ''
|
|
40
|
+
uses: ./.github/workflows/_docs.yml
|
|
41
|
+
|
|
42
|
+
dist:
|
|
43
|
+
needs: check
|
|
44
|
+
if: needs.check.outputs.branch-pr == ''
|
|
45
|
+
uses: ./.github/workflows/_dist.yml
|
|
46
|
+
|
|
47
|
+
pypi:
|
|
48
|
+
if: github.ref_type == 'tag'
|
|
49
|
+
needs: dist
|
|
50
|
+
uses: ./.github/workflows/_pypi.yml
|
|
51
|
+
permissions:
|
|
52
|
+
id-token: write
|
|
53
|
+
|
|
54
|
+
release:
|
|
55
|
+
if: github.ref_type == 'tag'
|
|
56
|
+
needs: [dist, docs]
|
|
57
|
+
uses: ./.github/workflows/_release.yml
|
|
58
|
+
permissions:
|
|
59
|
+
contents: write
|
|
@@ -66,7 +66,7 @@ venv*
|
|
|
66
66
|
# further build artifacts
|
|
67
67
|
lockfiles/
|
|
68
68
|
|
|
69
|
-
#
|
|
69
|
+
# Original File
|
|
70
70
|
*.pyc
|
|
71
71
|
*.swp
|
|
72
72
|
*.bak
|
|
@@ -80,8 +80,12 @@ lockfiles/
|
|
|
80
80
|
.ipynb_checkpoints
|
|
81
81
|
|
|
82
82
|
# generated docs
|
|
83
|
-
docs
|
|
83
|
+
docs/generated
|
|
84
84
|
docs/savefig
|
|
85
85
|
|
|
86
86
|
# generated version number
|
|
87
87
|
ophyd_async/_version.py
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
# ruff cache
|
|
91
|
+
.ruff_cache/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
repos:
|
|
2
2
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
-
rev: v4.
|
|
3
|
+
rev: v4.5.0
|
|
4
4
|
hooks:
|
|
5
5
|
- id: check-added-large-files
|
|
6
6
|
- id: check-yaml
|
|
@@ -8,16 +8,16 @@ repos:
|
|
|
8
8
|
|
|
9
9
|
- repo: local
|
|
10
10
|
hooks:
|
|
11
|
-
- id:
|
|
12
|
-
name:
|
|
13
|
-
stages: [commit]
|
|
11
|
+
- id: ruff
|
|
12
|
+
name: lint with ruff
|
|
14
13
|
language: system
|
|
15
|
-
entry:
|
|
14
|
+
entry: ruff check --force-exclude
|
|
16
15
|
types: [python]
|
|
16
|
+
require_serial: true
|
|
17
17
|
|
|
18
|
-
- id:
|
|
19
|
-
name:
|
|
20
|
-
stages: [commit]
|
|
18
|
+
- id: ruff-format
|
|
19
|
+
name: format with ruff
|
|
21
20
|
language: system
|
|
22
|
-
entry:
|
|
21
|
+
entry: ruff format --force-exclude
|
|
23
22
|
types: [python]
|
|
23
|
+
require_serial: true
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# The devcontainer should use the developer target and run as root with podman
|
|
2
|
+
# or docker with user namespaces.
|
|
3
|
+
ARG PYTHON_VERSION=3.11
|
|
4
|
+
FROM python:${PYTHON_VERSION} as developer
|
|
5
|
+
|
|
6
|
+
# Allow Qt 6 (pyside6) UI to work in the container - also see apt-get below
|
|
7
|
+
ENV MPLBACKEND=QtAgg
|
|
8
|
+
|
|
9
|
+
# Add any system dependencies for the developer/build environment here
|
|
10
|
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
11
|
+
graphviz \
|
|
12
|
+
libxcb-cursor0 \
|
|
13
|
+
qt6-base-dev \
|
|
14
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
15
|
+
|
|
16
|
+
# Set up a virtual environment and put it in PATH
|
|
17
|
+
RUN python -m venv /venv
|
|
18
|
+
ENV PATH=/venv/bin:$PATH
|