bambu-mqtt-comms 0.1.0__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.
- bambu_mqtt_comms-0.1.0/.github/workflows/publish.yml +60 -0
- bambu_mqtt_comms-0.1.0/.gitignore +5 -0
- bambu_mqtt_comms-0.1.0/LICENSE +661 -0
- bambu_mqtt_comms-0.1.0/PKG-INFO +280 -0
- bambu_mqtt_comms-0.1.0/README.md +253 -0
- bambu_mqtt_comms-0.1.0/bambu_mqtt_comms/__init__.py +67 -0
- bambu_mqtt_comms-0.1.0/bambu_mqtt_comms/client.py +977 -0
- bambu_mqtt_comms-0.1.0/bambu_mqtt_comms/config.py +41 -0
- bambu_mqtt_comms-0.1.0/bambu_mqtt_comms.egg-info/PKG-INFO +280 -0
- bambu_mqtt_comms-0.1.0/bambu_mqtt_comms.egg-info/SOURCES.txt +15 -0
- bambu_mqtt_comms-0.1.0/bambu_mqtt_comms.egg-info/dependency_links.txt +1 -0
- bambu_mqtt_comms-0.1.0/bambu_mqtt_comms.egg-info/requires.txt +5 -0
- bambu_mqtt_comms-0.1.0/bambu_mqtt_comms.egg-info/scm_file_list.json +12 -0
- bambu_mqtt_comms-0.1.0/bambu_mqtt_comms.egg-info/scm_version.json +8 -0
- bambu_mqtt_comms-0.1.0/bambu_mqtt_comms.egg-info/top_level.txt +1 -0
- bambu_mqtt_comms-0.1.0/pyproject.toml +45 -0
- bambu_mqtt_comms-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch: # manual run publishes to TestPyPI
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v7
|
|
13
|
+
with:
|
|
14
|
+
fetch-depth: 0 # setuptools-scm needs tags and history for the version
|
|
15
|
+
- uses: actions/setup-python@v7
|
|
16
|
+
with:
|
|
17
|
+
python-version: "3.x"
|
|
18
|
+
- name: Build sdist and wheel
|
|
19
|
+
run: |
|
|
20
|
+
python -m pip install --upgrade build twine
|
|
21
|
+
python -m build
|
|
22
|
+
twine check dist/*
|
|
23
|
+
- uses: actions/upload-artifact@v7
|
|
24
|
+
with:
|
|
25
|
+
name: dist
|
|
26
|
+
path: dist/
|
|
27
|
+
|
|
28
|
+
publish-testpypi:
|
|
29
|
+
if: github.event_name == 'workflow_dispatch'
|
|
30
|
+
needs: build
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
environment:
|
|
33
|
+
name: testpypi
|
|
34
|
+
url: https://test.pypi.org/p/bambu-mqtt-comms
|
|
35
|
+
permissions:
|
|
36
|
+
id-token: write # required for trusted publishing
|
|
37
|
+
steps:
|
|
38
|
+
- uses: actions/download-artifact@v8
|
|
39
|
+
with:
|
|
40
|
+
name: dist
|
|
41
|
+
path: dist/
|
|
42
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
43
|
+
with:
|
|
44
|
+
repository-url: https://test.pypi.org/legacy/
|
|
45
|
+
|
|
46
|
+
publish-pypi:
|
|
47
|
+
if: github.event_name == 'release'
|
|
48
|
+
needs: build
|
|
49
|
+
runs-on: ubuntu-latest
|
|
50
|
+
environment:
|
|
51
|
+
name: pypi
|
|
52
|
+
url: https://pypi.org/p/bambu-mqtt-comms
|
|
53
|
+
permissions:
|
|
54
|
+
id-token: write # required for trusted publishing
|
|
55
|
+
steps:
|
|
56
|
+
- uses: actions/download-artifact@v8
|
|
57
|
+
with:
|
|
58
|
+
name: dist
|
|
59
|
+
path: dist/
|
|
60
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|