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

Restore support for Python 3.9 #21

Merged
merged 7 commits into from
May 3, 2024

Conversation

KyleFromNVIDIA
Copy link
Contributor

@KyleFromNVIDIA KyleFromNVIDIA commented May 3, 2024

#19 added MyPy linting, but CI did not run under Python 3.9, so the new type annotation syntax was used. Use the old syntax to support Python 3.9, and run CI in Python 3.9.

@KyleFromNVIDIA KyleFromNVIDIA requested a review from a team as a code owner May 3, 2024 14:45
@KyleFromNVIDIA KyleFromNVIDIA requested a review from a team as a code owner May 3, 2024 15:16
Copy link
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

Thanks!

I thought that maybe typing.Union was deprecated and that's why I saw so much RAPIDS code preferring the x | y type of syntax. But checked https://docs.python.org/3/library/stdtypes.html#types-union and I don't see any indication of that, so totally support this.

To help others understand the purpose for this PR if they find it in the future, linking these two things here:

I left one small comment, but do what you want with it... I don't need to review again.

rapids_build_backend/config.py Outdated Show resolved Hide resolved
@KyleFromNVIDIA KyleFromNVIDIA merged commit 0c7e6d1 into rapidsai:main May 3, 2024
3 checks passed
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

Is it possible to continue using the latest CI images and instead configure mypy to do type-checking with Python 3.9 support? https://mypy.readthedocs.io/en/stable/config_file.html#confval-python_version

@KyleFromNVIDIA
Copy link
Contributor Author

We could, but I really want to test the whole thing with Python 3.9 anyway, to prevent the usage of other post-3.9 features.

KyleFromNVIDIA added a commit that referenced this pull request May 8, 2024
#21 restored Python 3.9 support, but used hard-coded CI images. Use
https://github.com/rapidsai/shared-workflows to select an appropriate CI
image.
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