forge-template 0.3.1__py3-none-any.whl

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.
Files changed (50) hide show
  1. forge_template/__init__.py +75 -0
  2. forge_template/component_manifest.py +691 -0
  3. forge_template/components/__init__.py +5 -0
  4. forge_template/components/cli/component.toml +48 -0
  5. forge_template/components/cli/content/src/{{project.package_name}}/__init__.py.jinja +10 -0
  6. forge_template/components/cli/content/src/{{project.package_name}}/__main__.py.jinja +6 -0
  7. forge_template/components/cli/content/src/{{project.package_name}}/cli.py.jinja +57 -0
  8. forge_template/components/cli/content/src/{{project.package_name}}/py.typed +0 -0
  9. forge_template/components/cli/content/tests/__init__.py +0 -0
  10. forge_template/components/cli/content/tests/test_cli.py.jinja +48 -0
  11. forge_template/components/cli/extensions/archetype-metadata.toml.jinja +1 -0
  12. forge_template/components/cli/extensions/build-configuration.toml.jinja +3 -0
  13. forge_template/components/cli/extensions/build-system.toml.jinja +2 -0
  14. forge_template/components/cli/extensions/classifiers.toml.jinja +1 -0
  15. forge_template/components/cli/extensions/entry-points.toml.jinja +2 -0
  16. forge_template/components/cli/extensions/readme-project-shape.md.jinja +20 -0
  17. forge_template/components/cli/extensions/runtime-dependencies.toml.jinja +1 -0
  18. forge_template/components/library/component.toml +39 -0
  19. forge_template/components/library/content/src/{{project.package_name}}/__init__.py.jinja +10 -0
  20. forge_template/components/library/content/src/{{project.package_name}}/py.typed +0 -0
  21. forge_template/components/library/content/tests/__init__.py +0 -0
  22. forge_template/components/library/content/tests/test_smoke.py.jinja +7 -0
  23. forge_template/components/library/extensions/archetype-metadata.toml.jinja +5 -0
  24. forge_template/components/library/extensions/build-configuration.toml.jinja +18 -0
  25. forge_template/components/library/extensions/build-system.toml.jinja +10 -0
  26. forge_template/components/library/extensions/gitignore-project-shape.jinja +3 -0
  27. forge_template/components/library/extensions/readme-project-shape.md.jinja +6 -0
  28. forge_template/components/library/options.schema.json +19 -0
  29. forge_template/composition.py +172 -0
  30. forge_template/engine.py +1173 -0
  31. forge_template/file_conflicts.py +331 -0
  32. forge_template/foundation/__init__.py +6 -0
  33. forge_template/foundation/content/.editorconfig +15 -0
  34. forge_template/foundation/content/.gitattributes +10 -0
  35. forge_template/foundation/content/.gitignore.jinja +31 -0
  36. forge_template/foundation/content/.python-version.jinja +1 -0
  37. forge_template/foundation/content/CONTRIBUTING.md.jinja +42 -0
  38. forge_template/foundation/content/LICENSE.jinja +40 -0
  39. forge_template/foundation/content/README.md.jinja +40 -0
  40. forge_template/foundation/content/SECURITY.md.jinja +33 -0
  41. forge_template/foundation/content/pyproject.toml.jinja +159 -0
  42. forge_template/foundation/foundation.toml +37 -0
  43. forge_template/foundation_source.py +187 -0
  44. forge_template/project_spec.py +178 -0
  45. forge_template/py.typed +0 -0
  46. forge_template/template_variables.py +441 -0
  47. forge_template-0.3.1.dist-info/METADATA +148 -0
  48. forge_template-0.3.1.dist-info/RECORD +50 -0
  49. forge_template-0.3.1.dist-info/WHEEL +4 -0
  50. forge_template-0.3.1.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,75 @@
1
+ """The supported Forge template-engine API and repository tooling.
2
+
3
+ Nothing in this package is copied into generated projects. Public engine
4
+ clients should import the names re-exported here rather than reaching into
5
+ the low-level composition modules directly.
6
+ """
7
+
8
+ from forge_template.engine import (
9
+ SUPPORTED_COMPONENT_MANIFEST_PROTOCOLS,
10
+ SUPPORTED_PROJECTSPEC_PROTOCOLS,
11
+ ComponentDescriptor,
12
+ ComponentOption,
13
+ ComponentRelation,
14
+ EngineErrorCode,
15
+ EngineErrorDetail,
16
+ EngineInfo,
17
+ ForgeEngineError,
18
+ GenerationPlan,
19
+ PlannedExtension,
20
+ PlannedFile,
21
+ RenderedFile,
22
+ RenderedProject,
23
+ discover_components,
24
+ get_engine_info,
25
+ map_legacy_library_answers,
26
+ parse_project_spec,
27
+ plan_generation,
28
+ render_project,
29
+ validate_project_spec,
30
+ validate_rendered_project,
31
+ )
32
+ from forge_template.file_conflicts import ComponentOwner, FoundationOwner
33
+ from forge_template.project_spec import (
34
+ PROJECT_SPEC_PROTOCOL_VERSION,
35
+ Author,
36
+ ComponentSelection,
37
+ ProjectMetadata,
38
+ ProjectSpec,
39
+ PythonSelection,
40
+ SelectionProvenance,
41
+ )
42
+
43
+ __all__ = [
44
+ "PROJECT_SPEC_PROTOCOL_VERSION",
45
+ "SUPPORTED_COMPONENT_MANIFEST_PROTOCOLS",
46
+ "SUPPORTED_PROJECTSPEC_PROTOCOLS",
47
+ "Author",
48
+ "ComponentDescriptor",
49
+ "ComponentOption",
50
+ "ComponentOwner",
51
+ "ComponentRelation",
52
+ "ComponentSelection",
53
+ "EngineErrorCode",
54
+ "EngineErrorDetail",
55
+ "EngineInfo",
56
+ "ForgeEngineError",
57
+ "FoundationOwner",
58
+ "GenerationPlan",
59
+ "PlannedExtension",
60
+ "PlannedFile",
61
+ "ProjectMetadata",
62
+ "ProjectSpec",
63
+ "PythonSelection",
64
+ "RenderedFile",
65
+ "RenderedProject",
66
+ "SelectionProvenance",
67
+ "discover_components",
68
+ "get_engine_info",
69
+ "map_legacy_library_answers",
70
+ "parse_project_spec",
71
+ "plan_generation",
72
+ "render_project",
73
+ "validate_project_spec",
74
+ "validate_rendered_project",
75
+ ]