Skip to content

Latest commit

 

History

History
67 lines (55 loc) · 1.43 KB

README.md

File metadata and controls

67 lines (55 loc) · 1.43 KB

una-example

NB: This is currently slightly broken due to uv's new behaviour in 0.4.0. Waiting to figure out the best way forward.

This is an example of an una monorepo.

Read more about una:

About

This repository is basically the result of the following steps:

uv init una-example
cd una-example
git init
uv add --dev una
uv run una create workspace
uv sync
uv run una sync
uv add --dev basedpyright pytest

And then some extra settings added to all the pyproject.toml files to get Pyright and Pytest to play nice.

Commands

Sync the una dependency graph (that is, resolve all dependencies between packages in the monorepo):

uv run una sync

Formatting, linting etc (these are specified at the top of the root pyproject.toml).

make fmt
make lint
make check
make test

make all

Building

Build wheels (outputs to dist/):

make build

Docker

make build-docker
docker run --rm -p 8000:8000 -it example

Then curl the running server:

$ curl localhost:8000

┌────────────────┐
│Hello from Una! │
└────────────────┘
               \
                \
                  ^__^
                  (oo)\_______
                  (__)\       )\/\
                      ||----w |
                      ||     ||