sprout-template 1.3.0__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.
sprout/__init__.py ADDED
@@ -0,0 +1,108 @@
1
+ from __future__ import annotations
2
+
3
+ from sprout.cli import Manifest, ManifestContext, execute_manifest
4
+ from sprout.extensions import CurrentYearExtension, GitDefaultsExtension, build_environment
5
+ from sprout.project.actions import (
6
+ GitPostActionResult,
7
+ ProjectPostActionOptions,
8
+ ProjectPostActions,
9
+ create_github_repo,
10
+ create_initial_commit,
11
+ ensure_git_repo,
12
+ has_git_commits,
13
+ run_git_post_actions,
14
+ )
15
+ from sprout.project.github import (
16
+ GitHubRepository,
17
+ github_install_source,
18
+ github_repository_target,
19
+ github_repository_url,
20
+ is_github_repository_url,
21
+ parse_github_repository_url,
22
+ repository_git_url,
23
+ )
24
+ from sprout.project.licenses import (
25
+ COMMON_LICENSE_CHOICES,
26
+ NO_LICENSE,
27
+ SPDX_LICENSE_CHOICES,
28
+ UNLICENSED_LICENSE_VALUE,
29
+ package_license_value,
30
+ render_license_text,
31
+ should_skip_license_file,
32
+ )
33
+ from sprout.prompt import (
34
+ ask_question,
35
+ collect_answers,
36
+ confirm_overwrite,
37
+ console,
38
+ supports_live_interaction,
39
+ )
40
+ from sprout.question import YES_NO_CHOICES, Question, parse_yes_no
41
+ from sprout.style import ErrorStyle, InlineStyle, MenuStyle, PromptStyle, Style, SummaryStyle
42
+ from sprout.validators import (
43
+ ContextValidatorFn,
44
+ ValidationResult,
45
+ ValidatorAnswers,
46
+ ValidatorFn,
47
+ ValidatorType,
48
+ validate_github_repository_url,
49
+ validate_npm_package_name,
50
+ validate_repository_name,
51
+ validate_repository_url,
52
+ validate_semver,
53
+ )
54
+
55
+ __all__ = [
56
+ "COMMON_LICENSE_CHOICES",
57
+ "NO_LICENSE",
58
+ "SPDX_LICENSE_CHOICES",
59
+ "UNLICENSED_LICENSE_VALUE",
60
+ "YES_NO_CHOICES",
61
+ "ContextValidatorFn",
62
+ "CurrentYearExtension",
63
+ "ErrorStyle",
64
+ "GitDefaultsExtension",
65
+ "GitHubRepository",
66
+ "GitPostActionResult",
67
+ "InlineStyle",
68
+ "Manifest",
69
+ "ManifestContext",
70
+ "MenuStyle",
71
+ "ProjectPostActionOptions",
72
+ "ProjectPostActions",
73
+ "PromptStyle",
74
+ "Question",
75
+ "Style",
76
+ "SummaryStyle",
77
+ "ValidationResult",
78
+ "ValidatorAnswers",
79
+ "ValidatorFn",
80
+ "ValidatorType",
81
+ "ask_question",
82
+ "build_environment",
83
+ "collect_answers",
84
+ "confirm_overwrite",
85
+ "console",
86
+ "create_github_repo",
87
+ "create_initial_commit",
88
+ "ensure_git_repo",
89
+ "execute_manifest",
90
+ "github_install_source",
91
+ "github_repository_target",
92
+ "github_repository_url",
93
+ "has_git_commits",
94
+ "is_github_repository_url",
95
+ "package_license_value",
96
+ "parse_github_repository_url",
97
+ "parse_yes_no",
98
+ "render_license_text",
99
+ "repository_git_url",
100
+ "run_git_post_actions",
101
+ "should_skip_license_file",
102
+ "supports_live_interaction",
103
+ "validate_github_repository_url",
104
+ "validate_npm_package_name",
105
+ "validate_repository_name",
106
+ "validate_repository_url",
107
+ "validate_semver",
108
+ ]