Skip to content

Commit 6414336

Browse files
authored
Test the automatic distro selecting from channels (#84)
1 parent d891d95 commit 6414336

File tree

23 files changed

+14960
-33119
lines changed

23 files changed

+14960
-33119
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ pytest-temp
1414
artifacts
1515
*.local.*
1616
AGENTS.md
17+
files.txt

mypy.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[mypy]
22
strict = True
3-
exclude = tests/data/pypi-indexes|.*setup\.py
4-
files = tests,scripts
3+
exclude = tests/data/pypi-indexes|.*/pytest-temp/.*|.*setup\.py
4+
files = tests,scripts

pixi.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
[project]
1+
[workspace]
22
authors = ["Julian Hofer <[email protected]>"]
33
channels = ["https://prefix.dev/conda-forge"]
44
description = "Test Pixi and its backend in unison"
55
name = "pixi-build-testsuite"
66
platforms = ["linux-64", "win-64", "osx-arm64"]
77
requires-pixi = ">=0.45"
88

9+
# Preview as it's being found by some of the tests
10+
preview = ["pixi-build"]
11+
912
[dependencies]
1013
filelock = ">=3.16.0,<4"
1114
git = "==2.51.0"

tests/data/pixi_build/ros-workspace/pixi.lock

Lines changed: 14905 additions & 32898 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/data/pixi_build/ros-workspace/pixi.toml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,26 @@
22
channels = [
33
"https://prefix.dev/pixi-build-backends",
44
"https://prefix.dev/conda-forge",
5-
"https://prefix.dev/robostack-staging",
5+
"https://prefix.dev/robostack-humble",
66
]
77
platforms = ["osx-arm64", "linux-64", "win-64", "linux-aarch64"]
88
preview = ["pixi-build"]
99

1010
[tasks]
1111
navigator = "ros2 run navigator navigator"
1212
navigator_py = "ros2 run navigator_py navigator"
13-
sim = "ros2 run turtlesim turtlesim_node"
14-
talker = "ros2 run talker_py talker"
1513

1614
[dependencies]
17-
ros-humble-desktop = ">=0.10.0,<0.11"
1815
ros-humble-navigator = { path = "src/navigator" }
1916
ros-humble-navigator-py = { path = "src/navigator_py" }
20-
ros-humble-talker-py = { path = "src/talker-py" }
17+
18+
[feature.distro-less]
19+
channels = [
20+
"https://prefix.dev/robostack-jazzy",
21+
"https://prefix.dev/conda-forge",
22+
]
23+
dependencies = { ros-jazzy-distro-less-package = { path = "src/distro_less_package" } }
24+
tasks = { distro-less-task = "ros2 run distro_less_package distro_less_package" }
25+
26+
[environments]
27+
distro-less = { features = ["distro-less"], no-default-feature = true }

tests/data/pixi_build/ros-workspace/src/talker-py/talker_py/__init__.py renamed to tests/data/pixi_build/ros-workspace/src/distro_less_package/distro_less_package/__init__.py

File renamed without changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Simple hello world script for ROS2 in Python
2+
from typing import Any
3+
4+
import rclpy # type: ignore[import-not-found]
5+
6+
7+
def main(args: Any = None) -> None:
8+
rclpy.init(args=args)
9+
print("Distroless package")

tests/data/pixi_build/ros-workspace/src/talker-py/package.xml renamed to tests/data/pixi_build/ros-workspace/src/distro_less_package/package.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<?xml version="1.0"?>
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
4-
<name>talker_py</name>
4+
<name>distro_less_package</name>
55
<version>0.0.0</version>
66
<description>TODO: Package description</description>
7-
<maintainer email="ruben.arts@hotmail.com">rubenarts</maintainer>
7+
<maintainer email="jane.doe@mail.com">jane</maintainer>
88
<license>BSD-3-Clause</license>
99

10+
<depend>rclpy</depend>
11+
1012
<test_depend>ament_copyright</test_depend>
1113
<test_depend>ament_flake8</test_depend>
1214
<test_depend>ament_pep257</test_depend>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package.build.backend]
2+
name = "pixi-build-ros"
3+
version = "*"
4+
5+
# Specifically no distro specified here:
6+
# [package.build.config]

tests/data/pixi_build/ros-workspace/src/talker-py/resource/talker_py renamed to tests/data/pixi_build/ros-workspace/src/distro_less_package/resource/distro_less_package

File renamed without changes.

0 commit comments

Comments
 (0)