Your package is built and ready to upload! Follow these steps:
Visit https://pypi.org/account/register/
- Log into PyPI
- Go to Account Settings → API tokens
- Create a new token (choose "Entire account" scope for first upload)
- Copy the token (it starts with
pypi-)
Option A: Using command line (interactive):
python3 -m twine upload dist/*- Username:
__token__ - Password: [paste your API token]
Option B: Using environment variables:
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=pypi-AgBJ... # Your actual token
python3 -m twine upload dist/*Option C: Create a .pypirc file in your home directory:
[pypi]
username = __token__
password = pypi-AgBJ... # Your actual tokenAfter uploading, wait a few minutes and then:
pip install agentchat- Make sure to update the author information in
pyproject.tomland other files before uploading - If "agentchat" is already taken, you'll need to change the package name in
pyproject.toml - For test uploads, use TestPyPI first: https://test.pypi.org/
- If the name is taken, modify
pyproject.tomlto use a different name (e.g.,agentchat-yourusername) - After changing the name, rebuild with
python3 -m build --outdir dist - Then upload again with
python3 -m twine upload dist/*