File tree Expand file tree Collapse file tree 9 files changed +57
-21
lines changed
tests/integration/examples Expand file tree Collapse file tree 9 files changed +57
-21
lines changed Original file line number Diff line number Diff line change 1- """CMake data definitions"""
1+ """CMake plugin schema
2+
3+ This module defines the schema and data models for integrating the CMake
4+ generator with CPPython. It includes definitions for cache variables,
5+ configuration presets, and synchronization data.
6+ """
27
38from enum import Enum , auto
49from pathlib import Path
1116
1217
1318class VariableType (Enum ):
14- """_summary_
19+ """Defines the types of variables that can be used in CMake cache.
1520
1621 Args:
17- Enum: _description_
22+ Enum: Base class for creating enumerations.
1823 """
1924
2025 BOOL = (auto (),) # Boolean ON/OFF value.
@@ -27,7 +32,12 @@ class VariableType(Enum):
2732
2833
2934class CacheVariable (CPPythonModel , extra = 'forbid' ):
30- """_summary_"""
35+ """Represents a variable in the CMake cache.
36+
37+ Attributes:
38+ type: The type of the variable (e.g., BOOL, PATH).
39+ value: The value of the variable, which can be a boolean or string.
40+ """
3141
3242 type : None | VariableType
3343 value : bool | str
Original file line number Diff line number Diff line change 1- """_summary_"""
1+ """Conan Provider Plugin
2+
3+ This module implements the Conan provider plugin for CPPython. It handles
4+ integration with the Conan package manager, including dependency resolution,
5+ installation, and synchronization with other tools.
6+ """
27
38from pathlib import Path
49from typing import Any
@@ -67,24 +72,27 @@ def update(self) -> None:
6772
6873 @staticmethod
6974 def supported_sync_type (sync_type : type [SyncData ]) -> bool :
70- """_summary_
75+ """Checks if the given sync type is supported by the Conan provider.
7176
7277 Args:
73- sync_type: _description_
78+ sync_type: The type of synchronization data to check.
7479
7580 Returns:
76- _description_
81+ True if the sync type is supported, False otherwise.
7782 """
7883 return sync_type in CMakeGenerator .sync_types ()
7984
8085 def sync_data (self , consumer : SyncConsumer ) -> SyncData :
81- """_summary_
86+ """Generates synchronization data for the given consumer.
8287
8388 Args:
84- consumer: _description_
89+ consumer: The input consumer for which synchronization data is generated.
8590
8691 Returns:
87- _description_
92+ The synchronization data object.
93+
94+ Raises:
95+ NotSupportedError: If the consumer's sync type is not supported.
8896 """
8997 for sync_type in consumer .sync_types ():
9098 if sync_type == CMakeSyncData :
Original file line number Diff line number Diff line change 1- """_summary_ """
1+ """Provides functionality to resolve Conan-specific data for the CPPython project. """
22
33from typing import Any
44
Original file line number Diff line number Diff line change 1- """TODO"""
1+ """Conan plugin schema
2+
3+ This module defines Pydantic models used for integrating the Conan
4+ package manager with the CPPython environment. The classes within
5+ provide structured configuration and data needed by the Conan Provider.
6+ """
27
38from cppython .core .schema import CPPythonModel
49
Original file line number Diff line number Diff line change 1- """Git SCM plugin"""
1+ """Git SCM Plugin
2+
3+ This module implements the Git SCM plugin for CPPython. It provides
4+ functionality for interacting with Git repositories, including feature
5+ detection, version extraction, and project description retrieval.
6+ """
27
38from pathlib import Path
49
Original file line number Diff line number Diff line change @@ -47,13 +47,13 @@ def features(directory: Path) -> SupportedProviderFeatures:
4747
4848 @staticmethod
4949 def supported_sync_type (sync_type : type [SyncData ]) -> bool :
50- """_summary_
50+ """Checks if the given sync type is supported by the vcpkg provider.
5151
5252 Args:
53- sync_type: _description_
53+ sync_type: The type of synchronization data to check.
5454
5555 Returns:
56- _description_
56+ True if the sync type is supported, False otherwise.
5757 """
5858 return sync_type in CMakeGenerator .sync_types ()
5959
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ def information() -> Information:
5151
5252 @staticmethod
5353 def sync_types () -> list [type [SyncData ]]:
54- """_summary_
54+ """Returns the supported synchronization data types for the mock generator.
5555
5656 Returns:
57- _description_
57+ A list of supported synchronization data types.
5858 """
5959 return [MockSyncData ]
6060
Original file line number Diff line number Diff line change 1- """TODO"""
1+ """Integration tests for the conan and CMake project variation.
2+
3+ This module contains integration tests for projects that use conan and CMake.
4+ The tests ensure that the projects build, configure, and execute correctly.
5+ """
26
37import subprocess
48
Original file line number Diff line number Diff line change 1- """TODO"""
1+ """Integration tests for the vcpkg and CMake project variation.
2+
3+ This module contains integration tests for projects that use vcpkg and CMake.
4+ The tests ensure that the projects build, configure, and execute correctly.
5+ """
26
37import subprocess
48
You can’t perform that action at this time.
0 commit comments