From bae69b5d29ed1d1baa7fdefbcfac8f0bb6b47dba Mon Sep 17 00:00:00 2001 From: Kye Date: Tue, 5 Mar 2024 12:36:18 -0800 Subject: [PATCH] [ENVIRONMENT STUFF] --- .gitignore | 43 +++++++++++++++++++++++++++++++++++++++++++ .rustfmt.toml | 1 + Cargo.toml | 4 ++-- Dockerfile | 27 --------------------------- pyproject.toml | 2 +- 5 files changed, 47 insertions(+), 30 deletions(-) create mode 100644 .rustfmt.toml delete mode 100644 Dockerfile diff --git a/.gitignore b/.gitignore index 36b36ef..0328242 100644 --- a/.gitignore +++ b/.gitignore @@ -161,3 +161,46 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + + +*.py[cod] +*.egg-info/ + +.coverage +.python-version +package-lock.json +test.py + +.cache/ +.hypothesis/ +build/ +dist/ +docs/_build/ +htmlcov/ +node_modules/ + +/.benchmarks/ +/.idea/ +/.pytest_cache/ +/.vscode/ +/env*/ +/env/ +/flame/ +/pytest-speed/ +/sandbox/ +/sandbox/ +/site/ +/target/ +/worktree/ + +/.editorconfig +/.pdm-python +/*.lcov +/*.profdata +/*.profraw +/foobar.py +/python/pydantic_core/*.so +/src/self_schema.py + +# samply +/profile.json \ No newline at end of file diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..866c756 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1 @@ +max_width = 120 \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 9cd72e1..78e4cb0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ include = [ "/rust-toolchain", "/src", "!/src/self_schema.py", - "/python/pydantic_core", + "/python/swarms_core", "/tests", "/.cargo", "!__pycache__", @@ -34,7 +34,7 @@ smallvec = "1.13.1" base64 = "0.21.7" [lib] -name = "_pydantic_core" +name = "_main" crate-type = ["cdylib", "rlib"] [features] diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 6eba764..0000000 --- a/Dockerfile +++ /dev/null @@ -1,27 +0,0 @@ -# ================================== -# Use an official Python runtime as a parent image -FROM python:3.10-slim -RUN apt-get update && apt-get -y install libgl1-mesa-dev libglib2.0-0 build-esse -ntial; apt-get clean -RUN pip install opencv-contrib-python-headless - -# Set environment variables -ENV PYTHONDONTWRITEBYTECODE 1 -ENV PYTHONUNBUFFERED 1 - -# Set the working directory in the container -WORKDIR /usr/src/zeta - - -# Install Python dependencies -# COPY requirements.txt and pyproject.toml if you're using poetry for dependency - management -COPY requirements.txt . -RUN pip install --no-cache-dir --upgrade pip -RUN pip install --no-cache-dir -r requirements.txt - -RUN pip install --no-cache-dir zetascale - -# Copy the rest of the application -COPY . . - diff --git a/pyproject.toml b/pyproject.toml index 3bd28e3..4dd0e9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ license = "MIT" authors = ["Kye Gomez "] homepage = "https://github.com/kyegomez/swarms-core" documentation = "https://github.com/kyegomez/swarms-core" # Add this if you have documentation. -readme = "README.md" # Assuming you have a README.md +readme = "README.md" repository = "https://github.com/kyegomez/swarms-core" keywords = ["artificial intelligence", "deep learning", "optimizers", "Prompt Engineering"] classifiers = [