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.
@@ -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
@@ -0,0 +1,5 @@
1
+ *.pyc
2
+ build/
3
+ dist/
4
+ *.egg-info/
5
+ __pycache__/