You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

cppython

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cppython - pypi Package Compare versions

Comparing version
0.7.1.dev7
to
0.7.1.dev8
+25
-25
cppython/project.py

@@ -16,3 +16,2 @@ """

)
from cppython_core.utility import cppython_logger

@@ -38,6 +37,7 @@ from cppython.builder import Builder

console_handler = logging.StreamHandler()
cppython_logger.addHandler(console_handler)
cppython_logger.setLevel(levels[configuration.verbosity])
self.logger = logging.getLogger("cppython")
self.logger.addHandler(console_handler)
self.logger.setLevel(levels[configuration.verbosity])
cppython_logger.info("Initializing project")
self.logger.info("Initializing project")

@@ -48,7 +48,7 @@ self._builder = Builder(self.configuration)

if not plugins:
cppython_logger.error("No generator plugin was found")
self.logger.error("No generator plugin was found")
return
for plugin in plugins:
cppython_logger.warning(f"Generator plugin found: {plugin.name()}")
self.logger.warning(f"Generator plugin found: {plugin.name()}")

@@ -59,11 +59,11 @@ extended_pyproject_type = self._builder.generate_model(plugins)

if pyproject is None:
cppython_logger.error("Data is not defined")
self.logger.error("Data is not defined")
return
if pyproject.tool is None:
cppython_logger.error("Table [tool] is not defined")
self.logger.error("Table [tool] is not defined")
return
if pyproject.tool.cppython is None:
cppython_logger.error("Table [tool.cppython] is not defined")
self.logger.error("Table [tool.cppython] is not defined")
return

@@ -86,3 +86,3 @@

cppython_logger.info("Initialized project successfully")
self.logger.info("Initialized project successfully")

@@ -122,3 +122,3 @@ @property

if not self._enabled:
cppython_logger.info("Skipping 'download_generator_tools' because the project is not enabled")
self.logger.info("Skipping 'download_generator_tools' because the project is not enabled")
return

@@ -134,9 +134,9 @@

if not generator.generator_downloaded(path):
cppython_logger.warning(f"Downloading the {generator.name()} requirements to {path}")
self.logger.warning(f"Downloading the {generator.name()} requirements to {path}")
# TODO: Make async with progress bar
generator.download_generator(path)
cppython_logger.warning("Download complete")
self.logger.warning("Download complete")
else:
cppython_logger.info(f"The {generator.name()} generator is already downloaded")
self.logger.info(f"The {generator.name()} generator is already downloaded")

@@ -148,3 +148,3 @@ def update_generator_tools(self) -> None:

if not self._enabled:
cppython_logger.info("Skipping 'update_generator_tools' because the project is not enabled")
self.logger.info("Skipping 'update_generator_tools' because the project is not enabled")
return

@@ -167,9 +167,9 @@

if not self._enabled:
cppython_logger.info("Skipping install because the project is not enabled")
self.logger.info("Skipping install because the project is not enabled")
return
cppython_logger.info("Installing tools")
self.logger.info("Installing tools")
self.download_generator_tools()
cppython_logger.info("Installing project")
self.logger.info("Installing project")
preset_path = self.cppython.build_path

@@ -181,3 +181,3 @@

for generator in self._generators:
cppython_logger.info(f"Installing {generator.name()} generator")
self.logger.info(f"Installing {generator.name()} generator")

@@ -189,3 +189,3 @@ try:

except Exception as exception:
cppython_logger.error(f"Generator {generator.name()} failed to install")
self.logger.error(f"Generator {generator.name()} failed to install")
raise exception

@@ -201,9 +201,9 @@

if not self._enabled:
cppython_logger.info("Skipping update because the project is not enabled")
self.logger.info("Skipping update because the project is not enabled")
return
cppython_logger.info("Updating tools")
self.logger.info("Updating tools")
self.update_generator_tools()
cppython_logger.info("Updating project")
self.logger.info("Updating project")

@@ -216,3 +216,3 @@ preset_path = self.cppython.build_path

for generator in self._generators:
cppython_logger.info(f"Updating {generator.name()} generator")
self.logger.info(f"Updating {generator.name()} generator")

@@ -224,3 +224,3 @@ try:

except Exception as exception:
cppython_logger.error(f"Generator {generator.name()} failed to update")
self.logger.error(f"Generator {generator.name()} failed to update")
raise exception

@@ -227,0 +227,0 @@

Metadata-Version: 2.1
Name: cppython
Version: 0.7.1.dev7
Version: 0.7.1.dev8
Summary: A Python package manager agnostic plugin integrating a transparent Conan and CMake workflow.

@@ -5,0 +5,0 @@ License: MIT

@@ -19,3 +19,3 @@ [project]

]
version = "0.7.1.dev7"
version = "0.7.1.dev8"

@@ -22,0 +22,0 @@ [project.license-files]