Skip to content

CI fixes#398

Open
lazka wants to merge 8 commits intopypa:mainfrom
lazka:fix-ci-somewhat
Open

CI fixes#398
lazka wants to merge 8 commits intopypa:mainfrom
lazka:fix-ci-somewhat

Conversation

@lazka
Copy link
Copy Markdown
Contributor

@lazka lazka commented Feb 10, 2026

Some small fixes here and there, see the commits for details.

@lazka lazka changed the title Try to make CI green again CI fixes Feb 10, 2026
Comment thread distutils/tests/test_filelist.py Outdated
@Avasam
Copy link
Copy Markdown
Contributor

Avasam commented Feb 11, 2026

Ruff & mypy: Up to the maintainers, but I'd rather see #392

I'll bump them back in follow-up PRs anyway.

@lazka lazka force-pushed the fix-ci-somewhat branch 2 times, most recently from 09abf8a to c00c632 Compare February 11, 2026 19:49
lazka added 4 commits April 17, 2026 21:51
Otherwise it installs the packages present at the time the
installer was releases, which for some reason was broken the
last time.

Enable updates so the newest versions are used.
the platform strings are different there compared to the
official CPython distributions, so just skip the test there.
Downgrade to a version which succeeds with the current code.
This makes sure that new ruff/mypy releases don't break the CI.

Feel free to fix things and update to newer versions.
@lazka lazka force-pushed the fix-ci-somewhat branch from c00c632 to 24363f4 Compare April 17, 2026 19:52
@lazka
Copy link
Copy Markdown
Contributor Author

lazka commented Apr 17, 2026

dropping of py 3.9 on main broke things again.

I'm having a hard time caring about any of this at this point though if CI is just ignored.

06da572 bumped the minimum Python version without fixing
the resulting ruff errors. Target 3.9 again to keep CI green.
@lazka
Copy link
Copy Markdown
Contributor Author

lazka commented Apr 17, 2026

and we are back

lazka added 3 commits April 18, 2026 18:30
Now tha 3.9 is no longer supported. 3.12 is the next
supported version in Cygwin.
Things fail with
git introspection failed: fatal: detected dubious ownership in repository at '/cygdrive/d/a/distutils/distutils'

I don't know what the real problem is, but just ignore permissions to get things green.
In python/cpython@b9d4318
the logic was changed to no longer depend on sys.version for detecting
the platform, so mocking it no longer works.

Since get_host_platform() just forwards to sysconfig.get_platform(), there isn't much
left to test, so just test that they return the same platform.
@lazka lazka force-pushed the fix-ci-somewhat branch from 084d1f2 to 174d6c3 Compare April 18, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants