Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use sys.platform over os.name #26576

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

Merged
merged 1 commit into from
Aug 23, 2023
Merged

Use sys.platform over os.name #26576

merged 1 commit into from
Aug 23, 2023

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Aug 22, 2023

PR summary

mypy does not recognize the latter [1], and there is a typing failure on Windows because of os.geteuid.

[1] python/mypy#13002

PR checklist

mypy does not recognize the latter [1], and there is a typing failure on
Windows because of `os.geteuid`.

[1] python/mypy#13002
@QuLogic QuLogic added OS: Microsoft CI: Run cygwin Run cygwin tests on a PR labels Aug 22, 2023
@QuLogic QuLogic added this to the v3.8.0 milestone Aug 22, 2023
@QuLogic
Copy link
Member Author

QuLogic commented Aug 23, 2023

Hmm, am I missing something, or did Cygwin not actually run? I definitely wanted to check that.

@QuLogic QuLogic added CI: Run cygwin Run cygwin tests on a PR and removed CI: Run cygwin Run cygwin tests on a PR labels Aug 23, 2023
@ksunden
Copy link
Member

ksunden commented Aug 23, 2023

Hmmm... the workflow looks like it should work and it appears to have worked recently on #26543 so not sure what is going on there... I'll close/open to cycle and see if it gets picked up... could be that the there is a narrow path where it doesn't quite get the right conditions... (which we should maybe try and figure out, but I'm at a bit of a loss)

@ksunden ksunden closed this Aug 23, 2023
@ksunden ksunden reopened this Aug 23, 2023
@ksunden ksunden added CI: Run cygwin Run cygwin tests on a PR OS: Microsoft and removed OS: Microsoft CI: Run cygwin Run cygwin tests on a PR labels Aug 23, 2023
@ksunden
Copy link
Member

ksunden commented Aug 23, 2023

paths:
- 'src/**'
- '.github/workflows/cygwin.yml'

I think it is failing to be triggered because no files in src (or the cygwin workflow file) were touched...

We may wish to reconsider that restriction, at least for the "run because I labeled it" case, (though that may be hard to separate out)

For now, I think you should be able to run it as a manually triggered run on your fork (I have the option on my fork, but can't trigger it on yours)

@QuLogic
Copy link
Member Author

QuLogic commented Aug 23, 2023

OK, looks like it passed on my fork: https://github.com/QuLogic/matplotlib/actions/runs/5955561881/job/16154461275

@ksunden ksunden merged commit 41505e2 into matplotlib:main Aug 23, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Aug 23, 2023
@QuLogic QuLogic deleted the sys-platform branch August 23, 2023 20:37
QuLogic added a commit that referenced this pull request Aug 24, 2023
…576-on-v3.8.x

Backport PR #26576 on branch v3.8.x (Use sys.platform over os.name)
@ksunden ksunden mentioned this pull request Sep 15, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Run cygwin Run cygwin tests on a PR OS: Microsoft
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants