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:
- 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

@ -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 }}

@ -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 }}

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

@ -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

@ -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

@ -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.
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:**
- Minimum: Python3.9
- Minimum: Python3.10
- Recommended: Python3.11+
### 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
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)"

@ -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

Loading…
Cancel
Save