From b6e17b640f736302dacab69b367c20b2022188aa Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Sat, 11 Jul 2026 15:45:51 +0100 Subject: [PATCH] refactor: remove NSS handling from the release workflow Drops the NSS-specific machinery from release.yml now that af.NSS is gone (PyAutoFit#1356): the PyAutoFit `pytest --ignore=.../nss` special-case collapses to a plain `pytest`, and the stale `unittest_nss` comment goes. The general direct-reference-URL guard is kept (useful beyond NSS) but de-NSS'd in its comments. Issue: PyAutoFit#1356 Co-Authored-By: Claude Opus 4.8 --- .github/workflows/release.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0dc1670..d22bc71 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -131,7 +131,7 @@ jobs: popd - name: Check built distributions for direct-reference URLs run: | - # Surface the [nss] git+ direct-URL footgun early and loudly. PyPI and + # Surface any git+ direct-URL footgun early and loudly. PyPI and # TestPyPI reject any uploaded wheel/sdist whose metadata carries a # PEP 508 direct-reference dependency (e.g. `pkg @ git+https://...`); # twine would otherwise fail the upload with a raw HTTP 400. We fail @@ -162,7 +162,7 @@ jobs: print('ERROR: direct-reference (git+/url) dependencies in built metadata:') for origin, line in offending: print(f' {origin}: {line}') - print('TestPyPI/PyPI will reject these (the historical [nss] failure).') + print('TestPyPI/PyPI will reject these direct-reference URLs.') sys.exit(1) print('OK: no direct-reference URLs in built distribution metadata.') PY @@ -247,16 +247,7 @@ jobs: pip install pynufft==2025.1.1 pip install pytest pip install numba - # PyAutoFit's NSS tests need the handley-lab blackjax fork + - # yallup/nss, which can't live in the [nss] extra because - # PyPI bans direct git+ URLs in uploaded wheels. They're tested - # separately in PyAutoFit's own unittest_nss job. Here we only - # exercise the TestPyPI-installable surface, so skip them. - if [ "${{ matrix.project.path }}" = "PyAutoFit" ]; then - python3 -m pytest --ignore=test_autofit/non_linear/search/nest/nss - else - python3 -m pytest - fi + python3 -m pytest run_smoke_tests: runs-on: ubuntu-latest