Skip to content

Commit 95226da

Browse files
committed
Remove empty pytest.ini allegedly needed by test entrypoints
This file was unintentionally being left behind by setuptools wheel packaging and is now effectively being reintroduced by the switch to hatchling. It looks like it was only used in a misguided way to prevent the hook-sample test not use the root pytest.ini. It's unclear what re-adding this file could do so I reckon it's safer to preserve the old unintended behaviour by removing it.
1 parent 255305d commit 95226da

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,10 @@ jobs:
307307
308308
- name: Run hooksample tests
309309
run: |
310-
# The ``run_tests`` script is invoked with the ``-c`` option to
311-
# specify a ``pytest.ini``, rather than allowing pytest to find
312-
# something unexpected in the filesystem (it searches from the root
313-
# dir all the way to the top of the filesystem per
314-
# https://docs.pytest.org/en/latest/customize.html).
315-
python -m PyInstaller.utils.run_tests -c PyInstaller/utils/pytest.ini --include_only=pyi_hooksample.
310+
# The ``run_tests`` script is invoked somewhere outside of the pyinstaller git clone to prevent pytest from
311+
# loading PyInstaller's pytest.ini.
312+
cd ~
313+
python -m PyInstaller.utils.run_tests --include_only=pyi_hooksample.
316314
317315
test-alpine:
318316
runs-on: ubuntu-latest

PyInstaller/utils/pytest.ini

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)