half-orm-dev 0.17.3a4__py3-none-any.whl → 0.17.3a5__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.
half_orm_dev/database.py CHANGED
@@ -93,6 +93,10 @@ class Database:
93
93
  if get_release and self.__repo.devel:
94
94
  self.__last_release = self.last_release
95
95
 
96
+ @property
97
+ def name(self):
98
+ return self.__name
99
+
96
100
  @property
97
101
  def last_release(self):
98
102
  "Returns the last release"
@@ -1869,7 +1869,7 @@ class ReleaseManager:
1869
1869
  # → Raises: "Backup exists and user declined overwrite"
1870
1870
  """
1871
1871
  # Create backups directory if doesn't exist
1872
- backups_dir = Path(self._repo.base_dir) / "backups"
1872
+ backups_dir = Path(self._repo.base_dir) / ".hop" / "backups"
1873
1873
  backups_dir.mkdir(exist_ok=True)
1874
1874
 
1875
1875
  # Build backup filename
@@ -1893,6 +1893,7 @@ class ReleaseManager:
1893
1893
  try:
1894
1894
  self._repo.database.execute_pg_command(
1895
1895
  'pg_dump',
1896
+ self._repo.database.name,
1896
1897
  '-f', str(backup_file),
1897
1898
  )
1898
1899
  except Exception as e:
half_orm_dev/version.txt CHANGED
@@ -1 +1 @@
1
- 0.17.3-a4
1
+ 0.17.3-a5
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: half_orm_dev
3
- Version: 0.17.3a4
3
+ Version: 0.17.3a5
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
@@ -1,6 +1,6 @@
1
1
  half_orm_dev/__init__.py,sha256=0JpUPey1gacxXuIFGcpD2nTGso73fkak72qzTHttAJk,18
2
2
  half_orm_dev/cli_extension.py,sha256=kwX3M11_rwr0pFcqHK_bpI3Pp4ztfTCVz2gLfTmzfeA,1066
3
- half_orm_dev/database.py,sha256=aRfCvxolJPN0kQUoEleaVjZAnyiWo-dEXq8xkKYC8pM,60088
3
+ half_orm_dev/database.py,sha256=8TrtH5NbTiPCbyoitxCt9d1niU0Dy2FQpTU0Tk6eN44,60150
4
4
  half_orm_dev/decorators.py,sha256=JKv_Z_JZUr-s-Vz551temHZhhecPfbvyhTbByRDjVAQ,4901
5
5
  half_orm_dev/hgit.py,sha256=VdzCCQ__xG1IGJaGq4-rrhbA1bNkDw_dBqkUNIeTONg,58045
6
6
  half_orm_dev/migration_manager.py,sha256=9RpciH8nyQrF0xV31kAeaYKkQl24Di1VHt-mAjjHhzM,14854
@@ -8,10 +8,10 @@ half_orm_dev/modules.py,sha256=4jfVb2yboRgb9mcO0sMF-iLigcZFTHEm4VRLN6GQXM4,16796
8
8
  half_orm_dev/patch_manager.py,sha256=rq0C1W6sXExMsgLwIXr7nwhpcRW28z5l5Tjy-vsqvwE,100973
9
9
  half_orm_dev/patch_validator.py,sha256=QNe1L6k_xwsnrOTcb3vkW2D0LbqrCRcZOGPnVyspVRk,10871
10
10
  half_orm_dev/release_file.py,sha256=0c9NBhAQ6YpiC3HWj8VtZcfvvZxW2ITk1NEQ60AO0sI,9880
11
- half_orm_dev/release_manager.py,sha256=wCJUKLCDkOgbytqSBaU_NArLcJZPVnwP2W5UiRMwz1Y,113367
11
+ half_orm_dev/release_manager.py,sha256=0CNWDPWEFxvsh-LOwmQYBJrdnemZeKHAor8h-ujNOZU,113418
12
12
  half_orm_dev/repo.py,sha256=GOgJnDRa1g5sAVX1xi00ff90tF9L8e0S_KhCc3SoCZ0,95685
13
13
  half_orm_dev/utils.py,sha256=M3yViUFfsO7Cp9MYSoUSkCZ6R9w_4jW45UDZUOT8FhI,1493
14
- half_orm_dev/version.txt,sha256=EHE9HXre16bBNUi8QiB6DlSqUvIFkJnA01jyvO9CKrM,10
14
+ half_orm_dev/version.txt,sha256=y931XH1lr3gWvyG3HmKG57MJ1dNev8yovnduThBr1Fo,10
15
15
  half_orm_dev/cli/__init__.py,sha256=0CbMj8OIhZmglWakK7NhYPn302erUTEg2VHOdm1hRTQ,163
16
16
  half_orm_dev/cli/main.py,sha256=3SVTl5WraNTSY6o7LfvE1dUHKg_RcuVaHHDIn_oINv4,11701
17
17
  half_orm_dev/cli/commands/__init__.py,sha256=UhWf0AnWqy4gyFo2SJQv8pL_YJ43pE_c9TgopcjzKDg,1490
@@ -50,9 +50,9 @@ half_orm_dev/templates/sql_adapter,sha256=kAP5y7Qml3DKsbZLUeoVpeXjbQcWltHjkDznED
50
50
  half_orm_dev/templates/warning,sha256=4hlZ_rRdpmkXxOeRoVd9xnXBARYXn95e-iXrD1f2u7k,490
51
51
  half_orm_dev/templates/git-hooks/pre-commit,sha256=Hf084pqeiOebrv4xzA0aiaHbIXswmmNO-dSIXUfzMK0,4707
52
52
  half_orm_dev/templates/git-hooks/prepare-commit-msg,sha256=zknOGGoaWKC97zfga2Xl2i_psnNo9MJbrEBuN91eHNw,1070
53
- half_orm_dev-0.17.3a4.dist-info/licenses/AUTHORS,sha256=eWxqzRdLOt2gX0FMQj_wui03Od3jdlwa8xNe9tl84g0,113
54
- half_orm_dev-0.17.3a4.dist-info/licenses/LICENSE,sha256=ufhxlSi6mttkGQTsGWrEoB3WA_fCPJ6-k07GSVBgyPw,644
55
- half_orm_dev-0.17.3a4.dist-info/METADATA,sha256=XZ8XlqVBMYhf9Z-PBBfUWGKkvTUwhtWnir80HpWi8RA,16149
56
- half_orm_dev-0.17.3a4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
57
- half_orm_dev-0.17.3a4.dist-info/top_level.txt,sha256=M5hEsWfn5Kw0HL-VnNmS6Jw-3cwRyjims5a8cr18eTM,13
58
- half_orm_dev-0.17.3a4.dist-info/RECORD,,
53
+ half_orm_dev-0.17.3a5.dist-info/licenses/AUTHORS,sha256=eWxqzRdLOt2gX0FMQj_wui03Od3jdlwa8xNe9tl84g0,113
54
+ half_orm_dev-0.17.3a5.dist-info/licenses/LICENSE,sha256=ufhxlSi6mttkGQTsGWrEoB3WA_fCPJ6-k07GSVBgyPw,644
55
+ half_orm_dev-0.17.3a5.dist-info/METADATA,sha256=a9yyDuOYwjsFEdL7c0zEffJklVMmkhswKOQUHJLG-LU,16149
56
+ half_orm_dev-0.17.3a5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
57
+ half_orm_dev-0.17.3a5.dist-info/top_level.txt,sha256=M5hEsWfn5Kw0HL-VnNmS6Jw-3cwRyjims5a8cr18eTM,13
58
+ half_orm_dev-0.17.3a5.dist-info/RECORD,,