Skip to content

Commit 8c05c44

Browse files
authored
Merge pull request #221 from ratal/dev
MDF4.3
2 parents 04789cb + 44bed56 commit 8c05c44

20 files changed

Lines changed: 39143 additions & 29154 deletions

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["dev", "master"]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
pip install setuptools numpy cython lxml sympy pytest
22+
python setup.py build_ext --inplace
23+
pip install -e ".[export]"
24+
- name: Run tests
25+
run: pytest mdfreader/tests/ -k "not test_compare_mdfr" --tb=short -q
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release Linux wheels
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
7+
jobs:
8+
build:
9+
name: Build manylinux wheels (${{ matrix.arch }})
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
arch: [x86_64, aarch64]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up QEMU (for aarch64)
17+
if: matrix.arch == 'aarch64'
18+
uses: docker/setup-qemu-action@v3
19+
- name: Build wheels
20+
uses: pypa/cibuildwheel@v2.22
21+
env:
22+
CIBW_ARCHS: ${{ matrix.arch }}
23+
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*"
24+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
25+
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
26+
CIBW_BEFORE_BUILD: pip install numpy cython
27+
CIBW_TEST_COMMAND: python -c "import mdfreader"
28+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: wheel-linux-${{ matrix.arch }}
31+
path: wheelhouse/*.whl
32+
33+
publish:
34+
needs: build
35+
runs-on: ubuntu-latest
36+
permissions:
37+
id-token: write
38+
steps:
39+
- uses: actions/download-artifact@v4
40+
with:
41+
pattern: wheel-linux-*
42+
merge-multiple: true
43+
path: dist/
44+
- uses: pypa/gh-action-pypi-publish@release/v1
45+
with:
46+
password: ${{ secrets.PYPI_TOKEN }}
47+
skip-existing: true
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release macOS wheels
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
7+
jobs:
8+
build:
9+
runs-on: macos-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Build wheels
13+
uses: pypa/cibuildwheel@v2.22
14+
env:
15+
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*"
16+
CIBW_ARCHS: x86_64 arm64
17+
CIBW_BEFORE_BUILD: pip install numpy cython
18+
CIBW_TEST_COMMAND: python -c "import mdfreader"
19+
- uses: actions/upload-artifact@v4
20+
with:
21+
name: wheel-macos
22+
path: wheelhouse/*.whl
23+
24+
publish:
25+
needs: build
26+
runs-on: ubuntu-latest
27+
permissions:
28+
id-token: write
29+
steps:
30+
- uses: actions/download-artifact@v4
31+
with:
32+
name: wheel-macos
33+
path: dist/
34+
- uses: pypa/gh-action-pypi-publish@release/v1
35+
with:
36+
password: ${{ secrets.PYPI_TOKEN }}
37+
skip-existing: true
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release Windows wheels
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
7+
jobs:
8+
build:
9+
runs-on: windows-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Build wheels
13+
uses: pypa/cibuildwheel@v2.22
14+
env:
15+
CIBW_BUILD: "cp39-win_amd64 cp310-win_amd64 cp311-win_amd64 cp312-win_amd64 cp313-win_amd64"
16+
CIBW_BEFORE_BUILD: pip install numpy cython
17+
CIBW_TEST_COMMAND: python -c "import mdfreader"
18+
- uses: actions/upload-artifact@v4
19+
with:
20+
name: wheel-windows
21+
path: wheelhouse/*.whl
22+
23+
publish:
24+
needs: build
25+
runs-on: ubuntu-latest
26+
permissions:
27+
id-token: write
28+
steps:
29+
- uses: actions/download-artifact@v4
30+
with:
31+
name: wheel-windows
32+
path: dist/
33+
- uses: pypa/gh-action-pypi-publish@release/v1
34+
with:
35+
password: ${{ secrets.PYPI_TOKEN }}
36+
skip-existing: true

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ _eric4project/
77
.ropeproject/
88
_ropeproject/
99
.directory/
10+
.idea
1011
*.pyc
1112
*.pyo
1213
*.orig
@@ -19,3 +20,16 @@ __pycache__/
1920
*.DS_Store
2021
/dist/
2122
/*.egg-info
23+
docs/build
24+
build
25+
.vscode
26+
cov-int
27+
cython_debug
28+
mdfconverter/platforms
29+
mdfreader/tests/mdf3
30+
mdfreader/tests/MDF4
31+
mdfconverter/Ui_mdfreaderui.py
32+
dataRead.so
33+
dataRead.c
34+
.pytest_tmp/
35+
.claude/settings.json

0 commit comments

Comments
 (0)