Skip to content
Merged
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
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ jobs:
name: colcon-logs-${{ matrix.ros }}
path: ros_ws/log

# The pytest suites only run under colcon above, so cover the wheel path as well.
wheel:
runs-on: ubuntu-latest
name: Wheel
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v7
- name: Install package with dev extra
run: uv venv && uv pip install -e ".[dev]"
- name: Python tests
run: uv run pytest test/test_python_bindings.py -v

standalone_cmake:
runs-on: ubuntu-latest
name: Standalone CMake + ctest
Expand Down
47 changes: 38 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,45 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["scikit-build-core>=0.10", "pybind11>=2.12"]
build-backend = "scikit_build_core.build"

[project]
name = "polymath_kinematics"
version = "0.1.0"
description = "Simple mixed C++/Python kinematics library"
license = {text = "Apache-2.0"}
version = "0.2.0"
description = "Mixed C++/Python kinematics library for vehicle models"
license = { text = "Apache-2.0" }
maintainers = [
{name = "Polymath Robotics", email = "dev@polymathrobotics.com"}
{ name = "Polymath Robotics", email = "dev@polymathrobotics.com" },
]
requires-python = ">=3.8"
requires-python = ">=3.10"
dependencies = [
"numpy>=1.21.0",
]

[project.optional-dependencies]
explorer = [
"streamlit>=1.20.0",
"matplotlib>=3.5.0",
"pandas>=1.4.0",
]
dev = [
"pytest>=7.0.0",
"polymath_kinematics[explorer]",
]

[project.scripts]
kinematic-explorer = "polymath_kinematics.explorer.cli:main"

[tool.scikit-build]
cmake.version = ">=3.15"
build.verbose = false
# C++ tests are built out-of-band via `cmake -DBUILD_TESTING=ON`, not as part of the wheel.
# CMAKE_DISABLE_FIND_PACKAGE_ament_cmake forces the wheel build down the non-ament path even
# when /opt/ros/humble is installed on the system — otherwise the ROS2 branch is taken and
# then fails on missing build-env deps like catkin_pkg.
cmake.args = ["-DBUILD_TESTING=OFF", "-DCMAKE_DISABLE_FIND_PACKAGE_ament_cmake=ON"]
wheel.packages = ["polymath_kinematics"]

[tool.setuptools]
packages = ["polymath_kinematics"]
# uv reads this; defers to the extras above so the pins live in one place.
[dependency-groups]
dev = [{ include-group = "explorer" }, "pytest>=7.0.0"]
explorer = ["polymath_kinematics[explorer]"]
5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

Loading
Loading