mx-bluesky 0.0.1__tar.gz → 0.3.1__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.
- mx_bluesky-0.3.1/.copier-answers.yml +16 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/.devcontainer/Dockerfile +1 -1
- mx_bluesky-0.3.1/.devcontainer/devcontainer.json +46 -0
- mx_bluesky-0.3.1/.github/CONTRIBUTING.md +27 -0
- mx_bluesky-0.3.1/.github/ISSUE_TEMPLATE/bug_report.md +21 -0
- mx_bluesky-0.3.1/.github/ISSUE_TEMPLATE/issue.md +13 -0
- mx_bluesky-0.3.1/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +8 -0
- mx_bluesky-0.3.1/.github/actions/install_requirements/action.yml +34 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/.github/dependabot.yml +8 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/.github/pages/index.html +1 -1
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/.github/pages/make_switcher.py +13 -18
- mx_bluesky-0.3.1/.github/workflows/_check.yml +27 -0
- mx_bluesky-0.3.1/.github/workflows/_container.yml +60 -0
- mx_bluesky-0.3.1/.github/workflows/_dist.yml +36 -0
- mx_bluesky-0.0.1/.github/workflows/docs.yml → mx_bluesky-0.3.1/.github/workflows/_docs.yml +15 -15
- mx_bluesky-0.3.1/.github/workflows/_pypi.yml +17 -0
- mx_bluesky-0.3.1/.github/workflows/_release.yml +32 -0
- mx_bluesky-0.3.1/.github/workflows/_test.yml +62 -0
- mx_bluesky-0.3.1/.github/workflows/_tox.yml +22 -0
- mx_bluesky-0.3.1/.github/workflows/ci.yml +67 -0
- mx_bluesky-0.3.1/.github/workflows/periodic.yml +13 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/.gitignore +4 -2
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/.pre-commit-config.yaml +13 -15
- mx_bluesky-0.3.1/.vscode/extensions.json +5 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/.vscode/launch.json +4 -5
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/.vscode/mx-bluesky.code-workspace +1 -1
- mx_bluesky-0.3.1/.vscode/settings.json +27 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/.vscode/tasks.json +1 -1
- mx_bluesky-0.3.1/Dockerfile +29 -0
- {mx_bluesky-0.0.1/src/mx_bluesky.egg-info → mx_bluesky-0.3.1}/PKG-INFO +37 -26
- mx_bluesky-0.3.1/README.rst +49 -0
- mx_bluesky-0.3.1/catalog-info.yaml +16 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/deploy/deploy_edm_for_ssx.sh +11 -9
- mx_bluesky-0.3.1/deploy/deploy_mxbluesky.py +189 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/dls_dev_setup.sh +11 -1
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/docs/conf.py +2 -2
- {mx_bluesky-0.0.1/docs/developer → mx_bluesky-0.3.1/docs/developer/general}/explanations/decisions.rst +1 -1
- {mx_bluesky-0.0.1/docs/developer → mx_bluesky-0.3.1/docs/developer/general}/how-to/build-docs.rst +1 -1
- mx_bluesky-0.3.1/docs/developer/general/how-to/contribute.rst +4 -0
- mx_bluesky-0.3.1/docs/developer/general/how-to/create-a-release.rst +28 -0
- mx_bluesky-0.3.1/docs/developer/general/how-to/deploy-a-release.rst +25 -0
- mx_bluesky-0.3.1/docs/developer/general/how-to/get-started.rst +26 -0
- {mx_bluesky-0.0.1/docs/developer → mx_bluesky-0.3.1/docs/developer/general}/how-to/lint.rst +0 -2
- {mx_bluesky-0.0.1/docs/developer → mx_bluesky-0.3.1/docs/developer/general}/index.rst +7 -6
- {mx_bluesky-0.0.1/docs/developer → mx_bluesky-0.3.1/docs/developer/general}/reference/standards.rst +1 -1
- {mx_bluesky-0.0.1/docs/developer → mx_bluesky-0.3.1/docs/developer/general}/tutorials/dev-install.rst +3 -3
- mx_bluesky-0.3.1/docs/developer/index.rst +43 -0
- mx_bluesky-0.3.1/docs/developer/murko-integration/explanations/architecture.rst +18 -0
- mx_bluesky-0.3.1/docs/developer/murko-integration/images/murko_setup.drawio.png +0 -0
- mx_bluesky-0.3.1/docs/developer/murko-integration/index.rst +22 -0
- mx_bluesky-0.3.1/docs/developer/serial-crystallography-on-i24/explanations/decisions/0001-record-architecture-decisions.rst +26 -0
- mx_bluesky-0.3.1/docs/developer/serial-crystallography-on-i24/explanations/decisions.rst +17 -0
- mx_bluesky-0.3.1/docs/developer/serial-crystallography-on-i24/how-to/environment-setup.rst +49 -0
- mx_bluesky-0.3.1/docs/developer/serial-crystallography-on-i24/how-to/run-a-collection.rst +162 -0
- mx_bluesky-0.3.1/docs/developer/serial-crystallography-on-i24/how-to/stage-pmac-moves.rst +108 -0
- mx_bluesky-0.3.1/docs/developer/serial-crystallography-on-i24/index.rst +65 -0
- mx_bluesky-0.3.1/docs/developer/serial-crystallography-on-i24/project-planning/roadmap.rst +104 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/docs/images/dls-logo.svg +1 -1
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/docs/index.rst +2 -2
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/docs/user/how-to/run-container.rst +3 -3
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/docs/user/reference/api.rst +1 -1
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/docs/user/tutorials/installation.rst +3 -3
- mx_bluesky-0.3.1/pyproject.toml +145 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/src/mx_bluesky/__main__.py +1 -2
- mx_bluesky-0.3.1/src/mx_bluesky/_version.py +16 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/src/mx_bluesky/example.py +4 -4
- mx_bluesky-0.3.1/src/mx_bluesky/i04/__init__.py +3 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i04/callbacks/murko_callback.py +45 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i04/thawing_plan.py +84 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/__init__.py +49 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/blueapi_config.yaml +12 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/dcid.py +53 -41
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/extruder/EX-gui-edm/DetStage.edl +1 -2
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/extruder/EX-gui-edm/DiamondExtruder-I24-py3v1.edl +28 -32
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/extruder/EX-gui-edm/microdrop_alignment.edl +0 -1
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/extruder/i24ssx_Extruder_Collect_py3v2.py +513 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/FT-gui-edm/CustomChip_py3v1.edl +1 -2
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/FT-gui-edm/DetStage.edl +1 -2
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/FT-gui-edm/DiamondChipI24-py3v1.edl +46 -41
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/FT-gui-edm/ME14E-GeneralPurpose.edl +0 -1
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/FT-gui-edm/MappingLite-oxford_py3v1.edl +10 -11
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/FT-gui-edm/PMAC_Command.edl +0 -1
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/FT-gui-edm/Shutter_Control.edl +0 -1
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/FT-gui-edm/microdrop_alignment.edl +0 -1
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/FT-gui-edm/nudgechip.edl +0 -1
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/FT-gui-edm/pumpprobe-py3v1.edl +300 -119
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/fixed_target/FT-gui-edm/short1-laser.png +0 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/fixed_target/FT-gui-edm/short2-laser.png +0 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/ft_utils.py +24 -1
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/fixed_target/i24ssx_Chip_Collect_py3v1.py +798 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/i24ssx_Chip_Manager_py3v1.py +374 -408
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/i24ssx_Chip_Mapping_py3v1.py +34 -40
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/fixed_target/i24ssx_Chip_StartUp_py3v1.py +325 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/fixed_target/i24ssx_moveonclick.py +40 -45
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/log.py +156 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/parameters/__init__.py +15 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/parameters/constants.py +47 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/parameters/experiment_parameters.py +124 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/parameters/fixed_target/cs/cs_maker.json +9 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/parameters/fixed_target/cs/motor_direction.txt +1 -1
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/parameters/fixed_target/pvar_files/minichip-oxford.pvar +1 -1
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/parameters/utils.py +40 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/run_extruder.sh +19 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/run_fixed_target.sh +22 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/run_serial.py +36 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/set_visit_directory.sh +6 -1
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/setup_beamline/pv.py +1 -62
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/setup_beamline/pv_abstract.py +6 -7
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/setup_beamline/setup_beamline.py +90 -269
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/setup_beamline/setup_detector.py +47 -40
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/setup_beamline/setup_zebra_plans.py +459 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/start_blueapi.sh +28 -0
- mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/write_nexus.py +102 -0
- mx_bluesky-0.3.1/src/mx_bluesky/parameters/__init__.py +31 -0
- mx_bluesky-0.3.1/src/mx_bluesky/parameters/components.py +200 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1/src/mx_bluesky.egg-info}/PKG-INFO +38 -27
- mx_bluesky-0.3.1/src/mx_bluesky.egg-info/SOURCES.txt +163 -0
- mx_bluesky-0.3.1/src/mx_bluesky.egg-info/entry_points.txt +4 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/src/mx_bluesky.egg-info/requires.txt +13 -1
- mx_bluesky-0.3.1/start_jupyter.sh +2 -0
- mx_bluesky-0.3.1/tests/conftest.py +31 -0
- mx_bluesky-0.3.1/tests/i04/callbacks/test_murko_callback.py +107 -0
- mx_bluesky-0.3.1/tests/i04/test_thawing.py +215 -0
- mx_bluesky-0.3.1/tests/i24/serial/conftest.py +111 -0
- mx_bluesky-0.3.1/tests/i24/serial/extruder/test_extruder_collect.py +293 -0
- mx_bluesky-0.3.1/tests/i24/serial/fixed_target/__init__.py +0 -0
- mx_bluesky-0.3.1/tests/i24/serial/fixed_target/conftest.py +23 -0
- mx_bluesky-0.3.1/tests/i24/serial/fixed_target/test_chip_manager.py +336 -0
- mx_bluesky-0.3.1/tests/i24/serial/fixed_target/test_chip_startup.py +42 -0
- mx_bluesky-0.3.1/tests/i24/serial/fixed_target/test_ft_collect.py +243 -0
- mx_bluesky-0.3.1/tests/i24/serial/fixed_target/test_moveonclick.py +67 -0
- mx_bluesky-0.3.1/tests/i24/serial/parameters/test_utils.py +38 -0
- mx_bluesky-0.3.1/tests/i24/serial/setup_beamline/__init__.py +0 -0
- {mx_bluesky-0.0.1/tests/I24 → mx_bluesky-0.3.1/tests/i24}/serial/setup_beamline/test_pv_abstract.py +1 -1
- mx_bluesky-0.3.1/tests/i24/serial/setup_beamline/test_setup_beamline.py +57 -0
- mx_bluesky-0.3.1/tests/i24/serial/setup_beamline/test_setup_detector.py +57 -0
- mx_bluesky-0.3.1/tests/i24/serial/setup_beamline/test_zebra_plans.py +182 -0
- {mx_bluesky-0.0.1/tests/I24 → mx_bluesky-0.3.1/tests/i24}/serial/test_dcid.py +4 -4
- mx_bluesky-0.3.1/tests/i24/serial/test_log.py +68 -0
- mx_bluesky-0.3.1/tests/test_example.py +16 -0
- mx_bluesky-0.0.1/.devcontainer/devcontainer.json +0 -47
- mx_bluesky-0.0.1/.github/CONTRIBUTING.rst +0 -35
- mx_bluesky-0.0.1/.github/actions/install_requirements/action.yml +0 -58
- mx_bluesky-0.0.1/.github/workflows/code.yml +0 -205
- mx_bluesky-0.0.1/.github/workflows/docs_clean.yml +0 -43
- mx_bluesky-0.0.1/.github/workflows/linkcheck.yml +0 -30
- mx_bluesky-0.0.1/.vscode/extensions.json +0 -10
- mx_bluesky-0.0.1/.vscode/settings.json +0 -21
- mx_bluesky-0.0.1/README.rst +0 -50
- mx_bluesky-0.0.1/docs/developer/how-to/contribute.rst +0 -1
- mx_bluesky-0.0.1/docs/developer/how-to/make-release.rst +0 -16
- mx_bluesky-0.0.1/pyproject.toml +0 -123
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/extruder/i24ssx_Extruder_Collect_py3v2.py +0 -476
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/fixed_target/FT-gui-edm/ME14E-motors.edl +0 -1874
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/fixed_target/i24ssx_Chip_Collect_py3v1.py +0 -695
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/fixed_target/i24ssx_Chip_StartUp_py3v1.py +0 -463
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/log.py +0 -101
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/parameters/__init__.py +0 -5
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/parameters/constants.py +0 -39
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/parameters/fixed_target/cs/cs_maker.json +0 -9
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/parameters/fixed_target/cs/fiducial_1.txt +0 -4
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/parameters/fixed_target/cs/fiducial_2.txt +0 -4
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/parameters/fixed_target/litemaps/currentchip.map +0 -81
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/parameters/fixed_target/parameters.txt +0 -13
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/run_serial.py +0 -52
- mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/write_nexus.py +0 -113
- mx_bluesky-0.0.1/src/mx_bluesky/_version.py +0 -4
- mx_bluesky-0.0.1/src/mx_bluesky.egg-info/SOURCES.txt +0 -118
- mx_bluesky-0.0.1/src/mx_bluesky.egg-info/entry_points.txt +0 -4
- mx_bluesky-0.0.1/start_jupyter.sh +0 -2
- mx_bluesky-0.0.1/tests/I24/serial/extruder/test_extruder_collect.py +0 -105
- mx_bluesky-0.0.1/tests/I24/serial/fixed_target/test_chip_manager.py +0 -189
- mx_bluesky-0.0.1/tests/I24/serial/fixed_target/test_chip_startup.py +0 -81
- mx_bluesky-0.0.1/tests/I24/serial/fixed_target/test_ft_collect.py +0 -100
- mx_bluesky-0.0.1/tests/I24/serial/fixed_target/test_moveonclick.py +0 -50
- mx_bluesky-0.0.1/tests/I24/serial/setup_beamline/test_setup_beamline.py +0 -78
- mx_bluesky-0.0.1/tests/I24/serial/setup_beamline/test_setup_detector.py +0 -58
- mx_bluesky-0.0.1/tests/I24/serial/test_log.py +0 -46
- mx_bluesky-0.0.1/tests/test_example.py +0 -16
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/LICENSE +0 -0
- {mx_bluesky-0.0.1/docs/developer → mx_bluesky-0.3.1/docs/developer/general}/explanations/decisions/0001-record-architecture-decisions.rst +0 -0
- {mx_bluesky-0.0.1/docs/developer → mx_bluesky-0.3.1/docs/developer/general}/how-to/run-tests.rst +0 -0
- {mx_bluesky-0.0.1/docs/developer → mx_bluesky-0.3.1/docs/developer/general}/how-to/static-analysis.rst +0 -0
- {mx_bluesky-0.0.1/docs/developer → mx_bluesky-0.3.1/docs/developer/general}/how-to/update-tools.rst +0 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/docs/genindex.rst +0 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/docs/images/dls-favicon.ico +0 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/docs/user/explanations/docs-structure.rst +0 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/docs/user/index.rst +0 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/setup.cfg +0 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/src/mx_bluesky/__init__.py +0 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/__init__.py +0 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24/serial → mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/extruder}/__init__.py +0 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/extruder → mx_bluesky-0.3.1/src/mx_bluesky/i24/serial/fixed_target}/__init__.py +0 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/parameters/fixed_target/pvar_files/oxford.pvar +0 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/run_ssx.sh +0 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/setup_beamline/__init__.py +0 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24 → mx_bluesky-0.3.1/src/mx_bluesky/i24}/serial/setup_beamline/ca.py +0 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/src/mx_bluesky/jupyter_example.ipynb +0 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/src/mx_bluesky.egg-info/dependency_links.txt +0 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/src/mx_bluesky.egg-info/top_level.txt +0 -0
- {mx_bluesky-0.0.1/src/mx_bluesky/I24/serial/fixed_target → mx_bluesky-0.3.1/tests}/__init__.py +0 -0
- {mx_bluesky-0.0.1/tests/I24/serial/fixed_target → mx_bluesky-0.3.1/tests/i24/serial}/__init__.py +0 -0
- {mx_bluesky-0.0.1/tests → mx_bluesky-0.3.1/tests/i24/serial/extruder}/__init__.py +0 -0
- {mx_bluesky-0.0.1 → mx_bluesky-0.3.1}/tests/test_cli.py +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changes here will be overwritten by Copier
|
|
2
|
+
_commit: 2.2.0
|
|
3
|
+
_src_path: gh:DiamondLightSource/python-copier-template
|
|
4
|
+
author_email: dominic.oram@diamond.ac.uk
|
|
5
|
+
author_name: Dominic Oram
|
|
6
|
+
component_owner: group:data-acquisition
|
|
7
|
+
description: Bluesky tools for MX Beamlines at DLS
|
|
8
|
+
distribution_name: mx-bluesky
|
|
9
|
+
docker: true
|
|
10
|
+
docs_type: sphinx
|
|
11
|
+
git_platform: github.com
|
|
12
|
+
github_org: DiamondLightSource
|
|
13
|
+
package_name: mx_bluesky
|
|
14
|
+
pypi: true
|
|
15
|
+
repo_name: mx-bluesky
|
|
16
|
+
type_checker: pyright
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
},
|
|
18
|
+
// Add the IDs of extensions you want installed when the container is created.
|
|
19
|
+
"extensions": [
|
|
20
|
+
"ms-python.python",
|
|
21
|
+
"github.vscode-github-actions",
|
|
22
|
+
"tamasfe.even-better-toml",
|
|
23
|
+
"redhat.vscode-yaml",
|
|
24
|
+
"ryanluker.vscode-coverage-gutters",
|
|
25
|
+
"charliermarsh.ruff",
|
|
26
|
+
"ms-azuretools.vscode-docker"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"features": {
|
|
31
|
+
// Some default things like git config
|
|
32
|
+
"ghcr.io/devcontainers/features/common-utils:2": {
|
|
33
|
+
"upgradePackages": false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"runArgs": [
|
|
37
|
+
// Allow the container to access the host X11 display and EPICS CA
|
|
38
|
+
"--net=host",
|
|
39
|
+
// Make sure SELinux does not disable with access to host filesystems like tmp
|
|
40
|
+
"--security-opt=label=disable"
|
|
41
|
+
],
|
|
42
|
+
// Mount the parent as /workspaces so we can pip install peers as editable
|
|
43
|
+
"workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspaces,type=bind",
|
|
44
|
+
// After the container is created, install the python project in editable form
|
|
45
|
+
"postCreateCommand": "pip install $([ -f dev-requirements.txt ] && echo '-c dev-requirements.txt') -e '.[dev]' && pre-commit install"
|
|
46
|
+
}
|
|
@@ -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/DiamondLightSource/mx-bluesky/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/DiamondLightSource/mx-bluesky/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.2.0/how-to.html).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug Report
|
|
3
|
+
about: The template to use for reporting bugs and usability issues
|
|
4
|
+
title: " "
|
|
5
|
+
labels: 'bug'
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
Describe the bug, including a clear and concise description of the expected behavior, the actual behavior and the context in which you encountered it (ideally include details of your environment).
|
|
11
|
+
|
|
12
|
+
## Steps To Reproduce
|
|
13
|
+
Steps to reproduce the behavior:
|
|
14
|
+
1. Go to '...'
|
|
15
|
+
2. Click on '....'
|
|
16
|
+
3. Scroll down to '....'
|
|
17
|
+
4. See error
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## Acceptance Criteria
|
|
21
|
+
- Specific criteria that will be used to judge if the issue is fixed
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Issue
|
|
3
|
+
about: The standard template to use for feature requests, design discussions and tasks
|
|
4
|
+
title: " "
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
A brief description of the issue, including specific stakeholders and the business case where appropriate
|
|
11
|
+
|
|
12
|
+
## Acceptance Criteria
|
|
13
|
+
- Specific criteria that will be used to judge if the issue is fixed
|
|
@@ -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
|
+
- "*"
|
|
@@ -3,28 +3,27 @@ import logging
|
|
|
3
3
|
from argparse import ArgumentParser
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
from subprocess import CalledProcessError, check_output
|
|
6
|
-
from typing import List, Optional
|
|
7
6
|
|
|
8
7
|
|
|
9
|
-
def report_output(stdout: bytes, label: str) ->
|
|
8
|
+
def report_output(stdout: bytes, label: str) -> list[str]:
|
|
10
9
|
ret = stdout.decode().strip().split("\n")
|
|
11
10
|
print(f"{label}: {ret}")
|
|
12
11
|
return ret
|
|
13
12
|
|
|
14
13
|
|
|
15
|
-
def get_branch_contents(ref: str) ->
|
|
14
|
+
def get_branch_contents(ref: str) -> list[str]:
|
|
16
15
|
"""Get the list of directories in a branch."""
|
|
17
16
|
stdout = check_output(["git", "ls-tree", "-d", "--name-only", ref])
|
|
18
17
|
return report_output(stdout, "Branch contents")
|
|
19
18
|
|
|
20
19
|
|
|
21
|
-
def get_sorted_tags_list() ->
|
|
20
|
+
def get_sorted_tags_list() -> list[str]:
|
|
22
21
|
"""Get a list of sorted tags in descending order from the repository."""
|
|
23
22
|
stdout = check_output(["git", "tag", "-l", "--sort=-v:refname"])
|
|
24
23
|
return report_output(stdout, "Tags list")
|
|
25
24
|
|
|
26
25
|
|
|
27
|
-
def get_versions(ref: str, add:
|
|
26
|
+
def get_versions(ref: str, add: str | None) -> list[str]:
|
|
28
27
|
"""Generate the file containing the list of all GitHub Pages builds."""
|
|
29
28
|
# Get the directories (i.e. builds) from the GitHub Pages branch
|
|
30
29
|
try:
|
|
@@ -36,15 +35,12 @@ def get_versions(ref: str, add: Optional[str], remove: Optional[str]) -> List[st
|
|
|
36
35
|
# Add and remove from the list of builds
|
|
37
36
|
if add:
|
|
38
37
|
builds.add(add)
|
|
39
|
-
if remove:
|
|
40
|
-
assert remove in builds, f"Build '{remove}' not in {sorted(builds)}"
|
|
41
|
-
builds.remove(remove)
|
|
42
38
|
|
|
43
39
|
# Get a sorted list of tags
|
|
44
40
|
tags = get_sorted_tags_list()
|
|
45
41
|
|
|
46
42
|
# Make the sorted versions list from main branches and tags
|
|
47
|
-
versions:
|
|
43
|
+
versions: list[str] = []
|
|
48
44
|
for version in ["master", "main"] + tags:
|
|
49
45
|
if version in builds:
|
|
50
46
|
versions.append(version)
|
|
@@ -58,27 +54,26 @@ def get_versions(ref: str, add: Optional[str], remove: Optional[str]) -> List[st
|
|
|
58
54
|
|
|
59
55
|
def write_json(path: Path, repository: str, versions: str):
|
|
60
56
|
org, repo_name = repository.split("/")
|
|
57
|
+
pages_url = f"https://{org}.github.io"
|
|
58
|
+
if repo_name != f"{org}.github.io":
|
|
59
|
+
# Only add the repo name if it isn't the source for the org pages site
|
|
60
|
+
pages_url += f"/{repo_name}"
|
|
61
61
|
struct = [
|
|
62
|
-
{"version": version, "url": f"
|
|
63
|
-
for version in versions
|
|
62
|
+
{"version": version, "url": f"{pages_url}/{version}/"} for version in versions
|
|
64
63
|
]
|
|
65
64
|
text = json.dumps(struct, indent=2)
|
|
66
65
|
print(f"JSON switcher:\n{text}")
|
|
67
|
-
path.write_text(text)
|
|
66
|
+
path.write_text(text, encoding="utf-8")
|
|
68
67
|
|
|
69
68
|
|
|
70
69
|
def main(args=None):
|
|
71
70
|
parser = ArgumentParser(
|
|
72
|
-
description="Make a versions.
|
|
71
|
+
description="Make a versions.json file from gh-pages directories"
|
|
73
72
|
)
|
|
74
73
|
parser.add_argument(
|
|
75
74
|
"--add",
|
|
76
75
|
help="Add this directory to the list of existing directories",
|
|
77
76
|
)
|
|
78
|
-
parser.add_argument(
|
|
79
|
-
"--remove",
|
|
80
|
-
help="Remove this directory from the list of existing directories",
|
|
81
|
-
)
|
|
82
77
|
parser.add_argument(
|
|
83
78
|
"repository",
|
|
84
79
|
help="The GitHub org and repository name: ORG/REPO",
|
|
@@ -91,7 +86,7 @@ def main(args=None):
|
|
|
91
86
|
args = parser.parse_args(args)
|
|
92
87
|
|
|
93
88
|
# Write the versions file
|
|
94
|
-
versions = get_versions("origin/gh-pages", args.add
|
|
89
|
+
versions = get_versions("origin/gh-pages", args.add)
|
|
95
90
|
write_json(args.output, args.repository, versions)
|
|
96
91
|
|
|
97
92
|
|
|
@@ -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,60 @@
|
|
|
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: Set up Docker Buildx
|
|
16
|
+
id: buildx
|
|
17
|
+
uses: docker/setup-buildx-action@v3
|
|
18
|
+
|
|
19
|
+
- name: Log in to GitHub Docker Registry
|
|
20
|
+
if: github.event_name != 'pull_request'
|
|
21
|
+
uses: docker/login-action@v3
|
|
22
|
+
with:
|
|
23
|
+
registry: ghcr.io
|
|
24
|
+
username: ${{ github.actor }}
|
|
25
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
26
|
+
|
|
27
|
+
- name: Build and export to Docker local cache
|
|
28
|
+
uses: docker/build-push-action@v6
|
|
29
|
+
env:
|
|
30
|
+
DOCKER_BUILD_RECORD_UPLOAD: false
|
|
31
|
+
with:
|
|
32
|
+
context: .
|
|
33
|
+
# Need load and tags so we can test it below
|
|
34
|
+
load: true
|
|
35
|
+
tags: tag_for_testing
|
|
36
|
+
|
|
37
|
+
- name: Test cli works in cached runtime image
|
|
38
|
+
run: docker run --rm tag_for_testing --version
|
|
39
|
+
|
|
40
|
+
- name: Create tags for publishing image
|
|
41
|
+
id: meta
|
|
42
|
+
uses: docker/metadata-action@v5
|
|
43
|
+
with:
|
|
44
|
+
images: ghcr.io/${{ github.repository }}
|
|
45
|
+
tags: |
|
|
46
|
+
type=ref,event=tag
|
|
47
|
+
type=raw,value=latest
|
|
48
|
+
|
|
49
|
+
- name: Push cached image to container registry
|
|
50
|
+
if: github.ref_type == 'tag'
|
|
51
|
+
uses: docker/build-push-action@v6
|
|
52
|
+
env:
|
|
53
|
+
DOCKER_BUILD_RECORD_UPLOAD: false
|
|
54
|
+
# This does not build the image again, it will find the image in the
|
|
55
|
+
# Docker cache and publish it
|
|
56
|
+
with:
|
|
57
|
+
context: .
|
|
58
|
+
push: true
|
|
59
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
60
|
+
labels: ${{ steps.meta.outputs.labels }}
|
|
@@ -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
|
|
@@ -1,39 +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
|
-
python_version: "3.11"
|
|
33
24
|
|
|
34
25
|
- name: Build docs
|
|
35
26
|
run: tox -e docs
|
|
36
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
|
+
|
|
37
37
|
- name: Sanitize ref name for docs version
|
|
38
38
|
run: echo "DOCS_VERSION=${GITHUB_REF_NAME//[^A-Za-z0-9._-]/_}" >> $GITHUB_ENV
|
|
39
39
|
|
|
@@ -44,10 +44,10 @@ jobs:
|
|
|
44
44
|
run: python .github/pages/make_switcher.py --add $DOCS_VERSION ${{ github.repository }} .github/pages/switcher.json
|
|
45
45
|
|
|
46
46
|
- name: Publish Docs to gh-pages
|
|
47
|
-
if: github.
|
|
47
|
+
if: github.ref_type == 'tag' || github.ref_name == 'main'
|
|
48
48
|
# We pin to the SHA, not the tag, for security reasons.
|
|
49
49
|
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
|
|
50
|
-
uses: peaceiris/actions-gh-pages@
|
|
50
|
+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
|
|
51
51
|
with:
|
|
52
52
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
53
53
|
publish_dir: .github/pages
|
|
@@ -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@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
|
|
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 }}
|