docs(python): add instructions for syncing dependencies and checking samples (#5362)

Address some common questions.
This commit is contained in:
Eric Zhu 2025-02-04 11:35:51 -08:00 committed by GitHub
parent 40d74a32a1
commit 68cc2e1019
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,12 +50,24 @@ To create a pull request (PR), ensure the following checks are met. You can run
- Pyright: `poe pyright`
- Build docs: `poe --directory ./packages/autogen-core/ docs-build`
- Auto rebuild+serve docs: `poe --directory ./packages/autogen-core/ docs-serve`
- Check samples in `python/samples`: `poe samples-code-check`
Alternatively, you can run all the checks with:
- `poe check`
> [!NOTE]
> These need to be run in the virtual environment.
### Syncing Dependencies
When you pull new changes, you may need to update the dependencies.
To do so, first make sure you are in the virtual environment, and then in the `python` directory, run:
```sh
uv sync --all-extras
```
This will update the dependencies in the virtual environment.
### Creating a New Package
To create a new package, similar to `autogen-core` or `autogen-chat`, use the following: