pyroid 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,135 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ repository_dispatch:
8
+ types: [publish-pypi]
9
+ workflow_dispatch:
10
+ inputs:
11
+ version:
12
+ description: 'Version to publish'
13
+ required: true
14
+
15
+ # Add permissions for artifacts
16
+ permissions:
17
+ contents: read
18
+ id-token: write # Required for PyPI trusted publishing
19
+
20
+ jobs:
21
+ linux:
22
+ runs-on: ubuntu-latest
23
+ strategy:
24
+ matrix:
25
+ target: [x86_64]
26
+ python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - uses: actions/setup-python@v5
30
+ with:
31
+ python-version: ${{ matrix.python-version }}
32
+ architecture: x64
33
+ - name: Install Rust
34
+ uses: dtolnay/rust-toolchain@stable
35
+ with:
36
+ targets: ${{ matrix.target }}-unknown-linux-gnu
37
+
38
+ - name: Build wheels
39
+ uses: PyO3/maturin-action@v1
40
+ with:
41
+ target: ${{ matrix.target }}
42
+ args: --release --out dist --find-interpreter
43
+ sccache: 'true'
44
+ - name: Upload wheels
45
+ uses: actions/upload-artifact@v4
46
+ with:
47
+ name: linux-${{ matrix.python-version }}-wheels
48
+ path: dist
49
+
50
+ windows:
51
+ runs-on: windows-latest
52
+ strategy:
53
+ matrix:
54
+ target: [x64]
55
+ python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
56
+ steps:
57
+ - uses: actions/checkout@v4
58
+ - uses: actions/setup-python@v5
59
+ with:
60
+ python-version: ${{ matrix.python-version }}
61
+ architecture: ${{ matrix.target }}
62
+ - name: Install Rust
63
+ uses: dtolnay/rust-toolchain@stable
64
+ - name: Build wheels
65
+ uses: PyO3/maturin-action@v1
66
+ with:
67
+ args: --release --out dist --find-interpreter
68
+ sccache: 'true'
69
+ - name: Upload wheels
70
+ uses: actions/upload-artifact@v4
71
+ with:
72
+ name: windows-${{ matrix.python-version }}-wheels
73
+ path: dist
74
+
75
+ macos:
76
+ runs-on: macos-latest
77
+ strategy:
78
+ matrix:
79
+ target: [x86_64, aarch64]
80
+ python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
81
+ steps:
82
+ - uses: actions/checkout@v4
83
+ - uses: actions/setup-python@v5
84
+ with:
85
+ python-version: ${{ matrix.python-version }}
86
+ - name: Install Rust
87
+ uses: dtolnay/rust-toolchain@stable
88
+ with:
89
+ targets: ${{ matrix.target }}-apple-darwin
90
+ - name: Build wheels
91
+ uses: PyO3/maturin-action@v1
92
+ with:
93
+ target: ${{ matrix.target }}-apple-darwin
94
+ args: --release --out dist --find-interpreter
95
+ sccache: 'true'
96
+ - name: Upload wheels
97
+ uses: actions/upload-artifact@v4
98
+ with:
99
+ name: macos-${{ matrix.target }}-${{ matrix.python-version }}-wheels
100
+ path: dist
101
+
102
+ sdist:
103
+ runs-on: ubuntu-latest
104
+ steps:
105
+ - uses: actions/checkout@v4
106
+ - name: Build sdist
107
+ uses: PyO3/maturin-action@v1
108
+ with:
109
+ command: sdist
110
+ args: --out dist
111
+ - name: Upload sdist
112
+ uses: actions/upload-artifact@v4
113
+ with:
114
+ name: sdist-package
115
+ path: dist
116
+
117
+ release:
118
+ name: Release
119
+ runs-on: ubuntu-latest
120
+ needs: [linux, windows, macos, sdist]
121
+ steps:
122
+ - uses: actions/download-artifact@v4
123
+ with:
124
+ merge-multiple: true
125
+ path: dist
126
+ - name: List files in dist directory
127
+ run: find dist -type f | sort
128
+
129
+ - name: Publish to PyPI
130
+ uses: PyO3/maturin-action@v1
131
+ env:
132
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
133
+ with:
134
+ command: upload
135
+ args: --skip-existing dist/**/*.whl dist/**/*.tar.gz
@@ -0,0 +1,51 @@
1
+ name: Semantic Release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ # Add permissions to allow pushing to the repository
9
+ permissions:
10
+ contents: write
11
+ pull-requests: write
12
+ issues: write
13
+
14
+ jobs:
15
+ release:
16
+ runs-on: ubuntu-latest
17
+ concurrency: release
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ with:
21
+ fetch-depth: 0
22
+
23
+ - name: Install Rust
24
+ uses: dtolnay/rust-toolchain@stable
25
+
26
+ - name: Set up Python
27
+ uses: actions/setup-python@v5
28
+ with:
29
+ python-version: '3.x'
30
+
31
+ - name: Install dependencies
32
+ run: |
33
+ python -m pip install --upgrade pip
34
+ pip install python-semantic-release
35
+
36
+ - name: Semantic Release
37
+ id: semantic
38
+ run: |
39
+ VERSION=$(semantic-release version --print)
40
+ echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
41
+ semantic-release publish
42
+ env:
43
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44
+
45
+ - name: Trigger Publish Workflow
46
+ if: steps.semantic.outputs.VERSION != '0.0.0'
47
+ uses: peter-evans/repository-dispatch@v2
48
+ with:
49
+ token: ${{ secrets.GITHUB_TOKEN }}
50
+ event-type: publish-pypi
51
+ client-payload: '{"version": "${{ steps.semantic.outputs.VERSION }}"}'
@@ -0,0 +1,5 @@
1
+ __pycache__
2
+ target
3
+ *.pyc
4
+ *.pyo
5
+ *.pyd
@@ -0,0 +1,17 @@
1
+ # CHANGELOG
2
+
3
+
4
+ ## v0.1.0 (2025-04-04)
5
+
6
+
7
+ ## v0.0.1 (2025-04-04)
8
+
9
+ ### Bug Fixes
10
+
11
+ - Add permissions for artifact handling and repository access in workflows
12
+ ([`d00907e`](https://github.com/ao/pyroid/commit/d00907e6e664a68f56f0652f1ff8b741500f0f9f))
13
+
14
+ ### Features
15
+
16
+ - Enable tagging and pushing of version changes in pyproject.toml
17
+ ([`7933507`](https://github.com/ao/pyroid/commit/79335072488b0af8a7a9759cb8522b7945873f0e))