Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve windows 3.8 issue #98

Merged
merged 3 commits into from
Oct 12, 2022
Merged

Resolve windows 3.8 issue #98

merged 3 commits into from
Oct 12, 2022

Conversation

sondrelg
Copy link
Member

@sondrelg sondrelg commented Oct 11, 2022

Adds the Python matrix to the non-default settings test. This would have uncovered the issue from #94. Then it resolves #94 by avoiding the official installation script for Windows targets.

A few things to consider:

  • It would have been nice to limit the logic to Windows for Python <= 3.8, but we cannot reliably know what Python version is active, can we? I believe using setup-python after this action works most of the time, if not all of the time.
  • This just reverts to the old installation script. Are there any reasons to consider using a newer version of it?

@sondrelg sondrelg changed the title Resolve 3.8 issue Resolve windows 3.8 issue Oct 11, 2022
@sondrelg sondrelg changed the base branch from main to general-updates October 11, 2022 08:31
@sondrelg sondrelg force-pushed the 3.8-test branch 4 times, most recently from b749a3f to decda74 Compare October 11, 2022 09:21
@sondrelg sondrelg marked this pull request as ready for review October 11, 2022 09:34
@sondrelg sondrelg requested review from JonasKs and miigotu October 11, 2022 09:37
@sondrelg
Copy link
Member Author

@miigotu looking at the poetry upstream issue, they recommend using powershell (default windows shell) instead of bash. Perhaps we should spend a little effort looking into whether we can create an ergonomic way of setting up an os-matrix with powershell as the shell for windows.

We could even go as far as outputting specific errors for windows bash users, telling them to switch to powershell on python 3.7 and 3.8, though perhaps that should be considered a breaking change.

Just thinking out loud 🤔

@miigotu
Copy link
Collaborator

miigotu commented Oct 11, 2022

I think we should support both methods. I can look a bit at it later, tonight.

I do have a huge project coming up (with a new developer joining) on sickchill. Rewriting the entire UI with jinja2, webpack, reactjs, and a flask backend on top of reorganizing the entire user flow for shows and settings.

So I'll be on to get a wire frame up for him and take a look at poetry PowerShell.

@sondrelg
Copy link
Member Author

Yeah it now seems like the bash bug could be fixed, so yeah sounds better to support both. Maybe we should merge this in the meantime to fix v1

@miigotu
Copy link
Collaborator

miigotu commented Oct 11, 2022

Yes I believe so. And maybe a refactor to support both bash, cmd, and PowerShell should be a major version bump, even though any shell they have set should work then.

@miigotu
Copy link
Collaborator

miigotu commented Oct 11, 2022

Does the fix in #95 not work with the newest poetry installer script?

I'd much rather not pin an old installer, as there are a bunch of new configuration settings we can expose with it

@@ -3,7 +3,12 @@
set -eo pipefail

INSTALLATION_SCRIPT="$(mktemp)"
curl -sSL https://install.python-poetry.org/ --output "$INSTALLATION_SCRIPT"

if [ "${RUNNER_OS}" == "Windows" ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dislike this much lol, can we fix this another way to keep using the latest installer?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what we were doing prior to v1.3.2, one week ago, so in that sense it's not a huge change; but I agree I would never accept this if we had been on the official installation script from the beginning.

As far as I can tell there isn't another way to do this, until the upstream bug is fixed; but I would consider this a temporary band-aid until that happens. Maybe we could even assist in that. It would just be nice to have this working on the @v1 tag for windows users in the meantime.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Just need to fix it somehow after the release. Can you link the upstream issue?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened an issue for powershell support, and one to remove the deprecated installation script. Will merge this now and release v1.3.3 👍

Base automatically changed from general-updates to main October 12, 2022 01:24
Ideally we would use the official source, but there's an
open issue (looks like it might be a wontfix) here
python-poetry/install.python-poetry.org#46
that's causing issues for Windows users
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.

Windows Latest on Python 3.8 Constantly Fails
2 participants