Finish migration

pull/388/head
Wyatt Stanke 11 months ago
parent a8b3adb50e
commit 25b69a7065
No known key found for this signature in database
GPG Key ID: CE6BA5FFF135536D

@ -7,7 +7,7 @@ on:
branches: branches:
- master - master
paths: paths:
- 'pyproject.toml' - "pyproject.toml"
env: env:
POETRY_VERSION: "1.4.2" POETRY_VERSION: "1.4.2"
jobs: jobs:
@ -20,10 +20,10 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install poetry - name: Install poetry
run: pipx install poetry==$POETRY_VERSION run: pipx install poetry==$POETRY_VERSION
- name: Set up Python 3.9 - name: Set up Python 3.10
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: "3.9" python-version: "3.10"
cache: "poetry" cache: "poetry"
- name: Build project for distribution - name: Build project for distribution
run: poetry build run: poetry build

@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: ["3.8", "3.9", "3.10"] python-version: ["3.10", "3.11", "3.12"]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}

@ -14,7 +14,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: ["3.7", "3.9", "3.10", "3.11"] python-version: ["3.10", "3.11", "3.12"]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}

@ -11,8 +11,6 @@ jobs:
strategy: strategy:
matrix: matrix:
python-version: python-version:
- "3.8"
- "3.9"
- "3.10" - "3.10"
- "3.11" - "3.11"
steps: steps:

@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: "3.11"
- name: Run tests - name: Run tests
run: | run: |
python --version python --version
@ -31,25 +31,12 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: '3.10' python-version: "3.10"
- name: Run tests - name: Run tests
run: | run: |
python --version python --version
pip install -q .[dev] pip install -q .[dev]
python -m pytest 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: pytype3_10:
name: pytype 3.10 name: pytype 3.10
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -57,7 +44,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: '3.10' python-version: "3.10"
- name: Run pytype - name: Run pytype
run: | run: |
python --version python --version
@ -71,7 +58,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: "3.11"
- name: Check format - name: Check format
run: | run: |
python --version python --version

@ -13,7 +13,7 @@ jobs:
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.9' python-version: "3.10"
- name: Install dependencies - name: Install dependencies
run: | run: |
pip install -r requirements.txt pip install -r requirements.txt

@ -30,6 +30,7 @@ This guide is intended for developers and contributors to the `swarms` project w
## Prerequisites ## Prerequisites
Before you begin, ensure you have: Before you begin, ensure you have:
- A GitHub account - A GitHub account
- Git installed on your machine - Git installed on your machine
- Basic command-line proficiency - 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. - Introduce Docker Compose and its role in simplifying multi-container setups.
- Create a `docker-compose.yml` file for the `swarms` project. - Create a `docker-compose.yml` file for the `swarms` project.
## Dockerfile ## 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: 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 ```Dockerfile
# Use an official Python runtime as a parent image # Use an official Python runtime as a parent image
FROM python:3.9-slim FROM python:3.10-slim
# Set environment variables # Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1 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. - Setting up networking, storage, and other cloud resources.
- Monitoring, logging, and potentially scaling your containers. - 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. Remember to secure sensitive data, use tagged releases for your images, and follow best practices for operating in the cloud.

@ -19,7 +19,7 @@ python -m pip install --upgrade revChatGPT
``` ```
**Supported Python Versions:** **Supported Python Versions:**
- Minimum: Python3.9 - Minimum: Python3.10
- Recommended: Python3.11+ - Recommended: Python3.11+
### Initial Setup and Configuration <a name="initial-setup"></a> ### Initial Setup and Configuration <a name="initial-setup"></a>

@ -16,7 +16,7 @@ Swarms provides you with all the building blocks you need to build reliable, pro
## 💻 Install ## 💻 Install
You can install `swarms` with pip in a 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)" !!! example "pip install (recommended)"

@ -1,7 +1,7 @@
# TESTING # TESTING
# -================== # -==================
# Use an official Python runtime as a parent image # 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 # Set environment variables to make Python output unbuffered and disable the PIP cache
ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONDONTWRITEBYTECODE 1

Loading…
Cancel
Save