Skip to content

Commit

Permalink
tests are now using the new catkin_pip_target and calling catkin_pack…
Browse files Browse the repository at this point in the history
…age directly.
  • Loading branch information
asmodehn committed Aug 10, 2017
1 parent 5b799e9 commit 6f95cb0
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
6 changes: 4 additions & 2 deletions test/distutils-setup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ set (PIP_PROJECT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/distutils_setup)

find_package(catkin REQUIRED COMPONENTS catkin_pip)

# This replace both catkin_python_setup() and catkin_package()
# This replace catkin_python_setup()
# For devel, this will install all your unsatisfied pip dependencies.
# Upon install, this will bark if some dependencies are not already satisfied (by ROS).
catkin_pip_package(dstest ${PIP_PROJECT_DIR})
catkin_pip_target(dstest ${PIP_PROJECT_DIR})

catkin_package()

# CAREFUL : all projects for test here will share the same workspace. pip might have conflicts...

Expand Down
6 changes: 4 additions & 2 deletions test/pipproject/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ catkin_pip_requirements(${PIP_PROJECT_DIR}/requirements.txt --ignore-installed)
# However this also means that existing packages in the workspace will not be used to satisfy requirements,
# and will be reinstalled everytime...

# This replace both catkin_python_setup() and catkin_package()
# This replace catkin_python_setup()
# For devel, this will install all your unsatisfied pip dependencies.
# Upon install, this will bark if some dependencies are not already satisfied (by ROS).
catkin_pip_package(mypippkg ${PIP_PROJECT_DIR})
catkin_pip_target(mypippkg ${PIP_PROJECT_DIR})

catkin_package()

# CAREFUL : all projects for test here will share the same workspace. pip might have conflicts...

Expand Down
6 changes: 4 additions & 2 deletions test/pylibrary/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ find_package(catkin REQUIRED COMPONENTS catkin_pip)

# no requirements file in this project template

# This replace both catkin_python_setup() and catkin_package()
# This replace catkin_python_setup()
# For devel, this will install all your unsatisfied pip dependencies.
# Upon install, this will bark if some dependencies are not already satisfied (by ROS).
catkin_pip_package(nameless ${PIP_PROJECT_DIR})
catkin_pip_target(nameless ${PIP_PROJECT_DIR})

catkin_package()

# CAREFUL : all projects for test here will share the same workspace. pip might have conflicts...

Expand Down
6 changes: 4 additions & 2 deletions test/pypackage-minimal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ find_package(catkin REQUIRED COMPONENTS catkin_pip)

# no requirements file here

# This replace both catkin_python_setup() and catkin_package()
# This replace catkin_python_setup()
# For devel, this will install all your unsatisfied pip dependencies.
# Upon install, this will bark if some dependencies are not already satisfied (by ROS).
catkin_pip_package(cookiecutter_pypackage_minimal ${PIP_PROJECT_DIR})
catkin_pip_target(cookiecutter_pypackage_minimal ${PIP_PROJECT_DIR})

catkin_package

# CAREFUL : all projects for test here will share the same workspace. pip might have conflicts...

Expand Down
6 changes: 4 additions & 2 deletions test/pypackage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ catkin_pip_requirements(${PIP_PROJECT_DIR}/requirements_dev.txt --ignore-install
# However this also means that existing packages in the workspace will not be used to satisfy requirements,
# and will be reinstalled everytime...

# This replace both catkin_python_setup() and catkin_package()
# This replace catkin_python_setup()
# For devel, this will install all your unsatisfied pip dependencies.
# Upon install, this will bark if some dependencies are not already satisfied (by ROS).
catkin_pip_package(python_boilerplate ${PIP_PROJECT_DIR})
catkin_pip_target(python_boilerplate ${PIP_PROJECT_DIR})

catkin_package()

# CAREFUL : all projects for test here will share the same workspace. pip might have conflicts...

Expand Down
6 changes: 4 additions & 2 deletions test/setuptools-setup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ set (PIP_PROJECT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/setuptools_setup)

find_package(catkin REQUIRED COMPONENTS catkin_pip)

# This replace both catkin_python_setup() and catkin_package()
# This replace catkin_python_setup()
# For devel, this will install all your unsatisfied pip dependencies.
# Upon install, this will bark if some dependencies are not already satisfied (by ROS).
catkin_pip_package(sstest ${PIP_PROJECT_DIR})
catkin_pip_target(sstest ${PIP_PROJECT_DIR})

catkin_package()

# CAREFUL : all projects for test here will share the same workspace. pip might have conflicts...

Expand Down

0 comments on commit 6f95cb0

Please sign in to comment.