Skip to content

Commit e569033

Browse files
authored
Merge branch 'staging' into dev-heartbeat
2 parents bd3e676 + 0e9724b commit e569033

22 files changed

+1407
-1
lines changed

.github/workflows/pypublish.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# This workflow will upload a Python Package to PyPI when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: thermoflex
10+
11+
on:
12+
push:
13+
branches:
14+
- main
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
release-build:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.x"
29+
30+
- name: Build release distributions
31+
run: |
32+
cd python-serial/
33+
python -m pip install build
34+
python -m build
35+
36+
- name: Upload distributions
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: release-dists
40+
path: dist/
41+
42+
pypi-publish:
43+
runs-on: ubuntu-latest
44+
needs:
45+
- release-build
46+
permissions:
47+
# IMPORTANT: this permission is mandatory for trusted publishing
48+
id-token: write
49+
50+
# Dedicated environments with protections for publishing are strongly recommended.
51+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
52+
environment:
53+
name: pypi
54+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
55+
url: https://pypi.org/p/thermoflex/
56+
#
57+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
58+
# ALTERNATIVE: exactly, uncomment the following line instead:
59+
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
60+
61+
steps:
62+
- name: Retrieve release distributions
63+
uses: actions/download-artifact@v4
64+
with:
65+
name: release-dists
66+
path: python-serial/dist/
67+
68+
- name: Publish release distributions to PyPI
69+
uses: pypa/gh-action-pypi-publish@release/v1
70+
with:
71+
packages-dir: python-serial/dist/

.github/workflows/testpypublish.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# This workflow will upload a Python Package to PyPI when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: thermo
10+
11+
on:
12+
push:
13+
branches:
14+
- staging
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
release-build:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.x"
29+
30+
- name: Build release distributions
31+
run: |
32+
cd python-serial/
33+
python -m pip install build
34+
python -m build
35+
36+
- name: Upload distributions
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: release-dists
40+
path: python-serial/dist/
41+
42+
testpypi-publish:
43+
runs-on: ubuntu-latest
44+
needs:
45+
- release-build
46+
permissions:
47+
# IMPORTANT: this permission is mandatory for trusted publishing
48+
id-token: write
49+
50+
# Dedicated environments with protections for publishing are strongly recommended.
51+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
52+
environment:
53+
name: pypi
54+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
55+
url: https://test.pypi.org/p/thermo/
56+
#
57+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
58+
# ALTERNATIVE: exactly, uncomment the following line instead:
59+
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
60+
61+
steps:
62+
- name: Retrieve release distributions
63+
uses: actions/download-artifact@v4
64+
with:
65+
name: release-dists
66+
path: python-serial/dist/
67+
68+
- name: Publish distribution 📦 to TestPyPI
69+
uses: pypa/gh-action-pypi-publish@release/v1
70+
with:
71+
repository-url: https://test.pypi.org/legacy/
72+
packages-dir: python-serial/dist/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ with $SRC being the path to the [python-serial](python-serial/) folder. This wil
148148
| setSetpoint(setpoint:float) | Sets the setpoint of the muscle at the node. |
149149
| setEnable(bool) | Sets the enable status of the muscle in the node. |
150150

151-
[Muscle](/docs/Thermoflex%20Glossary.md#muscle)
151+
[Muscle](/docs/Thermoflex%20Glossary.md#muscle)

python-serial/INSTALL INSTRUCTIONS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
copy the path to the .tar file from the staging/build/dist directory. This is the $SRC
2+
From powershell, Type 'pip install $SRC/thermoflex-0.0.3.tar'

python-serial/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ name = "thermoflex"
77
version = "1.0.1"
88
authors = [{name = "Marvin S", email = "[email protected]"}, {name = "Mark D", email = "[email protected]"} ]
99
readme = "Getting Started.md"
10+
1011
dependencies = ['pyserial == 3.5','protobuf == 5.28.3', 'pandas == 2.2.3']
1112
description = "This is the library for controlling the ThermoFlex muscle system by Delta Robotics"
1213
keywords = ["thermoflex" , "Delta", "Delta Robotics"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
```
2+
pip install $filepath\dist\thermoflex-0.0.1.tar.gz
3+
```
4+
5+
use this command in powershell or python terminal.
6+
$filepath is the path to the dist\ folder in python-serial
Binary file not shown.
Binary file not shown.

python-serial/staging/src/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
from .sessions import *
3+
4+
#my library is the brains of the operation. Everything happens here.
5+
#make Markdown file
6+
#Getting Started, Markdown with commands, Basic tutorial

0 commit comments

Comments
 (0)