Skip to content

Commit

Permalink
fix: only validate if package mode is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jonapich committed Dec 17, 2024
1 parent b82ca3c commit ee34926
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coveo_stew/offline_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ def perform_offline_install(self, *, quiet: bool = False) -> None:
self._store_dependencies_in_wheelhouse()

# validate the wheelhouse; this will exit in error if something's amiss or result in a noop if all is right.
self._validate_package(f"{self.project.package.name}=={self.project.package.version}")
# if package mode is disabled, we expect the package to be missing.
if self.project.package.package_mode:
self._validate_package(f"{self.project.package.name}=={self.project.package.version}")

def _store_setup_dependencies_in_wheelhouse(
self, project: Optional[PythonProject] = None
Expand Down

0 comments on commit ee34926

Please sign in to comment.