diff --git a/.github/workflows/RELEASE.yml b/.github/workflows/RELEASE.yml index c6150561..0ca7dacd 100644 --- a/.github/workflows/RELEASE.yml +++ b/.github/workflows/RELEASE.yml @@ -7,7 +7,7 @@ on: branches: - master paths: - - 'pyproject.toml' + - "pyproject.toml" env: POETRY_VERSION: "1.4.2" jobs: @@ -20,10 +20,10 @@ jobs: - uses: actions/checkout@v4 - name: Install poetry run: pipx install poetry==$POETRY_VERSION - - name: Set up Python 3.9 + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: "3.10" cache: "poetry" - name: Build project for distribution run: poetry build diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 59eea4f2..8b8aa175 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 943e996a..49e6b9a1 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 091a574e..f0596c9b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,8 +11,6 @@ jobs: strategy: matrix: python-version: - - "3.8" - - "3.9" - "3.10" - "3.11" steps: diff --git a/.github/workflows/test_pr.yml b/.github/workflows/test_pr.yml index 1f982dff..831dba45 100644 --- a/.github/workflows/test_pr.yml +++ b/.github/workflows/test_pr.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: "3.11" - name: Run tests run: | python --version @@ -31,25 +31,12 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: "3.10" - name: Run tests run: | python --version pip install -q .[dev] python -m pytest - test3_9: - name: Test Py3.9 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.9' - - name: Run tests - run: | - python --version - pip install .[dev] - python -m pytest pytype3_10: name: pytype 3.10 runs-on: ubuntu-latest @@ -57,7 +44,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: "3.10" - name: Run pytype run: | python --version @@ -71,7 +58,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: "3.11" - name: Check format run: | python --version diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 0aa7aeba..ac73b282 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -13,7 +13,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: "3.10" - name: Install dependencies run: | pip install -r requirements.txt diff --git a/docs/docker_setup.md b/docs/docker_setup.md index 409f9119..fed664ab 100644 --- a/docs/docker_setup.md +++ b/docs/docker_setup.md @@ -30,6 +30,7 @@ This guide is intended for developers and contributors to the `swarms` project w ## Prerequisites Before you begin, ensure you have: + - A GitHub account - Git installed on your machine - Basic command-line proficiency @@ -115,14 +116,13 @@ docker run -it --rm swarms-dev - Introduce Docker Compose and its role in simplifying multi-container setups. - Create a `docker-compose.yml` file for the `swarms` project. - ## Dockerfile Creating a Dockerfile for deploying the `swarms` framework to the cloud involves setting up the necessary environment to run your Python application, ensuring all dependencies are installed, and configuring the container to execute the desired tasks. Here's an example Dockerfile that sets up such an environment: ```Dockerfile # Use an official Python runtime as a parent image -FROM python:3.9-slim +FROM python:3.10-slim # Set environment variables ENV PYTHONDONTWRITEBYTECODE 1 @@ -194,4 +194,4 @@ For deploying to the cloud, you'll need to push your Docker image to a container - Setting up networking, storage, and other cloud resources. - Monitoring, logging, and potentially scaling your containers. -Remember to secure sensitive data, use tagged releases for your images, and follow best practices for operating in the cloud. \ No newline at end of file +Remember to secure sensitive data, use tagged releases for your images, and follow best practices for operating in the cloud. diff --git a/docs/examples/revgpt.md b/docs/examples/revgpt.md index 69107b40..5571720d 100644 --- a/docs/examples/revgpt.md +++ b/docs/examples/revgpt.md @@ -19,7 +19,7 @@ python -m pip install --upgrade revChatGPT ``` **Supported Python Versions:** -- Minimum: Python3.9 +- Minimum: Python3.10 - Recommended: Python3.11+ ### Initial Setup and Configuration diff --git a/docs/index.md b/docs/index.md index 74e39543..c4ec3e9f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -16,7 +16,7 @@ Swarms provides you with all the building blocks you need to build reliable, pro ## 💻 Install You can install `swarms` with pip in a -[**Python>=3.8**](https://www.python.org/) environment. +[**Python>=3.10**](https://www.python.org/) environment. !!! example "pip install (recommended)" diff --git a/tests/Dockerfile b/tests/Dockerfile index f6e46515..f575f599 100644 --- a/tests/Dockerfile +++ b/tests/Dockerfile @@ -1,7 +1,7 @@ # TESTING # -================== # Use an official Python runtime as a parent image -FROM python:3.9-slim +FROM python:3.10-slim # Set environment variables to make Python output unbuffered and disable the PIP cache ENV PYTHONDONTWRITEBYTECODE 1