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

Changing python's upper limit version to python<3.12 #158

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

axiomcura
Copy link
Member

@axiomcura axiomcura commented Feb 10, 2024

Description

Thank you for your contribution to CytoTable!
Please succinctly summarize your proposed change.
What motivated you to make this change?

This PR addresses the current compatibility issues between duckdb and Python 3.12. As duckdb does not yet support Python 3.12, it is best to downgrade the upper limit of the Python version in the environment poetry.lock file.

Below is the current issue

Issue mentioned: duckdb/duckdb#9301 (comment)
Current PR (however closed) : duckdb/duckdb#9222

Changes:

  • Downgrade the upper limit Python version to Python <3.12 to maintain compatibility with duckdb.

Additionally, I have written an issue explaining why Python >3.12 does not work with DuckDB, which directly impacts the installation of CytoTable. #157

Please also link to any relevant issues that your code is associated with.

What is the nature of your change?

  • Bug fix (fixes an issue).
  • Enhancement (adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • This change requires a documentation update.

Checklist

Please ensure that all boxes are checked before indicating that a pull request is ready for review.

  • I have read the CONTRIBUTING.md guidelines.
  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • New and existing unit tests pass locally with my changes.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have deleted all non-relevant text in this pull request template.

@axiomcura axiomcura changed the title changed python upperlimit version to 3.12 Changing python's upper limit version to python<3.12 Feb 10, 2024
@axiomcura axiomcura requested a review from d33bs February 10, 2024 22:17
Copy link
Member

@d33bs d33bs left a comment

Choose a reason for hiding this comment

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

Thanks @axiomcura ! Looks great. Before an approval, could you make sure there are no changes to the poetry.lock file as a result of this change (adding those changes here if there are any updates)?

@axiomcura
Copy link
Member Author

Hello @d33bs Just check my editor and no changes that being shown in the poetry.lock file.

@d33bs
Copy link
Member

d33bs commented Feb 13, 2024

Hi @axiomcura , thanks for checking. When updates are made to the project.toml dependencies (including the Python version) there typically are lockfile updates to be made. These manifest when running poetry install among other places. I recommend running poetry lock --no-update to help observe any possible changes.

@kenibrewer
Copy link
Member

kenibrewer commented Feb 13, 2024 via email

@d33bs
Copy link
Member

d33bs commented Feb 14, 2024

Thanks @kenibrewer ! I think it's a good idea to include Poetry pre-commit checks for the lockfile! I have a vague recollection there may have been slight inconsistency between Poetry lockfiles from OS to OS (for example, MacOS vs Ubuntu Linux), incurring an "endless loop" of pre-commit check fix-failures. Either way, it'd be great to have this functionality if we can get it working! I'll add an issue to this effect.

@d33bs
Copy link
Member

d33bs commented Mar 13, 2024

Hi @axiomcura - I wanted to double check whether you were able to adjust the lockfile with the updates related to your changes. Please don't hesitate to let me know if I may assist.

@d33bs d33bs mentioned this pull request Mar 14, 2024
13 tasks
@axiomcura
Copy link
Member Author

Hey @d33bs sorry for the late response, Just ran poetry lock no-update there are some changes. Would you like me to push those changes into this PR?

@d33bs
Copy link
Member

d33bs commented Mar 19, 2024

Hi @axiomcura, no worries at all - I suggest updating your forked branch at axiomcura:python3.11-upperlimit from cytomining:main, re-running poetry lock --no-update, and checking that pre-commit run -a passes.

@axiomcura
Copy link
Member Author

@d33bs poetry-lock file update added!

@d33bs
Copy link
Member

d33bs commented Mar 19, 2024

Hi @axiomcura, thanks! It looks like your forked branch has a conflict that we need to address before merging. Could you update your forked branch from cytomining:main and re-run poetry lock --no-update (checking that all pre-commit run -a also passes)?

@axiomcura
Copy link
Member Author

@d33bs I have updated my branch and reran poetry lock --no-update should work now!

Copy link
Member

@d33bs d33bs left a comment

Choose a reason for hiding this comment

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

Thanks @axiomcura - LGTM! Appreciate your help with this! Please feel free to squash + merge when ready.

@axiomcura
Copy link
Member Author

Merging! Thank you!

@axiomcura axiomcura merged commit 41c7953 into cytomining:main Mar 19, 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.

3 participants