-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1e6930
commit 2e0e5f2
Showing
15 changed files
with
113 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# Changes here will be overwritten by Copier | ||
_commit: 2.2.0 | ||
_commit: 2.6.0 | ||
_src_path: gh:DiamondLightSource/python-copier-template | ||
author_email: [email protected] | ||
author_name: Callum Forrester | ||
component_lifecycle: experimental | ||
component_owner: group:default/daq | ||
component_type: library | ||
description: Bluesky playground environment for Diamond's htss rigs | ||
distribution_name: htss-rig-bluesky | ||
docker: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ cov.xml | |
|
||
# Sphinx documentation | ||
docs/_build/ | ||
docs/_api | ||
|
||
# PyBuilder | ||
target/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
:orphan: | ||
|
||
.. | ||
This page is not included in the TOC tree, but must exist so that the | ||
autosummary pages are generated for htss_rig_bluesky and all its | ||
subpackages | ||
API | ||
=== | ||
|
||
.. autosummary:: | ||
:toctree: _api | ||
:template: custom-module-template.rst | ||
:recursive: | ||
|
||
htss_rig_bluesky |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{{ ('``' + fullname + '``') | underline }} | ||
|
||
{%- set filtered_members = [] %} | ||
{%- for item in members %} | ||
{%- if item in functions + classes + exceptions + attributes %} | ||
{% set _ = filtered_members.append(item) %} | ||
{%- endif %} | ||
{%- endfor %} | ||
|
||
.. automodule:: {{ fullname }} | ||
:members: | ||
|
||
{% block modules %} | ||
{% if modules %} | ||
.. rubric:: Submodules | ||
|
||
.. autosummary:: | ||
:toctree: | ||
:template: custom-module-template.rst | ||
:recursive: | ||
{% for item in modules %} | ||
{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block members %} | ||
{% if filtered_members %} | ||
.. rubric:: Members | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
{% for item in filtered_members %} | ||
{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
"""Top level API. | ||
.. data:: __version__ | ||
:type: str | ||
Version number as calculated by https://github.com/pypa/setuptools_scm | ||
""" | ||
|
||
from ._version import __version__ | ||
|
||
__all__ = ["__version__"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
"""Interface for ``python -m htss_rig_bluesky``.""" | ||
|
||
from argparse import ArgumentParser | ||
from collections.abc import Sequence | ||
|
||
from . import __version__ | ||
|
||
__all__ = ["main"] | ||
|
||
|
||
def main(args=None): | ||
def main(args: Sequence[str] | None = None) -> None: | ||
"""Argument parser for the CLI.""" | ||
parser = ArgumentParser() | ||
parser.add_argument("-v", "--version", action="version", version=__version__) | ||
args = parser.parse_args(args) | ||
parser.add_argument( | ||
"-v", | ||
"--version", | ||
action="version", | ||
version=__version__, | ||
) | ||
parser.parse_args(args) | ||
|
||
|
||
# test with: python -m htss_rig_bluesky | ||
if __name__ == "__main__": | ||
main() |