bot7685-ext 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,102 @@
1
+ name: Build Wheels
2
+
3
+ on:
4
+ push:
5
+ workflow_dispatch:
6
+ pull_request:
7
+ branches:
8
+ - master
9
+ release:
10
+ types:
11
+ - published
12
+
13
+ jobs:
14
+ check_version:
15
+ runs-on: ubuntu-latest
16
+ name: Check version matches tag
17
+ if: github.event_name == 'release'
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Setup uv
22
+ uses: astral-sh/setup-uv@v6
23
+
24
+ - name: Get Version
25
+ id: version
26
+ run: |
27
+ echo "VERSION=$(uv version --short)" >> $GITHUB_OUTPUT
28
+ echo "TAG_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
29
+ echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
30
+
31
+ - name: Check Version
32
+ if: steps.version.outputs.VERSION != steps.version.outputs.TAG_VERSION
33
+ run: exit 1
34
+
35
+ build_linux:
36
+ name: Build wheel for ${{ matrix.python }}-${{ matrix.platform }}_${{ matrix.archs }}
37
+ runs-on: ubuntu-22.04${{ matrix.archs == 'aarch64' && '-arm' || '' }}
38
+ strategy:
39
+ fail-fast: false
40
+ matrix:
41
+ python: [cp313, cp314]
42
+ platform: [manylinux]
43
+ archs: [x86_64]
44
+
45
+ steps:
46
+ - uses: actions/checkout@v5
47
+ - name: Build wheel
48
+ uses: pypa/cibuildwheel@v3.2.0
49
+ env:
50
+ CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform }}_${{ matrix.archs }}
51
+ - uses: actions/upload-artifact@v4
52
+ with:
53
+ name: wheel-${{ matrix.python }}-${{ matrix.platform }}_${{ matrix.archs }}
54
+ path: ./wheelhouse/*.whl
55
+
56
+ build_sdist:
57
+ name: Build sdist
58
+ runs-on: ubuntu-latest
59
+
60
+ steps:
61
+ - uses: actions/checkout@v4
62
+
63
+ - name: Setup uv
64
+ uses: astral-sh/setup-uv@v6
65
+
66
+ - name: Build sdist
67
+ run: uv build --sdist
68
+
69
+ - uses: actions/upload-artifact@v4
70
+ with:
71
+ name: sdist
72
+ path: ./dist/*.tar.gz
73
+
74
+ publish:
75
+ name: Publish to PyPI
76
+ runs-on: ubuntu-latest
77
+ needs: [check_version, build_linux, build_sdist]
78
+ if: github.event_name == 'release'
79
+ permissions:
80
+ id-token: write # required for OIDC trusted publisher
81
+ contents: read
82
+
83
+ steps:
84
+ - name: Download all wheels
85
+ uses: actions/download-artifact@v4
86
+ with:
87
+ path: dist
88
+ pattern: wheel-*
89
+ merge-multiple: true
90
+
91
+ - name: Download sdist
92
+ uses: actions/download-artifact@v4
93
+ with:
94
+ name: sdist
95
+ path: dist
96
+
97
+ - name: Install uv
98
+ uses: astral-sh/setup-uv@v6
99
+
100
+ - name: Publish to PyPI
101
+ if: startsWith(github.ref, 'refs/tags/')
102
+ run: uv publish --trusted-publishing always
@@ -0,0 +1,5 @@
1
+ /target
2
+ *.pyd
3
+ *.so
4
+ __pycache__/
5
+ dist/
@@ -0,0 +1 @@
1
+ 3.14