Add conda package support (closes #2673)

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-04-23 09:50:48 +00:00
parent 2e4c97661a
commit d3223a5aa1
6 changed files with 163 additions and 0 deletions

47
conda/README.md Normal file
View File

@@ -0,0 +1,47 @@
# Conda Package for CrewAI
This directory contains the necessary files to build a conda package for CrewAI.
## Files
- `meta.yaml`: The main conda recipe file that defines package metadata, dependencies, and build requirements
- `build.sh`: Build script for Unix-like systems (Linux, macOS)
- `bld.bat`: Build script for Windows
## Building the Package
To build the package, you need to have conda-build installed:
```bash
conda install conda-build
```
Then, from the repository root directory:
```bash
conda build conda
```
## Testing the Package
After building, you can install and test the package:
```bash
conda install --use-local crewai
```
## Uploading to Anaconda
To upload the package to Anaconda, you need to have anaconda-client installed:
```bash
conda install anaconda-client
anaconda login
anaconda upload /path/to/conda-bld/noarch/crewai-*.tar.bz2
```
## Compatibility Notes
This package addresses compatibility issues with:
- Python 3.10: Adds typing_extensions as a dependency to provide the Self type
- Python 3.12: Ensures compatibility with the tokenizers package