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

Remove backports.tempfile for Python compatibility and bump version #134

Merged
merged 4 commits into from
Oct 10, 2024

Conversation

d33bs
Copy link
Member

@d33bs d33bs commented Oct 10, 2024

This PR updates cytominer-database to remove the backports.tempfile dependency which sometimes can cause issues with Python versions and/or various architectures (see here for a related error from a Pycytominer conda build). I've bumped the patch version as I feel we need to release this to PyPI and Conda-forge in order to work around any places where backports.tempfile may be causing issues (like the Pycytominer build mentioned).

Along the journey towards this PR I noticed that csvkit>=2 has an API change which appears to cause many failing tests. As a result I set a maximum range to avoid these errors. Additionally, the Pandas SQL API had changed so I needed to make adjustments to tests in order for them to pass.

I ran tests with Python 3.8.19 to be cautious of any other remaining changes we might need to make for passing tests (given the deprecated status of this project). My steps for testing were the following (please let me know if I missed something):

  • pip install -e .
  • pip install pytest
  • python -m pytest

References conda-forge/pycytominer-feedstock#11

@d33bs d33bs requested a review from gwaybio October 10, 2024 16:50
Copy link
Member

@gwaybio gwaybio left a comment

Choose a reason for hiding this comment

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

amazing to have tracked this down, and so quickly! kudos!

@d33bs
Copy link
Member Author

d33bs commented Oct 10, 2024

Thanks @gwaybio for the review! Going to merge this in now and work towards a GitHub and PyPI release.

@d33bs d33bs merged commit a138e95 into cytomining:master Oct 10, 2024
@d33bs d33bs deleted the remove-backports.tempfile branch October 10, 2024 17:06
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