Skip to content

Commit f9e1098

Browse files
ratalclaude
andcommitted
fix: suppress License-File via setup.cfg, remove pyproject.toml entirely
pyproject.toml [project] table always conflicts with setup.py. setup.cfg license_files= suppresses the License-File metadata field without needing pyproject.toml at all. Release builds use --no-build-isolation so CIBW_BEFORE_BUILD packages are visible. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 43e9625 commit f9e1098

6 files changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
python-version: ${{ matrix.python-version }}
1919
- name: Install dependencies
2020
run: |
21-
pip install "setuptools>=68,<76" numpy cython lxml sympy pytest
21+
pip install setuptools numpy cython lxml sympy pytest
2222
python setup.py build_ext --inplace
2323
pip install -e ".[export]"
2424
- name: Run tests

.github/workflows/release-linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*"
2424
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
2525
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
26+
CIBW_BEFORE_BUILD: pip install setuptools numpy cython
27+
CIBW_BUILD_FRONTEND: "pip; args: --no-build-isolation"
2628
CIBW_TEST_COMMAND: python -c "import mdfreader"
2729
- uses: actions/upload-artifact@v4
2830
with:

.github/workflows/release-macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
env:
1515
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*"
1616
CIBW_ARCHS: x86_64 arm64
17+
CIBW_BEFORE_BUILD: pip install setuptools numpy cython
18+
CIBW_BUILD_FRONTEND: "pip; args: --no-build-isolation"
1719
CIBW_TEST_COMMAND: python -c "import mdfreader"
1820
- uses: actions/upload-artifact@v4
1921
with:

.github/workflows/release-windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
uses: pypa/cibuildwheel@v2.22
1414
env:
1515
CIBW_BUILD: "cp39-win_amd64 cp310-win_amd64 cp311-win_amd64 cp312-win_amd64 cp313-win_amd64"
16+
CIBW_BEFORE_BUILD: pip install setuptools numpy cython
17+
CIBW_BUILD_FRONTEND: "pip; args: --no-build-isolation"
1618
CIBW_TEST_COMMAND: python -c "import mdfreader"
1719
- uses: actions/upload-artifact@v4
1820
with:

pyproject.toml

Lines changed: 0 additions & 10 deletions
This file was deleted.

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ universal=1
44
inplace=1
55
[options]
66
setup_requires = cython
7+
license_files =
78

89
[tool:pytest]
910
testpaths = mdfreader/tests

0 commit comments

Comments
 (0)