Skip to content

Commit 2b8e636

Browse files
committed
add Release.yml
add interfaces inheritance
1 parent b6b5c11 commit 2b8e636

File tree

4 files changed

+40
-3
lines changed

4 files changed

+40
-3
lines changed

.github/workflows/Release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-22.04
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: '3.x'
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install build
23+
- name: Build package
24+
run: python -m build
25+
- name: Publish package
26+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
27+
with:
28+
user: __token__
29+
password: ${{ secrets.PYPI_TOKEN }}
30+
- uses: ncipollo/release-action@v1
31+
with:
32+
artifacts: ""
33+
bodyFile: ""
34+
token: ${{ secrets.GITHUB_TOKEN }}

underautomation/staubli/soap/internal/v3/forward_kin_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import typing
2+
from underautomation.staubli.soap.data.i_forward_kinematics import IForwardKinematics
23
from underautomation.staubli.soap.data.frame import Frame
34
from underautomation.staubli.soap.data.config import Config
45
import clr
56
import os
67
clr.AddReference(os.path.realpath(os.path.join(os.path.dirname(__file__), "..", "..", "..", 'lib', 'UnderAutomation.Staubli.dll')))
78
from UnderAutomation.Staubli.Soap.Internal.V3 import ForwardKinResponse as forward_kin_response
89

9-
class ForwardKinResponse:
10+
class ForwardKinResponse(IForwardKinematics):
1011
def __init__(self, position: Frame, config: Config, _internal = 0):
1112
if(_internal == 0):
1213
self._instance = forward_kin_response(position, config)

underautomation/staubli/soap/internal/v3/move_jj_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import typing
2+
from underautomation.staubli.soap.data.i_move_result import IMoveResult
23
from underautomation.staubli.soap.data.motion_return_code import MotionReturnCode
34
import clr
45
import os
56
clr.AddReference(os.path.realpath(os.path.join(os.path.dirname(__file__), "..", "..", "..", 'lib', 'UnderAutomation.Staubli.dll')))
67
from UnderAutomation.Staubli.Soap.Internal.V3 import MoveJJResponse as move_jj_response
78

8-
class MoveJJResponse:
9+
class MoveJJResponse(IMoveResult):
910
def __init__(self, id: int, motRet: MotionReturnCode, _internal = 0):
1011
if(_internal == 0):
1112
self._instance = move_jj_response(id, motRet)

underautomation/staubli/soap/internal/v3/reverse_kin_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import typing
2+
from underautomation.staubli.soap.data.i_reverse_kinematics import IReverseKinematics
23
from underautomation.staubli.soap.data.reversing_result import ReversingResult
34
import clr
45
import os
56
clr.AddReference(os.path.realpath(os.path.join(os.path.dirname(__file__), "..", "..", "..", 'lib', 'UnderAutomation.Staubli.dll')))
67
from UnderAutomation.Staubli.Soap.Internal.V3 import ReverseKinResponse as reverse_kin_response
78

8-
class ReverseKinResponse:
9+
class ReverseKinResponse(IReverseKinematics):
910
def __init__(self, jointOut: typing.List[float], reversingResult: ReversingResult, _internal = 0):
1011
if(_internal == 0):
1112
self._instance = reverse_kin_response(jointOut, reversingResult)

0 commit comments

Comments
 (0)