Skip to content

Commit

Permalink
YAML_READER: remove pytest dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Dec 5, 2024
1 parent 4e7712b commit 5569465
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 1 addition & 5 deletions cmake/fckit_install_venv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ macro( fckit_install_venv )
# Find newly created python venv
find_package( Python3 COMPONENTS Interpreter REQUIRED )

set( _pkg_name "fckit_yaml_reader")
if( HAVE_TESTS )
set( _pkg_name "fckit_yaml_reader/[tests]")
endif()

if( Python3_VERSION VERSION_EQUAL 3.8 )
execute_process( COMMAND ${Python3_EXECUTABLE} -m pip --disable-pip-version-check
install --upgrade ${PIP_OPTIONS} pip OUTPUT_QUIET ERROR_QUIET )
Expand All @@ -50,6 +45,7 @@ macro( fckit_install_venv )
list( APPEND PIP_OPTIONS "-e" )
endif()

set( _pkg_name "fckit_yaml_reader")
ecbuild_info( "Install fckit_yaml_reader in virtual environment ${VENV_PATH}" )
execute_process( COMMAND ${Python3_EXECUTABLE} -m pip --disable-pip-version-check
install ${PIP_OPTIONS} ${CMAKE_CURRENT_SOURCE_DIR}/src/fckit/${_pkg_name} OUTPUT_QUIET )
Expand Down
3 changes: 0 additions & 3 deletions src/fckit/fckit_yaml_reader/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ version = "0.0.1"
requires-python = ">=3.8"
license = {text = "Apache-2.0"}
description = "A minimal wrapper for ruamel.yaml to create an API consistent with pyyaml."

[project.optional-dependencies]
tests = ["pytest"]

0 comments on commit 5569465

Please sign in to comment.