Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python uv and poetry modules #221

Open
tommasodotNET opened this issue Nov 11, 2024 · 0 comments
Open

Python uv and poetry modules #221

tommasodotNET opened this issue Nov 11, 2024 · 0 comments
Labels
integration A new .NET Aspire integration

Comments

@tommasodotNET
Copy link
Contributor

.NET Aspire issue link

No response

Overview

An Integration to support Python modules packed by uv and poetry.

Usage example

var pythonModule = builder.AddUvicornApp("ServiceName",
                                            projectDirectory: "path/to/module"),
                                            scriptPath: "moduleName",
                                            packageManager: "uv")

Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item

aaronpowell added a commit that referenced this issue Nov 13, 2024
This will make it easier to add the features of #221
aaronpowell added a commit that referenced this issue Nov 13, 2024
* adds uvicorn integration

* working example for uvicorn

* adds tests

* adds uvicorn to CI

* adds virtual environment support

* Update src/Aspire.CommunityToolkit.Hosting.Uvicorn/CommunityToolkit.Aspire.Hosting.Uvicorn.csproj

Co-authored-by: Alireza Baloochi  <[email protected]>

* adds python/uvicorn tasks to main and release ci

* Update src/Aspire.CommunityToolkit.Hosting.Uvicorn/CommunityToolkit.Aspire.Hosting.Uvicorn.csproj

Co-authored-by: Aaron Powell <[email protected]>

* Update src/Aspire.CommunityToolkit.Hosting.Uvicorn/UvicornAppHostingExtension.cs

Co-authored-by: Aaron Powell <[email protected]>

* adds test on working directory

* Moving to a Python.Extensions package rather than uvicorn specific

This will make it easier to add the features of #221

* Using shared pathutils

* Fixing build issue

* forgot how it restructures everything so using the util method

* Update src/CommunityToolkit.Aspire.Hosting.Python.Extensions/README.md

Co-authored-by: Aaron Powell <[email protected]>

* Update src/CommunityToolkit.Aspire.Hosting.Python.Extensions/README.md

Co-authored-by: Aaron Powell <[email protected]>

* Basing ourselves on the Python hosting integration

* Ignoring Aspire.Hosting.Python from code coverage

---------

Co-authored-by: Alireza Baloochi <[email protected]>
Co-authored-by: Aaron Powell <[email protected]>
@aaronpowell aaronpowell added the integration A new .NET Aspire integration label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration A new .NET Aspire integration
Projects
None yet
Development

No branches or pull requests

2 participants