Skip to content

Commit

Permalink
Merge pull request #54 from ami-iit/pixi_support
Browse files Browse the repository at this point in the history
Add Pixi support and configuration files
  • Loading branch information
flferretti authored Nov 29, 2024
2 parents 4fd6975 + 97b6c09 commit c67a77d
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# LFS
pixi.lock filter=lfs diff=lfs merge=lfs -text

# SCM syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,7 @@ dmypy.json

# IDE
.idea

# pixi environments
.pixi
*.egg-info
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,26 @@ This will automatically install `sdformat` and `gz-tools`.

</details>

<details>
<summary>Using pixi</summary>

[`pixi`](https://pixi.sh) definetly provides the quickest way to start using ROD. You can run the tests by executing:

```bash
pixi run test
```

or install the default dependencies with:

```bash
pixi install
```

check out the [pyproject.toml](./pyproject.toml) file for the list of all available features and read the [`pixi`](https://pixi.sh) documentation for more information.

</details>


<details>
<summary>Using pip</summary>

Expand Down
3 changes: 3 additions & 0 deletions pixi.lock

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

34 changes: 34 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,37 @@ ignore = [
[tool.ruff.lint.per-file-ignores]
# Ignore `E402` (import violations) in all `__init__.py` files
"__init__.py" = ["F401", "F821"]


# ==================
# Pixi configuration
# ==================

[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64"]

[tool.pixi.dependencies]
resolve-robotics-uri-py = "*"
trimesh = "*"
xmltodict = "*"
coloredlogs = "*"
mashumaro = "*"
gz-tools2 = "*"
libsdformat13 = "*"
numpy = "*"
scipy = "*"
packaging = "*"

[tool.pixi.pypi-dependencies]
rod = { path = ".", editable = true }

[tool.pixi.environments]
default = { solve-group = "default" }
all = { features = ["all", "style", "pptree", "testing"], solve-group = "default" }
pptree = { features = ["pptree"], solve-group = "default" }
style = { features = ["style"], solve-group = "default" }
testing = { features = ["testing"], solve-group = "default" }

[tool.pixi.feature.testing.tasks]
test = "pytest -vv"

0 comments on commit c67a77d

Please sign in to comment.