Skip to content

chore: extract glob for pyupgrade to separate script for cross-platform compatibility#950

Merged
jkowalleck merged 6 commits intoCycloneDX:mainfrom
peschuster:pyupgrade-crossplatform
Mar 23, 2026
Merged

chore: extract glob for pyupgrade to separate script for cross-platform compatibility#950
jkowalleck merged 6 commits intoCycloneDX:mainfrom
peschuster:pyupgrade-crossplatform

Conversation

@peschuster
Copy link
Copy Markdown
Contributor

Currently pyupgrade cannot be run on Windows due to 'sh' in tox.ini not working in PowerShell.

Adding a separate script for this might be controversial.
I could not find another solution that is platform independent, except from inline python in tox.ini which got "complicated" due to {posargs}. However, if anyone has a better idea, this could be reworked.

AI Tool Disclosure

  • My contribution includes AI-generated content, as disclosed below:
    • The contents of the new script is based on suggestions from Claude Sonnet 4.6

Affirmation

@peschuster peschuster requested a review from a team as a code owner March 17, 2026 14:52
@peschuster peschuster force-pushed the pyupgrade-crossplatform branch from 0730b36 to f91065d Compare March 21, 2026 13:38
…rm compatibility

'sh' in tox.ini does not work on Windows in PowerShell.

Signed-off-by: Peter Schuster <p.schuster@pilz.de>
@peschuster peschuster force-pushed the pyupgrade-crossplatform branch from f91065d to 53bb407 Compare March 21, 2026 13:39
@peschuster peschuster requested a review from jkowalleck March 21, 2026 13:40
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@jkowalleck jkowalleck merged commit e492b84 into CycloneDX:main Mar 23, 2026
3 checks passed
@jkowalleck
Copy link
Copy Markdown
Member

thank you very much for taking care of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants