Skip to content

Switch to poetry and update dependencies#49

Open
jnation3406 wants to merge 1 commit intomainfrom
fix/poetry_and_update_deps
Open

Switch to poetry and update dependencies#49
jnation3406 wants to merge 1 commit intomainfrom
fix/poetry_and_update_deps

Conversation

@jnation3406
Copy link
Copy Markdown
Member

Switch out setup.py for poetry and update dependencies. Once ocs_archive branch is merged, I will update this PR to point to its latest version 0.5.0 instead of the git branch.

Copy link
Copy Markdown

@jashan-lco jashan-lco left a comment

Choose a reason for hiding this comment

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

This all looks good, but we've been having issues with Poetry in Banzailand and I think a few projects have moved to uv. I'm wondering if that should be our new "default".

boto3 = ">=1,<2"
requests = ">=2,<3"
python-dateutil = ">=2,<3"
astropy = "^7"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does any of this actually break with astropy < 7? It would be easier if the constraint was >=6 and numpy was >= 1.24. Astropy has so many versions, restricting to 7 will severely limit backward compatibility.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

so If I make the astropy >6, numpy >1.24, then poetry fails on newer python since those pythons require astropy 7, numpy 2 and poetry solves for ALL pythons to be valid. I tried doing a matrix of astropy/numpy/python versions and poetry still failed. So I think its just a limitation of poetry, but maybe uv fixes that?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe it's not worth trying to support all the old numpys.

@cmccully
Copy link
Copy Markdown

cmccully commented Apr 2, 2026

I am indeed migrating banzai over to using uv to manage pytorch dependencies better.

@cmccully
Copy link
Copy Markdown

cmccully commented Apr 2, 2026

Looks like we may need to remove older python versions from the tests action as well.

@jnation3406
Copy link
Copy Markdown
Member Author

Looks like we may need to remove older python versions from the tests action as well.

I think I did this in the github action

@cmccully
Copy link
Copy Markdown

cmccully commented Apr 2, 2026

Looks like we may need to remove older python versions from the tests action as well.

I think I did this in the github action

It's still waiting to run_tests back to py
Screenshot 2026-04-02 at 1 59 03 PM
thon3.6

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