Skip to content

No more pipes #67496

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 2 commits into from
Jul 26, 2023
Merged

No more pipes #67496

merged 2 commits into from
Jul 26, 2023

Conversation

kavon
Copy link
Member

@kavon kavon commented Jul 24, 2023

eliminates pipes in favor of shlex in our python utilites.

This solves deprecation warnings in build-script:

DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13

This change assumes that the minimum version
of Python3 is 3.3, which has shlex.quote.

Since our build bots currently use 3.6 as their
Python version, we can't yet use shlex.join
to further simplify some of the code using
quote.

@kavon
Copy link
Member Author

kavon commented Jul 24, 2023

@swift-ci please test

@kavon
Copy link
Member Author

kavon commented Jul 25, 2023

last failure was due to the python linter not liking the order of imports

@kavon
Copy link
Member Author

kavon commented Jul 25, 2023

@swift-ci please test and merge

This solves deprecation warnings in build-script:

```
DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
```

This change assumes that the minimum version
of Python3 is 3.3, which has `shlex.quote`.

Since our build bots currently use 3.6 as their
Python version, we can't yet use `shlex.join`
to further simplify some of the code using
quote.
@kavon
Copy link
Member Author

kavon commented Jul 25, 2023

turns out the linter test doesn't report all issues it found.

@kavon
Copy link
Member Author

kavon commented Jul 25, 2023

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit 8c05d55 into swiftlang:main Jul 26, 2023
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