Skip to content

Commit

Permalink
feat: create repodata based on lockfile and add --inject support (#10)
Browse files Browse the repository at this point in the history
Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com>
Co-authored-by: Daniel Elsner <daniel.elsner@quantco.com>
  • Loading branch information
3 people authored Jun 5, 2024
1 parent 52d4869 commit bbab2d9
Show file tree
Hide file tree
Showing 14 changed files with 3,279 additions and 76 deletions.
74 changes: 45 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ clap = { version = "4.5.4", features = ["derive", "string"] }
clap-verbosity-flag = "2.2.0"
futures = "0.3.30"
indicatif = "0.17.8"
rattler = "0.26.2"
rattler_conda_types = "0.25.0"
rattler_index = "0.19.15"
rattler_lock = "0.22.10"
rattler_networking = "0.20.8"
rattler_package_streaming = "0.21.1"
rattler_shell = "0.20.6"
rattler = { git = "https://github.com/mamba-org/rattler", rev = "20c0951" }
rattler_digest = { git = "https://github.com/mamba-org/rattler", rev = "20c0951" }
rattler_conda_types = { git = "https://github.com/mamba-org/rattler", rev = "20c0951" }
rattler_index = { git = "https://github.com/mamba-org/rattler", rev = "20c0951" }
rattler_lock = { git = "https://github.com/mamba-org/rattler", rev = "20c0951" }
rattler_networking = { git = "https://github.com/mamba-org/rattler", rev = "20c0951" }
rattler_package_streaming = { git = "https://github.com/mamba-org/rattler", rev = "20c0951" }
rattler_shell = { git = "https://github.com/mamba-org/rattler", rev = "20c0951" }
reqwest = "0.12.4"
reqwest-middleware = "0.3.1"
serde = { version = "1.0.203", features = ["derive"] }
Expand Down
3 changes: 3 additions & 0 deletions examples/webserver/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.pixi/
output/
__pycache__/
14 changes: 14 additions & 0 deletions examples/webserver/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Webserver

This is a simple web server that runs FastAPI.

## Run the server

```bash
rattler-build build -r recipe/recipe.yaml
pixi-pack pack -e prod --platform win-64 --inject output/noarch/my-webserver-*.conda
```

> [!NOTE]
> The files `my-webserver-0.1.0-pyh4616a5c_0.conda` and `my-webserver-0.1.0-pyh4616a5c_0.tar.bz2` are only for testing, in a real scenario it would be in the `output/noarch` directory generated by `rattler-build`.
> They were generated using `rattler-build build -r recipe/recipe.yaml --package-format conda` and `rattler-build build -r recipe/recipe.yaml --package-format tar-bz2`.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions examples/webserver/my_webserver/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from fastapi import FastAPI

app = FastAPI()


@app.get("/")
def hello():
return "Hello, World!"
Loading

0 comments on commit bbab2d9

Please sign in to comment.