Skip to content

Commit 584563d

Browse files
committed
Final cleanup before merging
1 parent bf8e41e commit 584563d

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ endif()
5858

5959
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
6060

61-
find_package(Glog)
62-
61+
find_package(Glog REQUIRED)
6362
find_package(util_caching REQUIRED)
6463
find_package(Yaml-cpp REQUIRED)
6564

@@ -153,3 +152,4 @@ install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/
153152
include(cpack_config)
154153
include(CPack)
155154

155+
message(STATUS "Components to pack: ${CPACK_COMPONENTS_ALL}")

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ First make sure all dependencies are installed:
9696
- [yaml-cpp](https://github.com/jbeder/yaml-cpp)
9797
- [Googletest](https://github.com/google/googletest) (optional, if you want to build unit tests)
9898
- [Crow](https://crowcpp.org) (optional, needed for GUI only)
99-
- [pybind11](https://pybind11.readthedocs.io/en/stable/) (optional, if you want to build Python bindings and unit tests)
99+
- [pybind11](https://pybind11.readthedocs.io/en/stable/) (optional, if you want to build Python bindings and Python unit tests)
100100

101101
See also the [`Dockerfile`](./Dockerfile) for how to install these packages under Debian or Ubuntu.
102102
</details>
@@ -185,7 +185,8 @@ PYBIND11_MODULE(arbitration_graphs, m) {
185185
python_api::bindArbitrationGraphs<MyCommand>(m);
186186
}
187187
```
188-
and use them in Python by for example implementing a custom behavior that inherits from the abstract `Behavior` class.
188+
and use them in Python.
189+
For example, you could implement a custom behavior that inherits from the abstract `Behavior` class.
189190
190191
```python
191192
from arbitration_graphs import Behavior
@@ -196,7 +197,6 @@ class MyBehavior(Behavior):
196197
```
197198
We re-implemented all of the C++ unit tests in Python, so take a closer look at those for more advanced usage examples.
198199

199-
</details>
200200

201201
## Development
202202

@@ -222,7 +222,7 @@ There, you can edit the source code, compile and run the tests etc.
222222
<summary>Compiling unit tests</summary>
223223

224224
To compile and run the C++ unit tests, make sure Googletest is available.
225-
For the python tests, make sure pybind11 is installed.
225+
For the Python tests, make sure pybind11 is installed.
226226

227227
In order to compile with tests define `BUILD_TESTS=true`
228228
```bash

include/arbitration_graphs/internal/exceptions_py.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,12 @@ namespace py = pybind11;
1010

1111
inline void bindExceptions(py::module& module) {
1212
py::register_exception<GetCommandCalledWithoutGainControlError>(module, "GetCommandCalledWithoutGainControlError");
13-
1413
py::register_exception<InvocationConditionIsFalseError>(module, "InvocationConditionIsFalseError");
15-
1614
py::register_exception<MultipleReferencesToSameInstanceError>(module, "MultipleReferencesToSameInstanceError");
17-
1815
py::register_exception<InvalidArgumentsError>(module, "InvalidArgumentsError");
19-
2016
py::register_exception<VerificationError>(module, "VerificationError");
21-
2217
py::register_exception<NoApplicableOptionPassedVerificationError>(module,
2318
"NoApplicableOptionPassedVerificationError");
24-
2519
py::register_exception<ApplicableOptionFailedVerificationError>(module, "ApplicableOptionFailedVerificationError");
2620
}
2721

0 commit comments

Comments
 (0)