Skip to content

Commit 26132da

Browse files
authored
v1.0.1
version 1.0.1
2 parents d80056b + 7a504e7 commit 26132da

File tree

7 files changed

+1090
-44
lines changed

7 files changed

+1090
-44
lines changed

.github/workflows/pypi.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish package to PyPI
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
jobs:
7+
build-n-publish:
8+
name: Build and publish package to PyPI
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: "3.9"
16+
- name: Install poetry
17+
run: |
18+
curl -fsS -o get-poetry.py https://install.python-poetry.org
19+
python get-poetry.py -y
20+
- name: Publish
21+
env:
22+
PYPI_TOKEN: ${{ secrets.pypi_password }}
23+
run: |
24+
$HOME/.local/bin/poetry config pypi-token.pypi $PYPI_TOKEN
25+
$HOME/.local/bin/poetry build -f sdist
26+
$HOME/.local/bin/poetry publish

mode_selector.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

poetry.lock

Lines changed: 1057 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyobs_zaber/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
TODO: write doc
33
"""
44
__title__ = "Zaber motor modules"
5+
6+
from .zabermodeselector import ZaberModeSelector
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async def move_to(self, position) -> None:
105105
acceleration_unit=self.acceleration_unit,
106106
)
107107

108-
async def list_modes(self) -> List[str]:
108+
async def list_modes(self, **kwargs: Any) -> List[str]:
109109
"""List available modes.
110110
111111
Returns:
@@ -134,7 +134,7 @@ async def set_mode(self, mode: str, **kwargs) -> None:
134134
else:
135135
logging.warning("Unknown mode %s. Available modes are: %s", mode, available_modes)
136136

137-
async def get_mode(self) -> str:
137+
async def get_mode(self, **kwargs: Any) -> str:
138138
"""Get currently set mode.
139139
140140
Returns:

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
[tool.poetry]
22
name = "pyobs-zaber"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = "pyobs model for Zaber motors"
55
authors = ["Leon Meerwart <[email protected]>"]
66
license = "MIT"
77

88
[tool.poetry.dependencies]
99
python = ">=3.9,<3.12"
10+
zaber-motion = "^4.7.0"
11+
pyobs-core = "^1.6.7"
1012

1113
[tool.poetry.dev-dependencies]
1214
black = ">21.0"

select_mode.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)