dora-piper 0.3.10rc1__tar.gz → 0.3.11__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.

Potentially problematic release.


This version of dora-piper might be problematic. Click here for more details.

@@ -1,12 +1,12 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: dora-piper
3
- Version: 0.3.10rc1
3
+ Version: 0.3.11
4
4
  Summary: Dora Node for using Agilex piper
5
5
  Author-email: Haixuan Xavier Tao <tao.xavier@outlook.com>
6
6
  License: MIT
7
7
  Requires-Python: >=3.8
8
8
  Description-Content-Type: text/markdown
9
- Requires-Dist: dora-rs>=0.3.6
9
+ Requires-Dist: dora-rs>=0.3.9
10
10
  Requires-Dist: piper_sdk>=0.0.8
11
11
  Requires-Dist: numpy<2.0.0
12
12
 
@@ -1,3 +1,5 @@
1
+ """TODO: Add docstring."""
2
+
1
3
  import os
2
4
 
3
5
  # Define the path to the README file relative to the package directory
@@ -1,3 +1,5 @@
1
+ """TODO: Add docstring."""
2
+
1
3
  import os
2
4
  import time
3
5
 
@@ -10,8 +12,7 @@ TEACH_MODE = os.getenv("TEACH_MODE", "False") in ["True", "true"]
10
12
 
11
13
 
12
14
  def enable_fun(piper: C_PiperInterface):
13
- """使能机械臂并检测使能状态,尝试5s,如果使能超时则退出程序
14
- """
15
+ """使能机械臂并检测使能状态,尝试5s,如果使能超时则退出程序."""
15
16
  enable_flag = False
16
17
  # 设置超时时间(秒)
17
18
  timeout = 5
@@ -44,9 +45,10 @@ def enable_fun(piper: C_PiperInterface):
44
45
 
45
46
 
46
47
  def main():
48
+ """TODO: Add docstring."""
47
49
  elapsed_time = time.time()
48
- CAN_BUS = os.getenv("CAN_BUS", "")
49
- piper = C_PiperInterface(CAN_BUS)
50
+ can_bus = os.getenv("CAN_BUS", "")
51
+ piper = C_PiperInterface(can_bus)
50
52
  piper.ConnectPort()
51
53
 
52
54
  if not TEACH_MODE:
@@ -1,12 +1,12 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: dora-piper
3
- Version: 0.3.10rc1
3
+ Version: 0.3.11
4
4
  Summary: Dora Node for using Agilex piper
5
5
  Author-email: Haixuan Xavier Tao <tao.xavier@outlook.com>
6
6
  License: MIT
7
7
  Requires-Python: >=3.8
8
8
  Description-Content-Type: text/markdown
9
- Requires-Dist: dora-rs>=0.3.6
9
+ Requires-Dist: dora-rs>=0.3.9
10
10
  Requires-Dist: piper_sdk>=0.0.8
11
11
  Requires-Dist: numpy<2.0.0
12
12
 
@@ -1,3 +1,3 @@
1
- dora-rs>=0.3.6
1
+ dora-rs>=0.3.9
2
2
  piper_sdk>=0.0.8
3
3
  numpy<2.0.0
@@ -1,16 +1,28 @@
1
1
  [project]
2
2
  name = "dora-piper"
3
- version = "0.3.10-rc1"
3
+ version = "0.3.11"
4
4
  authors = [{ name = "Haixuan Xavier Tao", email = "tao.xavier@outlook.com" }]
5
5
  description = "Dora Node for using Agilex piper"
6
6
  license = { text = "MIT" }
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.8"
9
9
 
10
- dependencies = ["dora-rs >= 0.3.6", "piper_sdk >= 0.0.8", "numpy < 2.0.0"]
10
+ dependencies = ["dora-rs >= 0.3.9", "piper_sdk >= 0.0.8", "numpy < 2.0.0"]
11
11
 
12
12
  [dependency-groups]
13
13
  dev = ["pytest >=8.1.1", "ruff >=0.9.1"]
14
14
 
15
15
  [project.scripts]
16
16
  dora-piper = "dora_piper.main:main"
17
+
18
+ [tool.ruff.lint]
19
+ extend-select = [
20
+ "D", # pydocstyle
21
+ "UP", # Ruff's UP rule
22
+ "PERF", # Ruff's PERF rule
23
+ "RET", # Ruff's RET rule
24
+ "RSE", # Ruff's RSE rule
25
+ "NPY", # Ruff's NPY rule
26
+ "N", # Ruff's N rule
27
+ "I", # Ruff's I rule
28
+ ]
@@ -1,4 +1,7 @@
1
+ """TODO: Add docstring."""
2
+
1
3
  def test_import_main():
4
+ """TODO: Add docstring."""
2
5
  from piper_sdk import C_PiperInterface
3
6
 
4
7
  ## Test piper installation
File without changes
File without changes