Python SDK for Passport MCP
Project description
I'll outline the steps for testing, building, and publishing BrowserPassport to PyPI.
-
First, let's add a basic test structure to our Python SDK:
-
Update
pyproject.tomlto include test dependencies: -
Development and Testing Steps:
# From sdks/python directory
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install package in editable mode with test dependencies
pip install -e ".[test]"
# Run tests
pytest tests/
- Build and Publish Steps:
# Build the package
python -m build
# This will create:
# - dist/browserpassport-0.1.0.tar.gz (source distribution)
# - dist/browserpassport-0.1.0-py3-none-any.whl (wheel)
# Test the build (optional)
pip install dist/browserpassport-0.1.0-py3-none-any.whl
# Publish to TestPyPI first (recommended)
python -m twine upload --repository testpypi dist/*
# Once tested, publish to PyPI
python -m twine upload dist/*
- Required PyPI Setup:
- Create accounts on PyPI (https://pypi.org) and TestPyPI (https://test.pypi.org)
- Create API tokens for authentication
- Create
~/.pypircfile:
- GitHub Actions (Optional): We can also set up automated testing and publishing. Would you like me to provide a GitHub Actions workflow for this?
Key points to remember:
- Always test thoroughly before publishing
- Use TestPyPI first to verify the package
- Make sure the version number is updated in
pyproject.tomlbefore building - Keep PyPI tokens secure and never commit them to the repository
- The build process will include the native host files from the shared directory
Let me know if you'd like me to elaborate on any of these steps or provide additional configurations!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ppmcp-0.1.0.tar.gz.
File metadata
- Download URL: ppmcp-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11e0871907f24efebf332c9f2aff6c75a32a754f406a245c9de57b316cc486fb
|
|
| MD5 |
ebb863f679489a67b9a77e128ae8d03f
|
|
| BLAKE2b-256 |
6543b68875d1a7caa7d7795f49dbde823e7d9f7bd3011ecbefdcdaa11d4ae408
|
File details
Details for the file ppmcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ppmcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3da710c057aff214a57c2c6d002665f1b114d2a4934b953ac4fb7a27263dd2ff
|
|
| MD5 |
55826a2122f9cd09e8e6d54111f012e0
|
|
| BLAKE2b-256 |
380e840bf4dea1e234746ebc8f7d470bff171f247a95b825c5ac176593aa3dcd
|