Skip to content

Commit 4448fa7

Browse files
authored
Merge pull request #16 from Eeems-Org/Eeems-patch-1
Update version, upload manylinux wheels to pypi
2 parents 3dc039a + 6f3bee3 commit 4448fa7

File tree

3 files changed

+29
-31
lines changed

3 files changed

+29
-31
lines changed

.github/workflows/build.yml

+24-26
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
python:
1818
- '3.11'
1919
- '3.12'
20-
- '3.13'
2120
steps:
2221
- name: Install Apt packages
2322
id: cache-apt
@@ -26,10 +25,6 @@ jobs:
2625
execute_install_scripts: true
2726
packages: libfuse-dev
2827
version: 1.0
29-
- name: Install Protoc
30-
uses: arduino/setup-protoc@v3
31-
with:
32-
version: "25.x"
3328
- name: Checkout the Git repository
3429
uses: actions/checkout@v4
3530
- uses: actions/setup-python@v5
@@ -61,10 +56,6 @@ jobs:
6156
execute_install_scripts: true
6257
packages: libfuse-dev ccache
6358
version: 1.0
64-
- name: Install Protoc
65-
uses: arduino/setup-protoc@v3
66-
with:
67-
version: "25.x"
6859
- name: Checkout the Git repository
6960
uses: actions/checkout@v4
7061
- uses: actions/setup-python@v5
@@ -107,7 +98,6 @@ jobs:
10798
fuse-dev
10899
git
109100
patchelf
110-
protoc
111101
- name: Nuitka ccache
112102
uses: actions/cache@v4
113103
with:
@@ -186,7 +176,6 @@ jobs:
186176
python:
187177
- '3.11'
188178
- '3.12'
189-
- '3.13'
190179
steps:
191180
- name: Checkout the Git repository
192181
uses: actions/checkout@v4
@@ -195,18 +184,24 @@ jobs:
195184
with:
196185
python-version: ${{ matrix.python }}
197186
cache: 'pip'
198-
- name: Install Protoc
199-
uses: arduino/setup-protoc@v3
200-
with:
201-
version: "25.x"
202-
- name: Install build tool
203-
run: pip install build
204187
- name: Building package
205-
run: make wheel
188+
run: |
189+
python_version=${{ matrix.python }}
190+
python_version=cp${python_version//.}
191+
script=$(cat <<EOF
192+
cd /src;
193+
export PATH=\$PATH:/opt/python/$python_version-$python_version/bin;
194+
make ${{ env.FLAGS }} wheel;
195+
auditwheel repair dist/*.whl;
196+
EOF
197+
)
198+
docker run -v $(pwd):/src \
199+
quay.io/pypa/manylinux_2_34_x86_64:latest \
200+
/bin/bash -c "$script"
206201
- uses: actions/upload-artifact@v4
207202
with:
208203
name: pip-wheel-${{ matrix.python }}
209-
path: dist/*
204+
path: wheelhouse/*
210205
if-no-files-found: error
211206
build-sdist:
212207
name: Build sdist
@@ -220,10 +215,6 @@ jobs:
220215
with:
221216
python-version: '3.11'
222217
cache: 'pip'
223-
- name: Install Protoc
224-
uses: arduino/setup-protoc@v3
225-
with:
226-
version: "25.x"
227218
- name: Install build tool
228219
run: pip install build
229220
- name: Building package
@@ -236,8 +227,16 @@ jobs:
236227
publish:
237228
name: Publish to PyPi
238229
if: github.repository == 'Eeems-Org/remarkable-update-fuse' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
239-
needs: [build-sdist]
230+
needs:
231+
- build-sdist
232+
- build-wheel
240233
runs-on: ubuntu-latest
234+
strategy:
235+
matrix:
236+
artifact:
237+
- 'pip-sdist'
238+
- 'pip-wheel-3.11'
239+
- 'pip-wheel-3.12'
241240
permissions:
242241
id-token: write
243242
contents: write
@@ -249,7 +248,7 @@ jobs:
249248
id: download
250249
uses: actions/download-artifact@v4
251250
with:
252-
name: pip-sdist
251+
name: ${{ matrix.artifact }}
253252
- name: Publish package distributions to PyPI
254253
uses: pypa/gh-action-pypi-publish@release/v1
255254
with:
@@ -274,7 +273,6 @@ jobs:
274273
- 'pip-sdist'
275274
- 'pip-wheel-3.11'
276275
- 'pip-wheel-3.12'
277-
- 'pip-wheel-3.13'
278276
permissions:
279277
contents: write
280278
steps:

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "remarkable_update_fuse"
3-
version = "1.2.2"
3+
version = "1.2.3"
44
authors = [
55
{ name="Eeems", email="[email protected]" },
66
]
77
description = "Userspace filesystem for remarkable update files"
8-
requires-python = ">=3.11"
8+
requires-python = ">=3.11,<3.13"
99
classifiers = [
1010
"Development Status :: 4 - Beta",
1111
"Environment :: Console",
@@ -41,5 +41,5 @@ dependencies = {file = ["requirements.txt"]}
4141
readme = {file= ["README.md"], content-type = "text/markdown"}
4242

4343
[build-system]
44-
requires = ["setuptools>=42", "wheel", "nuitka", "toml"]
44+
requires = ["setuptools>=42", "wheel", "nuitka"]
4545
build-backend = "nuitka.distutils.Build"

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
fuse-python==1.0.7
2-
remarkable-update-image==1.1.3
1+
fuse-python==1.0.9
2+
remarkable-update-image==1.1.4

0 commit comments

Comments
 (0)