-
Notifications
You must be signed in to change notification settings - Fork 1
Python 3.12 support #193
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
Python 3.12 support #193
Conversation
| from pkg_resources import resource_filename | ||
| from importlib.resources import files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pkg_resources package is also removed in Python 3.12, so it was replaced by importlib.resources.
| result, | ||
| "analysis/{}/03typing/callplots".format(wildcards.sample), | ||
| sample=wildcards.sample, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Snakemake has weird problems with f-strings in Python 3.12, so calling the str.format function in a few places.
| linkfile = f"{params.outdir}/R{end}-fastqc.html" | ||
| # Snakemake f-strings break with Python 3.12: https://github.com/snakemake/snakemake/issues/2648 | ||
| linkfile = "{}/R{}-fastqc.html".format(params.outdir, end) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's another.
This PR is enabling Python 3.12 support. This involved a versioneer upgrade, not only for the main package but also for accessory packages. The happer package was integrated into MicroHapulator as it probably never should have been an independent package. This eliminated one additional source of 3.12 incompatibility. The remaining source of incompatibility is MicroHapDB, whose version 0.12 release will be required before this PR can be merged.