jazzband / pip-tools

A set of tools to keep your pinned Python dependencies fresh.
https://pip-tools.rtfd.io
BSD 3-Clause "New" or "Revised" License
7.67k stars 608 forks source link

python3.12 failing on windows #2021

Open joamatab opened 9 months ago

joamatab commented 9 months ago

python3.12 is failing on windows

https://github.com/heitzmann/gdstk/actions/runs/6926100983/job/18837734236

chrysle commented 9 months ago

Note we haven't added official Python 3.12 support yet. A pull request adding that and fixing the compatibility issue would be welcome.

webknjaz commented 8 months ago

Hey, Joaquin! How are you doing?

Thanks for filing this! Your workflow has multiple shell commands in the same step, which makes it hard to match different bits of output with what produced them. Do you mind splitting them so that it's obvious what's actually happening?

For example, the PyYAML error is likely coming from one of your own pip invocations, and not from pip-tools.

AFAICS, the following is happening:

To summarize, your problem isn't coming from pip-tools, but from something you're trying to install before invoking it. My advice is to separate steps in GHA — it's really helpful to have env configuration and other commands distinguishable and I follow this practice everywhere, specifically because of confusions like this one.

I'll keep the issue open since we still need to update the trove classifiers in the packaging metadata and add a 3.12 job to CI (for which a PR is welcome, by the way!)