-
Notifications
You must be signed in to change notification settings - Fork 357
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
chore: remove support for Python 3.7; prefer 3.8 #7329
Conversation
✅ Deploy Preview for determined-ui canceled.
|
d23de30
to
4acb0c0
Compare
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.
Looks good to me!
There's still some 37
and 3.7
related things in the circleci config though.
Converting to "draft" pending the removal of support for TF1 (and the TF1 environments that use Python 3.7). Wheels for TF are not available for Python 3.8 (https://pypi.org/project/tensorflow/1.15.5/) |
docs/interfaces/cli-ug.rst
Outdated
@@ -35,7 +35,7 @@ and upgrade. | |||
Installation | |||
************** | |||
|
|||
The CLI is distributed as a Python wheel package and requires Python >= 3.7. We recommend setting up | |||
The CLI is distributed as a Python wheel package and requires Python >= 3.8. We recommend setting up | |||
a `virtualenv <https://virtualenv.pypa.io/en/latest/>`__ and using the ``pip`` utility to install | |||
``determined`` into the environment: | |||
|
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 command-line interface (CLI) is distributed in the form of a Python wheel package and requires Python version 3.8 or later.
(source: Microsoft Manual of Style)
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.
Done.
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.
requested edits
65b964e
to
5939574
Compare
b71a8fc
to
e1ea5ad
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7329 +/- ##
=======================================
Coverage 47.19% 47.19%
=======================================
Files 1155 1155
Lines 175116 175101 -15
Branches 2235 2237 +2
=======================================
- Hits 82646 82639 -7
+ Misses 92312 92304 -8
Partials 158 158
Flags with carried forward coverage won't be shown. Click here to find out more.
|
mypy used to test against python 3.7. 3.7 has passed EOL.
* unconditionally import functions added to typing in 3.8 * use copytree from shutils unconditionally (added in 3.8) * remove reference to 3.7 environments image * remove references to tf1 images from e2e_tests config
These Docker images are no longer called by reference in any current test execution.
2b13982
to
214e138
Compare
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.
LGTM
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.
LGTM
@@ -12,9 +12,6 @@ orbs: | |||
win: circleci/[email protected] | |||
|
|||
executors: | |||
python-37: | |||
docker: | |||
- image: python:3.7-slim-buster | |||
python-38: | |||
docker: | |||
- image: python:3.8-slim-buster |
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.
We're still using the Buster images? :D
They've moved through Bullseye and are now on Bookworm. This is probably a separate PR, but those buster images haven't been updated for about a year. docker-library/python#822
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.
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.
I didn't do a grep -R
or anything, but this LGTM.
yay, finally! |
Python 3.7 is EOL. * Some docs that referred to 3.7 now refer to 3.8 * Training API "how to" doc no longer mentions any 3.7 docker images * `CONTRIBUTING.md` no longer says to upgrade pip when installing determined * `CONTRIBUTING.md` has revised text about Python requirements * mypy tests against 3.8. * Features new to 3.8 can be used without suppressing type checking or conditional imports. These changes have been made. * No longer run `test-cli` in CircleCI against Python 3.7. * There are no wheels for TF1 using Python 3.8. Removing 3.7 support means TF1 cannot be used. In previous commits, we removed support of TF1. We also clean up those references here. In particular: - `e2e_tests/tests/command/test_run:test_k8_init_containers` and `e2e_tests/tests/command/test_run:test_k8_sidecars` now run on TF2 images - Removed references to TF1 images in `e2e_tests`. - Removed references to TF1 Docker images in `bumpenvs.yaml`
Python 3.7 is EOL.
CONTRIBUTING.md
no longer says to upgrade pip when installing determinedCONTRIBUTING.md
has revised text about Python requirementstest-cli
in CircleCI against Python 3.7.e2e_tests/tests/command/test_run:test_k8_init_containers
ande2e_tests/tests/command/test_run:test_k8_sidecars
now run on TF2 imagese2e_tests
.bumpenvs.yaml
Description
Test Plan
tests are green
Commentary (optional)
Checklist
docs/release-notes/
.See Release Note for details.
Ticket