half-orm-dev 0.17.2a11__tar.gz → 0.17.3a1__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.
Files changed (65) hide show
  1. {half_orm_dev-0.17.2a11/half_orm_dev.egg-info → half_orm_dev-0.17.3a1}/PKG-INFO +2 -2
  2. half_orm_dev-0.17.3a1/half_orm_dev/version.txt +1 -0
  3. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1/half_orm_dev.egg-info}/PKG-INFO +2 -2
  4. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev.egg-info/requires.txt +1 -1
  5. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/setup.py +22 -4
  6. half_orm_dev-0.17.2a11/half_orm_dev/version.txt +0 -1
  7. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/AUTHORS +0 -0
  8. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/LICENSE +0 -0
  9. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/README.md +0 -0
  10. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/__init__.py +0 -0
  11. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/__init__.py +0 -0
  12. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/__init__.py +0 -0
  13. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/apply.py +0 -0
  14. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/check.py +0 -0
  15. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/clone.py +0 -0
  16. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/init.py +0 -0
  17. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/migrate.py +0 -0
  18. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/patch.py +0 -0
  19. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/release.py +0 -0
  20. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/restore.py +0 -0
  21. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/sync.py +0 -0
  22. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/todo.py +0 -0
  23. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/undo.py +0 -0
  24. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/update.py +0 -0
  25. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/commands/upgrade.py +0 -0
  26. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli/main.py +0 -0
  27. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/cli_extension.py +0 -0
  28. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/database.py +0 -0
  29. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/decorators.py +0 -0
  30. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/hgit.py +0 -0
  31. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/migration_manager.py +0 -0
  32. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/migrations/0/17/1/00_move_to_hop.py +0 -0
  33. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/migrations/0/17/1/01_txt_to_toml.py +0 -0
  34. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/modules.py +0 -0
  35. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/patch_manager.py +0 -0
  36. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/patch_validator.py +0 -0
  37. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/patches/0/1/0/00_half_orm_meta.database.sql +0 -0
  38. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/patches/0/1/0/01_alter_half_orm_meta.hop_release.sql +0 -0
  39. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/patches/0/1/0/02_half_orm_meta.view.hop_penultimate_release.sql +0 -0
  40. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/patches/log +0 -0
  41. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/patches/sql/half_orm_meta.sql +0 -0
  42. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/release_file.py +0 -0
  43. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/release_manager.py +0 -0
  44. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/repo.py +0 -0
  45. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/.gitignore +0 -0
  46. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/MANIFEST.in +0 -0
  47. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/Pipfile +0 -0
  48. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/README +0 -0
  49. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/conftest_template +0 -0
  50. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/git-hooks/pre-commit +0 -0
  51. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/git-hooks/prepare-commit-msg +0 -0
  52. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/init_module_template +0 -0
  53. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/module_template_1 +0 -0
  54. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/module_template_2 +0 -0
  55. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/module_template_3 +0 -0
  56. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/pyproject.toml +0 -0
  57. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/relation_test +0 -0
  58. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/sql_adapter +0 -0
  59. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/templates/warning +0 -0
  60. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev/utils.py +0 -0
  61. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev.egg-info/SOURCES.txt +0 -0
  62. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev.egg-info/dependency_links.txt +0 -0
  63. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/half_orm_dev.egg-info/top_level.txt +0 -0
  64. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/pyproject.toml +0 -0
  65. {half_orm_dev-0.17.2a11 → half_orm_dev-0.17.3a1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: half_orm_dev
3
- Version: 0.17.2a11
3
+ Version: 0.17.3a1
4
4
  Summary: half_orm development Framework.
5
5
  Author-email: Joël Maïzi <joel.maizi@collorg.org>
6
6
  License-Expression: GPL-3.0-or-later
@@ -23,7 +23,7 @@ Requires-Dist: GitPython
23
23
  Requires-Dist: click
24
24
  Requires-Dist: pydash
25
25
  Requires-Dist: pytest
26
- Requires-Dist: half_orm<0.18.0,>=0.17.0
26
+ Requires-Dist: half_orm<0.18.0,>=0.17.1
27
27
  Requires-Dist: tomli>=2.0.0; python_version < "3.11"
28
28
  Requires-Dist: tomli_w>=1.0.0
29
29
  Dynamic: license-file
@@ -0,0 +1 @@
1
+ 0.17.3-a1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: half_orm_dev
3
- Version: 0.17.2a11
3
+ Version: 0.17.3a1
4
4
  Summary: half_orm development Framework.
5
5
  Author-email: Joël Maïzi <joel.maizi@collorg.org>
6
6
  License-Expression: GPL-3.0-or-later
@@ -23,7 +23,7 @@ Requires-Dist: GitPython
23
23
  Requires-Dist: click
24
24
  Requires-Dist: pydash
25
25
  Requires-Dist: pytest
26
- Requires-Dist: half_orm<0.18.0,>=0.17.0
26
+ Requires-Dist: half_orm<0.18.0,>=0.17.1
27
27
  Requires-Dist: tomli>=2.0.0; python_version < "3.11"
28
28
  Requires-Dist: tomli_w>=1.0.0
29
29
  Dynamic: license-file
@@ -2,7 +2,7 @@ GitPython
2
2
  click
3
3
  pydash
4
4
  pytest
5
- half_orm<0.18.0,>=0.17.0
5
+ half_orm<0.18.0,>=0.17.1
6
6
  tomli_w>=1.0.0
7
7
 
8
8
  [:python_version < "3.11"]
@@ -11,11 +11,21 @@ from pathlib import Path
11
11
  from setuptools import setup
12
12
 
13
13
 
14
+ # Special minimum version requirements for half_orm
15
+ # List of (major, minor, min_patch, max_patch, required_half_orm_version)
16
+ # Example: (0, 17, 3, 5, '0.17.1') means:
17
+ # for half_orm_dev 0.17.x where 3 <= x < 5, require half_orm >= 0.17.1
18
+ HALF_ORM_MIN_VERSIONS = [
19
+ (0, 17, 3, None, '0.17.1'), # 0.17.3+ requires half_orm >= 0.17.1 (CustomGroup support)
20
+ ]
21
+
22
+
14
23
  def get_half_orm_version_constraint():
15
24
  """
16
25
  Calculate half_orm version constraint from half_orm_dev version.
17
26
 
18
- For version X.Y.Z[-xxx], returns: half_orm>=X.Y.0,<X.(Y+1).0
27
+ For version X.Y.Z[-xxx], returns: half_orm>=X.Y.MIN,<X.(Y+1).0
28
+ where MIN is determined by HALF_ORM_MIN_VERSIONS or defaults to 0
19
29
  """
20
30
  version_file = Path(__file__).parent / "half_orm_dev" / "version.txt"
21
31
  version_text = version_file.read_text(encoding="utf-8").strip()
@@ -27,10 +37,18 @@ def get_half_orm_version_constraint():
27
37
  raise ValueError(f"Invalid version format in version.txt: {version_text}")
28
38
 
29
39
  major, minor, patch = match.groups()
30
- major, minor = int(major), int(minor)
40
+ major, minor, patch = int(major), int(minor), int(patch)
41
+
42
+ # Check for special minimum version requirements
43
+ min_version = f"{major}.{minor}.0" # Default
44
+ for req_major, req_minor, min_patch, max_patch, required_version in HALF_ORM_MIN_VERSIONS:
45
+ if major == req_major and minor == req_minor:
46
+ # Check if patch is in range [min_patch, max_patch)
47
+ if patch >= min_patch:
48
+ if max_patch is None or patch < max_patch:
49
+ min_version = required_version
50
+ break
31
51
 
32
- # Generate constraint: half_orm>=X.Y.0,<X.(Y+1).0
33
- min_version = f"{major}.{minor}.0"
34
52
  max_version = f"{major}.{minor + 1}.0"
35
53
 
36
54
  return f"half_orm>={min_version},<{max_version}"
@@ -1 +0,0 @@
1
- 0.17.2-a11