half-orm-dev 0.17.0a3__tar.gz → 0.17.0a4__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.
- {half_orm_dev-0.17.0a3/half_orm_dev.egg-info → half_orm_dev-0.17.0a4}/PKG-INFO +1 -1
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/release_manager.py +45 -3
- half_orm_dev-0.17.0a4/half_orm_dev/version.txt +1 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4/half_orm_dev.egg-info}/PKG-INFO +1 -1
- half_orm_dev-0.17.0a3/half_orm_dev/version.txt +0 -1
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/AUTHORS +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/LICENSE +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/README.md +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/__init__.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/__init__.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/__init__.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/apply.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/check.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/clone.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/init.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/new.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/patch.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/release.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/restore.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/sync.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/todo.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/undo.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/update.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/commands/upgrade.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli/main.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/cli_extension.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/database.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/decorators.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/hgit.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/hop.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/manifest.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/modules.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/patch.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/patch_manager.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/patch_validator.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/patches/0/1/0/00_half_orm_meta.database.sql +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/patches/0/1/0/01_alter_half_orm_meta.hop_release.sql +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/patches/0/1/0/02_half_orm_meta.view.hop_penultimate_release.sql +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/patches/log +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/patches/sql/half_orm_meta.sql +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/repo.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/.gitignore +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/MANIFEST.in +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/Pipfile +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/README +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/conftest_template +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/git-hooks/pre-commit +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/git-hooks/prepare-commit-msg +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/init_module_template +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/module_template_1 +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/module_template_2 +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/module_template_3 +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/relation_test +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/setup.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/sql_adapter +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/warning +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/utils.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev.egg-info/SOURCES.txt +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev.egg-info/dependency_links.txt +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev.egg-info/requires.txt +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev.egg-info/top_level.txt +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/setup.cfg +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/setup.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/tests/__init__.py +0 -0
- {half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/tests/conftest.py +0 -0
|
@@ -2520,10 +2520,26 @@ class ReleaseManager:
|
|
|
2520
2520
|
rc_tag = f"v{version}-rc{rc_number}" # Use v prefix and rc1 for first RC
|
|
2521
2521
|
|
|
2522
2522
|
try:
|
|
2523
|
-
#
|
|
2523
|
+
# 1. Apply patches to database (for validation)
|
|
2524
|
+
# 1.1. Restore database from baseline
|
|
2525
|
+
self._repo.restore_database_from_schema()
|
|
2526
|
+
|
|
2527
|
+
# 1.2. Apply all previous RC patches in order
|
|
2528
|
+
rc_files = self.get_rc_files(version)
|
|
2529
|
+
for rc_file_name in rc_files:
|
|
2530
|
+
rc_patches = self.read_release_patches(rc_file_name)
|
|
2531
|
+
for patch_id in rc_patches:
|
|
2532
|
+
self._repo.patch_manager.apply_patch_files(patch_id, self._repo.model)
|
|
2533
|
+
|
|
2534
|
+
# 1.3. Apply stage patches
|
|
2535
|
+
stage_patches = self.read_release_patches(f"{version}-stage.txt")
|
|
2536
|
+
for patch_id in stage_patches:
|
|
2537
|
+
self._repo.patch_manager.apply_patch_files(patch_id, self._repo.model)
|
|
2538
|
+
|
|
2539
|
+
# 2. Checkout release branch
|
|
2524
2540
|
self._repo.hgit.checkout(release_branch)
|
|
2525
2541
|
|
|
2526
|
-
# Create RC tag on release branch
|
|
2542
|
+
# 3. Create RC tag on release branch
|
|
2527
2543
|
self._repo.hgit.create_tag(rc_tag, f"Release Candidate {version}")
|
|
2528
2544
|
|
|
2529
2545
|
# Push tag
|
|
@@ -2630,7 +2646,33 @@ class ReleaseManager:
|
|
|
2630
2646
|
"ho-prod has been restored to its previous state."
|
|
2631
2647
|
)
|
|
2632
2648
|
|
|
2633
|
-
# 3.
|
|
2649
|
+
# 3. Apply patches and generate schema
|
|
2650
|
+
# 3.1. Restore database from baseline
|
|
2651
|
+
self._repo.restore_database_from_schema()
|
|
2652
|
+
|
|
2653
|
+
# 3.2. Apply all RC patches in order
|
|
2654
|
+
rc_files = self.get_rc_files(version)
|
|
2655
|
+
for rc_file in rc_files:
|
|
2656
|
+
rc_patches = self.read_release_patches(rc_file)
|
|
2657
|
+
for patch_id in rc_patches:
|
|
2658
|
+
self._repo.patch_manager.apply_patch_files(patch_id, self._repo.model)
|
|
2659
|
+
|
|
2660
|
+
# 3.3. Apply stage patches (before renaming to prod)
|
|
2661
|
+
stage_patches = self.read_release_patches(f"{version}-stage.txt")
|
|
2662
|
+
for patch_id in stage_patches:
|
|
2663
|
+
self._repo.patch_manager.apply_patch_files(patch_id, self._repo.model)
|
|
2664
|
+
|
|
2665
|
+
# 3.4. Generate schema dump for this version
|
|
2666
|
+
from pathlib import Path
|
|
2667
|
+
model_dir = Path(self._repo.base_dir) / "model"
|
|
2668
|
+
self._repo.database._generate_schema_sql(version, model_dir)
|
|
2669
|
+
|
|
2670
|
+
# 3.5. Commit schema files
|
|
2671
|
+
self._repo.hgit.add(str(model_dir / f"schema-{version}.sql"))
|
|
2672
|
+
self._repo.hgit.add(str(model_dir / f"metadata-{version}.sql"))
|
|
2673
|
+
self._repo.hgit.add(str(model_dir / "schema.sql")) # symlink
|
|
2674
|
+
|
|
2675
|
+
# 4. Rename stage file to prod
|
|
2634
2676
|
prod_file = self._releases_dir / f"{version}.txt"
|
|
2635
2677
|
stage_file.rename(prod_file)
|
|
2636
2678
|
self._repo.hgit.add(str(stage_file)) # Old path
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.17.0-a4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.17.0-a3
|
|
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
|
{half_orm_dev-0.17.0a3 → half_orm_dev-0.17.0a4}/half_orm_dev/templates/git-hooks/prepare-commit-msg
RENAMED
|
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
|