Skip to content

Commit

Permalink
feat: drop python 3.8 for the coming EOL (#4948)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Aug 29, 2024
1 parent 146bfe3 commit 0ecb833
Show file tree
Hide file tree
Showing 25 changed files with 1,510 additions and 3,463 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.11, 3.12]
python-version: [3.9, 3.11, 3.12]
name: unit-tests (python${{ matrix.python-version }}.${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -86,14 +86,14 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.9'
cache: pip
- name: Install dependencies
run: pipx install pdm && pipx install nox
- name: Run framework integration tests
run: nox --session "framework-integration(framework='${{ matrix.framework }}')"
- name: Disambiguate coverage filename
run: mv .coverage ".coverage.integrations.ubuntu-latest.3.8.${{ matrix.framework }}"
run: mv .coverage ".coverage.integrations.ubuntu-latest.3.9.${{ matrix.framework }}"
- name: Upload coverage data
uses: actions/upload-artifact@v3
with:
Expand All @@ -104,7 +104,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.11, 3.12]
python-version: [3.9, 3.11, 3.12]
name: monitoring-e2e-tests (python${{ matrix.python-version }}.${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 90
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.8, 3.11, 3.12]
python-version: [3.9, 3.11, 3.12]
suite: ['bento_server_http', 'bento_new_sdk']
exclude:
- os: macos-latest
Expand Down
2 changes: 1 addition & 1 deletion .python-version-default
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9
3.11
10 changes: 5 additions & 5 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ If you are interested in proposing a new feature, make sure to create a new feat

1. Make sure to have [Git](https://git-scm.com/),
[pip](https://pip.pypa.io/en/stable/installation/),
[Python3.8+](https://www.python.org/downloads/), and
[Python3.9+](https://www.python.org/downloads/), and
[PDM](https://pdm.fming.dev/latest/) installed.

Optionally, make sure to have [GNU Make](https://www.gnu.org/software/make/)
Expand Down Expand Up @@ -75,7 +75,7 @@ If you are interested in proposing a new feature, make sure to create a new feat

1. Confirm that you have the following installed:

- [Python3.8+](https://www.python.org/downloads/)
- [Python3.9+](https://www.python.org/downloads/)
- VS Code with the [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python) and [Pylance](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance) extensions

2. Fork the BentoML project on [GitHub](https://github.com/bentoml/BentoML).
Expand Down Expand Up @@ -264,10 +264,10 @@ pip install git+https://github.com/{YOUR_GITHUB_USERNAME}/bentoml@{YOUR_REVISION
And in your BentoML projects' `bentofile.yaml`, force the Bento to install this distribution, e.g.:

```yaml
service: "service:svc"
description: "file: ./README.md"
service: 'service:svc'
description: 'file: ./README.md'
include:
- "*.py"
- '*.py'
python:
packages:
- pandas
Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

🍱 Build model inference APIs and multi-model serving systems with any open-source or custom AI models. 👉 [Join our Slack community!](https://l.bentoml.com/join-slack)


[![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202-green.svg)](https://github.com/bentoml/BentoML?tab=Apache-2.0-1-ov-file)
[![Releases](https://img.shields.io/github/v/release/bentoml/bentoml.svg)](https://github.com/bentoml/bentoml/releases)
[![CI](https://github.com/bentoml/bentoml/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/bentoml/BentoML/actions/workflows/ci.yml?query=branch%3Amain)
Expand All @@ -25,13 +24,12 @@ BentoML is a Python library for building online serving systems optimized for AI
- **👩‍💻 Fully customizable.** Easily implement your own APIs or task queues, with custom business logic, model inference and multi-model composition. Supports any ML framework, modality, and inference runtime.
- **🚀 Ready for Production.** Develop, run and debug locally. Seamlessly deploy to production with Docker containers or [BentoCloud](https://www.bentoml.com/).


## Getting started

Install BentoML:

```
# Requires Python≥3.8
# Requires Python≥3.9
pip install -U bentoml
```

Expand Down Expand Up @@ -82,13 +80,13 @@ with bentoml.SyncHTTPClient('http://localhost:3000') as client:
To deploy your BentoML Service code, first create a `bentofile.yaml` file to define its dependencies and environments. Find the full list of bentofile options [here](https://docs.bentoml.com/en/latest/guides/build-options.html).

```yaml
service: "service:Summarization" # Entry service import path
service: 'service:Summarization' # Entry service import path
include:
- "*.py" # Include all .py files in current directory
- '*.py' # Include all .py files in current directory
python:
packages: # Python dependencies to include
- torch
- transformers
- torch
- transformers
docker:
python_version: 3.11
```
Expand Down
2 changes: 1 addition & 1 deletion docs/source/get-started/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ BentoML is distributed as a Python package available on `PyPI <https://pypi.org/
Prerequisites
-------------

- Python 3.8+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- Python 3.9+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- (Optional) We recommend you create a virtual environment for dependency isolation. See the `Conda documentation <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_ or the `Python documentation <https://docs.python.org/3/library/venv.html>`_ for details.
- (Optional) `Git <https://git-scm.com/>`_ installed for `editable install <https://docs.bentoml.com/en/latest/quickstarts/install-bentoml.html#editable-install>`_.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/get-started/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ You can find all the project files in the `quickstart <https://github.com/bentom
Prerequisites
-------------

- Python 3.8+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- Python 3.9+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- (Optional) We recommend you create a virtual environment for dependency isolation. See the `Conda documentation <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_ or the `Python documentation <https://docs.python.org/3/library/venv.html>`_ for details.

Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion docs/source/guides/build-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ The following ``docker`` field contains some basic Docker configurations:
docker:
distro: debian
python_version: "3.8.12"
python_version: "3.11"
cuda_version: "11.6.2"
system_packages:
- libblas-dev
Expand Down
2 changes: 1 addition & 1 deletion docs/source/use-cases/audio/whisperx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All the source code in this tutorial is available in the `BentoWhisperX GitHub r
Prerequisites
-------------

- Python 3.8+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- Python 3.9+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- You have a basic understanding of key concepts in BentoML, such as Services. We recommend you read :doc:`/get-started/quickstart` first.
- If you want to test this project locally, install FFmpeg on your system.
- Gain access to the model used in this project: `pyannote/segmentation-3.0 <https://huggingface.co/pyannote/segmentation-3.0>`_.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/use-cases/custom-models/mlflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This document explains how to serve and deploy an MLflow model with BentoML. You
Prerequisites
-------------

- Python 3.8+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- Python 3.9+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- You have a basic understanding of key concepts in BentoML, such as Services. We recommend you read :doc:`/get-started/quickstart` first.
- (Optional) We recommend you create a virtual environment for dependency isolation. See the `Conda documentation <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_ or the `Python documentation <https://docs.python.org/3/library/venv.html>`_ for details.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/use-cases/custom-models/xgboost.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This document explains how to serve and deploy an XGBoost model for predicting b
Prerequisites
-------------

- Python 3.8+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- Python 3.9+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- You have a basic understanding of key concepts in BentoML, such as Services. We recommend you read :doc:`/get-started/quickstart` first.
- (Optional) We recommend you create a virtual environment for dependency isolation. See the `Conda documentation <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_ or the `Python documentation <https://docs.python.org/3/library/venv.html>`_ for details.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/use-cases/diffusion-models/sdxl-lcm-lora.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All the source code in this tutorial is available in the `BentoDiffusion GitHub
Prerequisites
-------------

- Python 3.8+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- Python 3.9+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- You have a basic understanding of key concepts in BentoML, such as Services. We recommend you read :doc:`/get-started/quickstart` first.
- To run this BentoML Service locally, you need a Nvidia GPU with at least 12G VRAM.
- (Optional) We recommend you create a virtual environment for dependency isolation. See the `Conda documentation <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_ or the `Python documentation <https://docs.python.org/3/library/venv.html>`_ for details.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/use-cases/diffusion-models/sdxl-turbo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All the source code in this tutorial is available in the `BentoDiffusion GitHub
Prerequisites
-------------

- Python 3.8+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- Python 3.9+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- You have a basic understanding of key concepts in BentoML, such as Services. We recommend you read :doc:`/get-started/quickstart` first.
- To run this BentoML Service locally, you need a Nvidia GPU with at least 12G VRAM.
- (Optional) We recommend you create a virtual environment for dependency isolation. See the `Conda documentation <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_ or the `Python documentation <https://docs.python.org/3/library/venv.html>`_ for details.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/use-cases/embeddings/clip-embeddings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All the source code in this tutorial is available in the `BentoClip GitHub repos
Prerequisites
-------------

- Python 3.8+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- Python 3.9+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- You have a basic understanding of key concepts in BentoML, such as Services. We recommend you read :doc:`/get-started/quickstart` first.
- (Optional) We recommend you create a virtual environment for dependency isolation. See the `Conda documentation <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_ or the `Python documentation <https://docs.python.org/3/library/venv.html>`_ for details.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/use-cases/embeddings/sentence-transformer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All the source code in this tutorial is available in the `BentoSentenceTransform
Prerequisites
-------------

- Python 3.8+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- Python 3.9+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- You have a basic understanding of key concepts in BentoML, such as Services. We recommend you read :doc:`/get-started/quickstart` first.
- (Optional) We recommend you create a virtual environment for dependency isolation. See the `Conda documentation <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_ or the `Python documentation <https://docs.python.org/3/library/venv.html>`_ for details.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/use-cases/large-language-models/vllm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All the source code in this tutorial is available in the `BentoVLLM GitHub repos
Prerequisites
-------------

- Python 3.8+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- Python 3.9+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- You have a basic understanding of key concepts in BentoML, such as Services. We recommend you read :doc:`/get-started/quickstart` first.
- If you want to test the project locally, you need a Nvidia GPU with least 16G VRAM.
- (Optional) We recommend you create a virtual environment for dependency isolation. See the `Conda documentation <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_ or the `Python documentation <https://docs.python.org/3/library/venv.html>`_ for details.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/use-cases/multimodality/blip.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ All the source code in this tutorial is available in the `BentoBlip GitHub repos
Prerequisites
-------------

- Python 3.8+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- Python 3.9+ and ``pip`` installed. See the `Python downloads page <https://www.python.org/downloads/>`_ to learn more.
- You have a basic understanding of key concepts in BentoML, such as Services. We recommend you read :doc:`/get-started/quickstart` first.
- (Optional) We recommend you create a virtual environment for dependency isolation. See the `Conda documentation <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_ or the `Python documentation <https://docs.python.org/3/library/venv.html>`_ for details.

Expand Down
2 changes: 1 addition & 1 deletion examples/quickstart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This quickstart demonstrates how to build a text summarization application with

## Prerequisites

Python 3.8+ and `pip` installed. See the [Python downloads page](https://www.python.org/downloads/) to learn more.
Python 3.9+ and `pip` installed. See the [Python downloads page](https://www.python.org/downloads/) to learn more.

## Get started

Expand Down
9 changes: 4 additions & 5 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@
"-vv",
]

PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12"]
PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12"]

FRAMEWORK_DEPENDENCIES = {
"catboost": ["catboost"],
"catboost": ["catboost", "numpy<2"],
"diffusers": ["diffusers", "transformers", "tokenizer"],
"easyocr": ["easyocr"],
"fastai": ["fastai"],
"flax": [
"tensorflow~=2.13.1",
"pydantic<2",
"tensorflow",
"flax; platform_system!='Windows'",
"jax[cpu]; platform_system!='Windows'",
"jaxlib; platform_system!='Windows'",
Expand All @@ -34,7 +33,7 @@
"pytorch": [],
"pytorch_lightning": ["lightning"],
"sklearn": ["scikit-learn"],
"tensorflow": ["tensorflow~=2.13.1", "pydantic<2"],
"tensorflow": ["tensorflow"],
"torchscript": [],
"xgboost": ["xgboost"],
"detectron": ["detectron2"],
Expand Down
Loading

0 comments on commit 0ecb833

Please sign in to comment.