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

Cython3 migration #249

Merged
merged 7 commits into from
Mar 29, 2024
Merged

Cython3 migration #249

merged 7 commits into from
Mar 29, 2024

Conversation

mayantaylor
Copy link
Collaborator

Migrating to Cython 3 from Cython 0.29 (relevant Cython docs here)

Most notably, this involves supporting Cython with language_level=3 (as Cython3 drops support for Python2). I'm marking supporting python functions in charmlib_cython.pyx as noexcept to match the c++ function signatures, but I'm not sure if this is the best approach or if exception types should be specified instead. Relevant Cython change documented here.

@mayantaylor mayantaylor self-assigned this Mar 29, 2024
@mayantaylor mayantaylor added the enhancement New feature or request label Mar 29, 2024
@mayantaylor mayantaylor marked this pull request as ready for review March 29, 2024 16:02
Copy link
Contributor

@matthiasdiener matthiasdiener left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@mayantaylor
Copy link
Collaborator Author

Note that cython compiler conditionals (IF) are deprecated and will be removed in a later release. Relevant Cython issue here. There are a couple uses of IF in charmlib_cython.pyx that will need to be handled in the future.

Copy link
Contributor

@adityapb adityapb left a comment

Choose a reason for hiding this comment

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

LGTM

@adityapb adityapb merged commit 8d8b881 into main Mar 29, 2024
1 check passed
@mayantaylor mayantaylor deleted the maya/cython-migration branch March 29, 2024 16:50
@adityapb adityapb mentioned this pull request Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants