Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ For other implementations of Posit arithmetic, see the Implementations section i
# Installation

1. Clone this directory into your project folder.
2. Activate your Python virtual environment.
3. `cd` into this folder.
4. Run `pip install -e ./cuPosit/`.
2. `cd` into this folder.
3. `uv sync`

Now you can use cuposit in your environment.

Expand All @@ -52,8 +51,9 @@ Install `uv`: https://docs.astral.sh/uv/getting-started/installation/#installati
```sh
curl -LsSf https://astral.sh/uv/install.sh | sh
uv python install 3.12
uv pin python 3.12
uv sync
source .venv/bin/activate
uv run <file>.py
```

Then go into the examples folder and run any example you'd like.
Expand Down
15 changes: 14 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,17 @@ include-package-data = true
cuposit = ["*.so", "*.pyd"]

[tool.uv]
package = true
package = true

[tool.uv.workspace]
members = [
".",
]

[tool.uv.sources]
cuposit = { workspace = true}

[dependency-groups]
dev = [
"cuposit",
]
8 changes: 8 additions & 0 deletions uv.lock

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