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.
- {dc_up-0.2.0 → dc_up-0.3.0}/CHANGELOG.md +10 -1
- {dc_up-0.2.0 → dc_up-0.3.0}/CITATION.cff +1 -1
- {dc_up-0.2.0 → dc_up-0.3.0}/PKG-INFO +5 -1
- {dc_up-0.2.0 → dc_up-0.3.0}/README.md +4 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/pyproject.toml +1 -1
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/_version.py +2 -2
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/cli.py +1 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/detect.py +13 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/render.py +1 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/types.py +1 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/.gitignore +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/LICENSE +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/__init__.py +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/__main__.py +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/baseline.py +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/baseline_utils.py +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/commands/__init__.py +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/commands/todo.py +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/commands/update.py +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/data/defaults.toml +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/data/todo-surfaces.toml +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/errors.py +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/fetch.py +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/plan.py +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/py.typed +0 -0
- {dc_up-0.2.0 → dc_up-0.3.0}/src/dc_up/todo.py +0 -0
|
@@ -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.
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dc-up
|
|
3
|
-
Version: 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.
|
|
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.
|
|
22
|
-
__version_tuple__ = version_tuple = (0,
|
|
21
|
+
__version__ = version = '0.3.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 3, 0)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -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 ""
|
|
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
|