dc-up 0.2.0__tar.gz → 0.3.0__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.
@@ -13,6 +13,14 @@ and this project adheres to **[Semantic Versioning](https://semver.org/spec/v2.0
13
13
 
14
14
  ---
15
15
 
16
+ ## [0.3.0] - 2026-06-27
17
+
18
+ ### Changed
19
+
20
+ - ALL-PY-SRC docs/api.md fills in template package name to default the docs/api.md page.
21
+
22
+ ---
23
+
16
24
  ## [0.2.0] - 2026-06-27
17
25
 
18
26
  ### Changed
@@ -139,7 +147,8 @@ git push origin :refs/tags/vX.Z.Y
139
147
 
140
148
  ## Links
141
149
 
142
- [Unreleased]: https://github.com/denisecase/dc-up/compare/v0.2.0...HEAD
150
+ [Unreleased]: https://github.com/denisecase/dc-up/compare/v0.3.0...HEAD
151
+ [0.3.0]: https://github.com/denisecase/dc-up/releases/tag/v0.3.0
143
152
  [0.2.0]: https://github.com/denisecase/dc-up/releases/tag/v0.2.0
144
153
  [0.1.2]: https://github.com/denisecase/dc-up/releases/tag/v0.1.2
145
154
  [0.1.1]: https://github.com/denisecase/dc-up/releases/tag/v0.1.1
@@ -10,7 +10,7 @@ type: software
10
10
 
11
11
  title: "dc-up"
12
12
  # Set version and date-released to match latest git tag or release.
13
- version: "0.2.0"
13
+ version: "0.3.0"
14
14
  date-released: "2026-06-27"
15
15
 
16
16
  authors:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dc-up
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Command-line tool for bringing repositories up to a managed baseline using layered canonical templates.
5
5
  Project-URL: Homepage, https://github.com/denisecase/dc-up
6
6
  Project-URL: Repository, https://github.com/denisecase/dc-up
@@ -82,7 +82,11 @@ Description-Content-Type: text/markdown
82
82
  ## Update a Repo based on Templates
83
83
 
84
84
  ```shell
85
+ # see what files the command would update (optional, force latest)
85
86
  uvx dc-up
87
+ uvx dc-up@latest
88
+
89
+ # actually add and overwrite the files listed (CAUTION: DESTRUCTIVE)
86
90
  uvx dc-up --write
87
91
  ```
88
92
 
@@ -23,7 +23,11 @@
23
23
  ## Update a Repo based on Templates
24
24
 
25
25
  ```shell
26
+ # see what files the command would update (optional, force latest)
26
27
  uvx dc-up
28
+ uvx dc-up@latest
29
+
30
+ # actually add and overwrite the files listed (CAUTION: DESTRUCTIVE)
27
31
  uvx dc-up --write
28
32
  ```
29
33
 
@@ -227,7 +227,7 @@ packages = ["src/dc_up"]
227
227
 
228
228
  [tool.hatch.version]
229
229
  # Used when no git tags are present. Keep in sync with CITATION.cff.
230
- fallback-version = "0.2.0"
230
+ fallback-version = "0.3.0"
231
231
  # WHY: Version is derived from git tags at build time.
232
232
  source = "vcs"
233
233
  # WHY: Allow hatch-vcs to find the Git root from isolated build contexts.
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.2.0'
22
- __version_tuple__ = version_tuple = (0, 2, 0)
21
+ __version__ = version = '0.3.0'
22
+ __version_tuple__ = version_tuple = (0, 3, 0)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -10,6 +10,7 @@ uv run dc-up todo
10
10
 
11
11
  Equivalent uvx usage after release:
12
12
  uvx dc-up
13
+ uvx dc-up@latest
13
14
  uvx dc-up --write
14
15
  uvx dc-up todo
15
16
  """
@@ -38,6 +38,7 @@ def detect_repository(root: Path | None = None) -> RepositoryContext:
38
38
 
39
39
  repo_url = f"https://github.com/{github_handle}/{repo_name}"
40
40
  site_url = f"https://{github_handle}.github.io/{repo_name}/"
41
+ src_package = _detect_src_package(local_repo_root_directory)
41
42
 
42
43
  layers = tuple(
43
44
  infer_layers(
@@ -53,6 +54,7 @@ def detect_repository(root: Path | None = None) -> RepositoryContext:
53
54
  repo_name=repo_name,
54
55
  repo_url=repo_url,
55
56
  site_url=site_url,
57
+ src_package=src_package,
56
58
  files=frozenset(files),
57
59
  layers=layers,
58
60
  )
@@ -157,3 +159,14 @@ def _detect_github_handle(root: Path) -> str | None:
157
159
  return None
158
160
 
159
161
  return match.group("owner")
162
+
163
+
164
+ def _detect_src_package(root: Path) -> str:
165
+ """Infer the primary package name from src/."""
166
+ src = root / "src"
167
+ if not src.exists():
168
+ return ""
169
+ for candidate in sorted(src.iterdir()):
170
+ if candidate.is_dir() and (candidate / "__init__.py").exists():
171
+ return candidate.name
172
+ return ""
@@ -22,6 +22,7 @@ def render_template(text: str, target: RepositoryContext) -> str:
22
22
  "github_handle": target.github_handle,
23
23
  "repo_url": target.repo_url,
24
24
  "site_url": target.site_url,
25
+ "src_package": target.src_package,
25
26
  }
26
27
 
27
28
  rendered = text
@@ -30,6 +30,7 @@ class RepositoryContext:
30
30
  repo_name: str
31
31
  repo_url: str
32
32
  site_url: str
33
+ src_package: str
33
34
  files: frozenset[str]
34
35
  layers: tuple[str, ...]
35
36
 
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