You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 939 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # AutoGen Python packages
  2. See [`autogen-core`](./packages/autogen-core/) package for main functionality.
  3. ## Development
  4. **TL;DR**, run all checks with:
  5. ```sh
  6. uv sync
  7. source .venv/bin/activate
  8. poe check
  9. ```
  10. ### Setup
  11. - [Install `uv`](https://docs.astral.sh/uv/getting-started/installation/).
  12. ### Virtual environment
  13. To get a shell with the package available (virtual environment),
  14. in the current directory,
  15. run:
  16. ```sh
  17. uv sync
  18. source .venv/bin/activate
  19. ```
  20. ### Common tasks
  21. - Format: `poe format`
  22. - Lint: `poe lint`
  23. - Test: `poe test`
  24. - Mypy: `poe mypy`
  25. - Pyright: `poe pyright`
  26. - Build docs: `poe --directory ./packages/autogen-core/ docs-build`
  27. - Auto rebuild+serve docs: `poe --directory ./packages/autogen-core/ docs-serve`
  28. > [!NOTE]
  29. > These need to be run in the virtual environment.
  30. ### Create new package
  31. To create a new package, run:
  32. ```sh
  33. uv sync
  34. source .venv/bin/activate
  35. cookiecutter ./templates/new-package/
  36. ```