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

Fix(725): Add support for building the package in Python 3.12 #726

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

PacificGilly
Copy link
Contributor

Description

As discussed in the issue, there is an issue when installing this package using Python 3.12. The problem is caused by
PEP-632 removes distutils from the built-in libraries this version of Python is shipped with. In versions 6.0.0 and lower of PyYaml, this causes the build to fail. As mentioned in their issue, using v6.0.1 or later will resolve this issue. So, we are updating our setup.py install_requires dependency specifications to reflect this.

While I'm here, I've also updated the classifiers to include support for PY3.12 and show this more clearly in the repo's README.

Checklist

  • I have updated the CHANGELOG (if applicable)
  • I have followed the Shopify Python guide

As discussed in the [issue](Shopify#725)
there is an issue when trying to install this package when using
Python 3.12. The issue is caused by
[PEP-632](https://peps.python.org/pep-0632/) removing `distutils` from
the built-in libraries this version of python is shipped with. In
versions 6.0.0 and lower of PyYaml, this causes the build the fail. As
mentioned in their [issue](yaml/pyyaml#756)
using v6.0.1 or later will resolve this issue. So updating our
`setup.py` install_requires dependency specifications to reflect this.

While I'm here, also update the classifiers to include support for
PY3.12 and show this more clearly on the README of the repo.
@PacificGilly
Copy link
Contributor Author

I have signed the CLA!

Copy link
Contributor

@paulomarg paulomarg left a comment

Choose a reason for hiding this comment

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

Thanks for contributing!

@paulomarg paulomarg merged commit 20c9be9 into Shopify:main Jul 9, 2024
7 checks passed
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.

2 participants