Skip to content

Conversation

@cicorias
Copy link
Member

@cicorias cicorias commented Jan 28, 2026

Add pip installability support via pyproject.toml

Summary

This PR adds a pyproject.toml configuration file to enable direct installation of this package from Git using pip or uv.

Changes

  • Added pyproject.toml with:
    • Project metadata and dependencies
    • Build system configuration using setuptools
    • Package discovery configuration to include only the python/ directory modules
    • Explicit module declarations for content_understanding_client and chapters_utility

Benefits

  • Users can now install this package directly from GitHub without cloning the repository
  • Simplifies dependency management for projects that use AzureContentUnderstandingClient
  • Enables version pinning and integration with standard Python dependency management tools

Test Consumer Project

https://github.com/cicorias/cu-validation-01-content-understanding

Installation

After merge:

# Using pip
pip install git+https://github.com/Azure-Samples/azure-ai-content-understanding-python.git

# Using uv
uv pip install git+https://github.com/Azure-Samples/azure-ai-content-understanding-python.git

before merge to try now

pip install "git+https://github.com/cicorias/azure-ai-content-understanding-python-1.git@make-pip-install-friendly"

# with UV
uv pip install "git+https://github.com/cicorias/azure-ai-content-understanding-python-1.git@make-pip-install-friendly"

PIP

image image

with UV

image

@cicorias cicorias force-pushed the make-pip-install-friendly branch from e41c1cd to 0fd2848 Compare January 28, 2026 13:28
allows pip installs with "pip install git+https:/....."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant