The package has been built successfully:
nexus_client-0.1.0-py3-none-any.whl(68KB)nexus_client-0.1.0.tar.gz(70KB)
Both packages passed twine check validation.
-
Create a TestPyPI account (if you don't have one):
- Go to https://test.pypi.org/account/register/
- Create an account and verify your email
-
Upload to TestPyPI:
python3 -m twine upload --repository testpypi dist/*- Username:
__token__ - Password: Your TestPyPI API token (create at https://test.pypi.org/manage/account/token/)
- Username:
-
Test installation from TestPyPI:
pip install --index-url https://test.pypi.org/simple/ nexus-client
-
Create a PyPI account (if you don't have one):
- Go to https://pypi.org/account/register/
- Create an account and verify your email
-
Create an API token:
- Go to https://pypi.org/manage/account/token/
- Create a new API token (scope: "Entire account" or project-specific)
- Copy the token (starts with
pypi-)
-
Publish to PyPI:
python3 -m twine upload dist/*- Username:
__token__ - Password: Your PyPI API token (e.g.,
pypi-AgEIcHJ...)
Or set environment variables:
export TWINE_USERNAME=__token__ export TWINE_PASSWORD=pypi-your-api-token-here python3 -m twine upload dist/*
- Username:
-
Verify publication:
- Check https://pypi.org/project/nexus-client/
- Test installation:
pip install nexus-client
You can also use the provided script:
./publish_to_pypi.sh-
Version Number: Current version is
0.1.0. To publish updates:- Update
version = "0.1.0"inpyproject.toml - Rebuild:
python3 -m build - Republish:
python3 -m twine upload dist/*
- Update
-
Package Name: The package name is
nexus-client(with hyphen), but imports usenexus_client(with underscore). -
License: Fixed to use SPDX format (
license = "Apache-2.0"instead of table format). -
After Publishing:
- Package will be available at: https://pypi.org/project/nexus-client/
- Installation:
pip install nexus-clientorpip install nexus-client[langgraph] - It may take a few minutes for the package to be indexed and searchable
- "Package already exists": Version 0.1.0 is already published. Increment version in
pyproject.toml. - Authentication errors: Make sure you're using
__token__as username and the full token (includingpypi-prefix) as password. - Upload errors: Check your internet connection and PyPI status.