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

[all][query] update to Python3.8 which allows for numpy 1.24.2 #12908

Closed
wants to merge 10 commits into from

Conversation

danking
Copy link
Contributor

@danking danking commented Apr 19, 2023

CHANGELOG: Hail no longer officially supports Python 3.7.

@daniel-goldstein
Copy link
Contributor

Sorry if this is jumping the gun, but can you add a reference in the docs to numpy's versioning policy and say that we follow that now?

@danking
Copy link
Contributor Author

danking commented Apr 19, 2023

Haha, I had intentionally not assigned you until I sorted what I anticipate is a long tail of issues. Nonetheless, updated.

./generate-linux-pip-lockfile.sh hail/python

hail/python/dev/pinned-requirements.txt: hail/python/dev/requirements.txt hail/python/pinned-requirements.txt
hail/python/dev/pinned-requirements.txt: hail/python/pinned-requirements.txt hail/python/dev/requirements.txt
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I flipped these so that the pinned-requirements.txt dependencies always come first

./generate-linux-pip-lockfile.sh hail/python/dev

gear/pinned-requirements.txt: hail/python/hailtop/pinned-requirements.txt gear/requirements.txt
gear/pinned-requirements.txt: hail/python/pinned-requirements.txt hail/python/dev/pinned-requirements.txt gear/requirements.txt
Copy link
Contributor Author

Choose a reason for hiding this comment

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

gear/pinned-requirements.txt has a -c dependency on python/pinned-requirements.txt and python/dev/pinned-requirements.txt. It was missing both of those dependencies in the makefile which lead me to have incompatible versions between gear/pinned-requirements.txt and python/dev/pinned-requirements.txt which lead to issues when both of those were -c required in auth.

@daniel-goldstein
Copy link
Contributor

This would indicate that we're already in 3.9+ territory. Maybe a lot to drop two python versions at once, do you have any thoughts on when we should also drop 3.8?

@danking
Copy link
Contributor Author

danking commented Apr 24, 2023

Great point. I'm inclined to at least do separate PRs since this one is, as expected, becoming a bit of a compatibility nightmare.

dependabot bot and others added 8 commits April 24, 2023 17:05
Bumps [numpy](https://github.com/numpy/numpy) from 1.21.6 to 1.24.2.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](numpy/numpy@v1.21.6...v1.24.2)

---
updated-dependencies:
- dependency-name: numpy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
CHANGELOG: Hail no longer officially supports Python 3.7.
@danking
Copy link
Contributor Author

danking commented Apr 24, 2023

I'm gonna submit a new PR which subsumes this and #12927 because they're both entangled in a bunch of the same issues and its increasingly apparent that I need them together to pass all the tests.

@danking danking closed this Apr 24, 2023
danking added a commit that referenced this pull request May 2, 2023
…es to req generation (#12929)

CHANGELOG: Hail no longer officially supports Python 3.7.

Combines #12927 and
#12908.

Many changes. All seem to be necessary together.

---

I fixed any new mypy errors or deprecation warnings. I also cleaned up
plots.py (which isn't CI'd by mypy) because I was in there and it was a
mess. I unified all our pip-tools versions. Require pandas 2 now. That
requires Bokeh 3.x.x. Fix the pinned-requirements.txt dependencies so
they reflect the actual necessary runtime harmony. Upgraded Sphinx. The
method names lose their fixed-width styling but I think it looks fine.
Version policy added. Updating everything means Jinja2 can jump to the
latest version too. Numpy deprecated some of its types, using `_` gets
rid of the warning.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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