Skip to content

Commit

Permalink
Update docs and bump to v0.4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamheins committed Mar 4, 2024
1 parent 9a742ae commit 1114df5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
author = 'Adam Heins'

# The short X.Y version
version = '0.3.0'
version = '0.4.0'
# The full version, including alpha/beta/rc tags
release = version

Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- Dummy package.xml so that ROS tools can identify this as a package. -->
<package format="2">
<name>xacrodoc</name>
<version>0.3.0</version>
<version>0.4.0</version>
<description>Programmatically compile xacro files.</description>
<maintainer email="mail@adamheins.com">Adam Heins</maintainer>
<author>Adam Heins</author>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ line-length = 80

[tool.poetry]
name = "xacrodoc"
version = "0.3.0"
version = "0.4.0"
description = "Programmatically compile xacro files."
authors = ["Adam Heins <mail@adamheins.com>"]
license = "MIT"
Expand Down
8 changes: 7 additions & 1 deletion src/xacrodoc/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


class PackageNotFoundError(Exception):
"""Raised when a package could not be found."""
pass


Expand Down Expand Up @@ -229,9 +230,14 @@ def get_file_path(pkg, relative_path):
def update_package_cache(pkgpaths):
"""Update the package cache.
This allows the user to manually specify the location of packages on the
filesystem. The path does not actually need to be a proper ROS package,
meaning that there is no need to have a package.xml file there.
Parameters
----------
pkgpaths : dict
Map from package names to absolute package paths as strings.
Map from package names to package paths. The paths are resolved,
made absolute, and converted to strings.
"""
_finder.update_package_cache(pkgpaths)

0 comments on commit 1114df5

Please sign in to comment.