IncludeCPP 3.7.6__tar.gz → 3.7.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {includecpp-3.7.6 → includecpp-3.7.7}/IncludeCPP.egg-info/PKG-INFO +1 -1
- {includecpp-3.7.6 → includecpp-3.7.7}/PKG-INFO +1 -1
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/__init__.py +1 -1
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/cli/commands.py +37 -2
- {includecpp-3.7.6 → includecpp-3.7.7}/pyproject.toml +1 -1
- {includecpp-3.7.6 → includecpp-3.7.7}/IncludeCPP.egg-info/SOURCES.txt +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/IncludeCPP.egg-info/dependency_links.txt +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/IncludeCPP.egg-info/entry_points.txt +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/IncludeCPP.egg-info/requires.txt +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/IncludeCPP.egg-info/top_level.txt +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/LICENSE +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/MANIFEST.in +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/README.md +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/__init__.pyi +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/__main__.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/cli/__init__.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/cli/config_parser.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/__init__.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/ai_integration.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/build_manager.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cpp_api.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cpp_api.pyi +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cppy_converter.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cssl/CSSL_DOCUMENTATION.md +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cssl/__init__.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cssl/cssl_builtins.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cssl/cssl_builtins.pyi +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cssl/cssl_events.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cssl/cssl_modules.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cssl/cssl_parser.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cssl/cssl_runtime.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cssl/cssl_syntax.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cssl/cssl_types.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cssl_bridge.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/cssl_bridge.pyi +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/error_catalog.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/error_formatter.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/exceptions.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/path_discovery.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/project_ui.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/core/settings_ui.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/generator/__init__.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/generator/parser.cpp +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/generator/parser.h +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/generator/type_resolver.cpp +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/generator/type_resolver.h +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/py.typed +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/templates/cpp.proj.template +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/vscode/__init__.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/vscode/cssl/__init__.py +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/vscode/cssl/language-configuration.json +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/vscode/cssl/package.json +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/vscode/cssl/snippets/cssl.snippets.json +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/includecpp/vscode/cssl/syntaxes/cssl.tmLanguage.json +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/requirements.txt +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/setup.cfg +0 -0
- {includecpp-3.7.6 → includecpp-3.7.7}/setup.py +0 -0
|
@@ -1193,7 +1193,7 @@ def build(ctx, clean, keep, verbose, no_incremental, incremental, parallel, jobs
|
|
|
1193
1193
|
@cli.command()
|
|
1194
1194
|
@click.argument('module_name')
|
|
1195
1195
|
def add(module_name):
|
|
1196
|
-
"""Create a new module template."""
|
|
1196
|
+
"""Create a new module template with sample C++ code."""
|
|
1197
1197
|
plugins_dir = Path("plugins")
|
|
1198
1198
|
if not plugins_dir.exists():
|
|
1199
1199
|
click.echo("Error: plugins/ directory not found")
|
|
@@ -1204,6 +1204,7 @@ def add(module_name):
|
|
|
1204
1204
|
click.echo(f"Module {module_name} already exists")
|
|
1205
1205
|
return
|
|
1206
1206
|
|
|
1207
|
+
# Create .cp config file
|
|
1207
1208
|
template = f"""SOURCE(include/{module_name}.cpp) {module_name}
|
|
1208
1209
|
|
|
1209
1210
|
PUBLIC(
|
|
@@ -1215,7 +1216,41 @@ PUBLIC(
|
|
|
1215
1216
|
f.write(template)
|
|
1216
1217
|
|
|
1217
1218
|
click.echo(f"Created {cp_file}")
|
|
1218
|
-
|
|
1219
|
+
|
|
1220
|
+
# Create include/ directory if it doesn't exist
|
|
1221
|
+
include_dir = Path("include")
|
|
1222
|
+
include_dir.mkdir(exist_ok=True)
|
|
1223
|
+
|
|
1224
|
+
# Create .cpp file with sample code
|
|
1225
|
+
cpp_file = include_dir / f"{module_name}.cpp"
|
|
1226
|
+
if not cpp_file.exists():
|
|
1227
|
+
cpp_template = f"""#include <string>
|
|
1228
|
+
#include <vector>
|
|
1229
|
+
|
|
1230
|
+
namespace includecpp {{
|
|
1231
|
+
|
|
1232
|
+
// Example function - returns a greeting
|
|
1233
|
+
std::string example_function(const std::string& name) {{
|
|
1234
|
+
return "Hello, " + name + "!";
|
|
1235
|
+
}}
|
|
1236
|
+
|
|
1237
|
+
// Add more functions here...
|
|
1238
|
+
// int add(int a, int b) {{ return a + b; }}
|
|
1239
|
+
// std::vector<int> range(int n) {{ ... }}
|
|
1240
|
+
|
|
1241
|
+
}} // namespace includecpp
|
|
1242
|
+
"""
|
|
1243
|
+
with open(cpp_file, 'w', encoding='utf-8') as f:
|
|
1244
|
+
f.write(cpp_template)
|
|
1245
|
+
|
|
1246
|
+
click.echo(f"Created {cpp_file}")
|
|
1247
|
+
else:
|
|
1248
|
+
click.echo(f"Note: {cpp_file} already exists, skipped")
|
|
1249
|
+
|
|
1250
|
+
click.echo(f"\nNext steps:")
|
|
1251
|
+
click.echo(f" 1. Edit include/{module_name}.cpp to add your functions")
|
|
1252
|
+
click.echo(f" 2. Update plugins/{module_name}.cp to expose functions")
|
|
1253
|
+
click.echo(f" 3. Run: includecpp rebuild")
|
|
1219
1254
|
|
|
1220
1255
|
@cli.command('list')
|
|
1221
1256
|
def list_modules():
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "IncludeCPP"
|
|
7
|
-
version = "3.7.
|
|
7
|
+
version = "3.7.7"
|
|
8
8
|
description = "Professional C++ Python bindings with type-generic templates, pystubs and native threading"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|