-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Python3.7 support in merlin-sdk (#464)
<!-- Thanks for sending a pull request! Here are some tips for you: 1. Run unit tests and ensure that they are passing 2. If your change introduces any API changes, make sure to update the e2e tests 3. Make sure documentation is updated for your PR! --> **What this PR does / why we need it**: <!-- Explain here the context and why you're making the change. What is the problem you're trying to solve. ---> Python 3.7 has reached its end of life ([ref](https://devguide.python.org/versions/)). This MR removes support for Python 3.7 from the SDK. For the time being the Pyfunc model service and batch job apps will still support Python 3.7 - this is achieved by pinning their dependency on the `merlin-sdk`. A future MR will also remove support for Python 3.7 from these components. Related PR for Turing: caraml-dev/turing#362 ## Summary of changes * `python/sdk/setup.py` - Bump up Python requirement to a minimum of `3.8` * `python/pyfunc-server/requirements.txt`, `python/batch-predictor/requirements.txt` - Pin `merlin-sdk` dependency at `0.33.0` which is the latest SDK release that supports Python 3.7. Corresponding changes in `python/pyfunc-server/setup.py` and `python/batch-predictor/setup.py`. * Update documentation and samples which use Python 3.7 to a different version **Does this PR introduce a user-facing change?**: <!-- If no, just write "NONE" in the release-note block below. If yes, a release note is required. Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required". For more information about release notes, see kubernetes' guide here: http://git.k8s.io/community/contributors/guide/release-notes.md --> ```release-note Remove support for Python 3.7 from merlin-sdk ``` **Checklist** - [ ] Added unit test, integration, and/or e2e tests - [ ] Tested locally - [x] Updated documentation - [ ] Update Swagger spec if the PR introduce API changes - [ ] Regenerated Golang and Python client if the PR introduce API changes
- Loading branch information
1 parent
813431a
commit 072325c
Showing
39 changed files
with
61 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
scikit-learn==1.0.2 # >=1.1.2 upon python 3.7 deprecation | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
xgboost==1.6.2 | ||
merlin-sdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
dependencies: | ||
- python=3.7 | ||
- python=3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scikit-learn==1.0.2 # >=1.1.2 upon python 3.7 deprecation | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
merlin-sdk | ||
joblib>=0.13.0,<1.2.0 # >=1.2.0 upon upgrade of kserve's version | ||
cloudpickle==2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
dependencies: | ||
- python=3.7 | ||
- python=3.8 | ||
- pip: | ||
- numpy | ||
- xgboost==1.6.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
xgboost==1.6.2 | ||
scikit-learn==1.0.2 # >=1.1.2 upon python 3.7 deprecation | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
merlin-sdk>=0.22.2rc4 | ||
numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
dependencies: | ||
- python=3.7 | ||
- python=3.8 | ||
- pip: | ||
- joblib>=0.13.0,<1.2.0 # >=1.2.0 upon upgrade of kserve's version | ||
- numpy | ||
- scikit-learn==1.0.2 # >=1.1.2 upon python 3.7 deprecation | ||
- scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
- xgboost==1.6.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scikit-learn==1.0.2 # >=1.1.2 upon python 3.7 deprecation | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
merlin-sdk | ||
joblib>=0.13.0,<1.2.0 # >=1.2.0 upon upgrade of kserve's version | ||
cloudpickle==2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scikit-learn==1.0.2 # >=1.1.2 upon python 3.7 deprecation | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
merlin-sdk | ||
joblib>=0.13.0,<1.2.0 # >=1.2.0 upon upgrade of kserve's version | ||
cloudpickle==2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scikit-learn==1.0.2 # >=1.1.2 upon python 3.7 deprecation | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
merlin-sdk | ||
joblib>=0.13.0,<1.2.0 # >=1.2.0 upon upgrade of kserve's version | ||
cloudpickle==2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
dependencies: | ||
- python=3.7 | ||
- python=3.8 | ||
- pip: | ||
- torch==1.3.1 | ||
- torchvision==0.4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
dependencies: | ||
- python=3.7 | ||
- python=3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
dependencies: | ||
- python=3.7 | ||
- python=3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
dependencies: | ||
- python=3.7 | ||
- python=3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scikit-learn==1.0.2 # >=1.1.2 upon python 3.7 deprecation-learn | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
xgboost==1.6.2 | ||
merlin-sdk | ||
cloudpickle==2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dependencies: | ||
- pip: | ||
- scikit-learn==1.0.2 # >=1.1.2 upon python 3.7 deprecation | ||
- scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
- joblib>=0.13.0,<1.2.0 # >=1.2.0 upon upgrade of kserve's version |
2 changes: 1 addition & 1 deletion
2
python/pyfunc-scaffolding/{{cookiecutter.model_slug}}/env/conda.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
dependencies: | ||
- python=3.7 | ||
- python=3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
channels: | ||
- defaults | ||
dependencies: | ||
- python=3.7.5 | ||
- python=3.8.5 | ||
- pip: | ||
- mlflow | ||
- cloudpickle==2.0.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters