Skip to main content

Python SDK for Passport MCP

Project description

I'll outline the steps for testing, building, and publishing BrowserPassport to PyPI.

  1. First, let's add a basic test structure to our Python SDK:

  2. Update pyproject.toml to include test dependencies:

  3. 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/
  1. 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/*
  1. Required PyPI Setup:
  1. 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:

  1. Always test thoroughly before publishing
  2. Use TestPyPI first to verify the package
  3. Make sure the version number is updated in pyproject.toml before building
  4. Keep PyPI tokens secure and never commit them to the repository
  5. 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

ppmcp-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ppmcp-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for ppmcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 11e0871907f24efebf332c9f2aff6c75a32a754f406a245c9de57b316cc486fb
MD5 ebb863f679489a67b9a77e128ae8d03f
BLAKE2b-256 6543b68875d1a7caa7d7795f49dbde823e7d9f7bd3011ecbefdcdaa11d4ae408

See more details on using hashes here.

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

Hashes for ppmcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3da710c057aff214a57c2c6d002665f1b114d2a4934b953ac4fb7a27263dd2ff
MD5 55826a2122f9cd09e8e6d54111f012e0
BLAKE2b-256 380e840bf4dea1e234746ebc8f7d470bff171f247a95b825c5ac176593aa3dcd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page