autopub 1.0.0a4__py3-none-any.whl → 1.0.0a5__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
autopub/__init__.py CHANGED
@@ -96,14 +96,11 @@ class Autopub:
96
96
 
97
97
  self._write_artifact(self.release_data)
98
98
 
99
- def post_prepare(self) -> None:
100
99
  for plugin in self.plugins:
101
100
  plugin.post_prepare(self.release_data)
102
101
 
103
102
  self._write_artifact(self.release_data)
104
103
 
105
- self._delete_release_file()
106
-
107
104
  def _delete_release_file(self) -> None:
108
105
  self.release_file.unlink()
109
106
 
@@ -116,6 +113,11 @@ class Autopub:
116
113
  if isinstance(plugin, AutopubPackageManagerPlugin):
117
114
  plugin.publish(repository=repository)
118
115
 
116
+ for plugin in self.plugins:
117
+ plugin.post_publish()
118
+
119
+ self._delete_release_file()
120
+
119
121
  def _write_artifact(self, release_info: ReleaseInfo) -> None:
120
122
  data = {
121
123
  "hash": self.release_file_hash,
autopub/cli/__init__.py CHANGED
@@ -71,7 +71,6 @@ def prepare():
71
71
 
72
72
  try:
73
73
  autopub.prepare()
74
- autopub.post_prepare()
75
74
  except AutopubException as e:
76
75
  rich.print(Panel.fit(f"[red]{e.message}"))
77
76
 
@@ -31,6 +31,9 @@ class AutopubPlugin:
31
31
  def on_release_notes_invalid(self, exception: AutopubException): # pragma: no cover
32
32
  ...
33
33
 
34
+ def post_publish(self) -> None: # pragma: no cover
35
+ ...
36
+
34
37
 
35
38
  @runtime_checkable
36
39
  class AutopubPackageManagerPlugin(Protocol):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autopub
3
- Version: 1.0.0a4
3
+ Version: 1.0.0a5
4
4
  Summary: Automatic package release upon pull request merge
5
5
  Home-page: https://github.com/autopub/autopub
6
6
  License: AGPL-3.0
@@ -1,16 +1,16 @@
1
- autopub/__init__.py,sha256=acyvk7kORkoy4s-Yyd3ZA4_JyvLevI3KiiGZK0sIB6Q,5892
2
- autopub/cli/__init__.py,sha256=EHwmqdJnZJ9712NI6EsPJMmtbgB0mVeMoELwyaBhD-k,3031
1
+ autopub/__init__.py,sha256=qEStdLBp3kmz78ThFjI_xDJeITDDli5U_zyZ6ZhBZ-w,5927
2
+ autopub/cli/__init__.py,sha256=8FKaFRqJ0lsxoN54x1y4UPBlIgV276KY4Sad_HCiFIc,3000
3
3
  autopub/cli/plugins.py,sha256=0wzL1ipSrNWh2hi2fp0k0HL15GPncSqKgt15tHRM_pw,1117
4
4
  autopub/exceptions.py,sha256=JYn8sIYWCedhtO3XfftZ0M5M_rAPxiGQ4MGbWUaTYwE,1243
5
- autopub/plugins/__init__.py,sha256=epsLRPOKYyDeUBDr8r8u9H-tluUSU-h1SdJtVJtZL40,1249
5
+ autopub/plugins/__init__.py,sha256=qI1WFfdkZVSuZjuhfhdB7MW3UTxA7c9YIKf3GxquVXY,1318
6
6
  autopub/plugins/bump_version.py,sha256=rNKczSd9lxR7uhzugH7pppq4k1Q8oaVN_WApxk4xDSU,1441
7
7
  autopub/plugins/pdm.py,sha256=Pczye06fKg8_HMJDkEfMXQyvao9rZ7sqzTHFd6lLEpU,532
8
8
  autopub/plugins/poetry.py,sha256=d2LvW9RI7ZB3reBOXbcp1mqWmzQ06Uyg_T-MxTvlSBg,517
9
9
  autopub/plugins/update_changelog.py,sha256=PVFww5CG9XsF8lNyIhSlOWA7CkjpmPCWiBxUOI90RIg,1525
10
10
  autopub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  autopub/types.py,sha256=FcRH4l27nrkQFUQrbAKxNzPPJfzg_0DExZYsCu9Jdzk,249
12
- autopub-1.0.0a4.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
13
- autopub-1.0.0a4.dist-info/METADATA,sha256=pNqUKrOECuK6KShBEn1E-GfTGVXhNoGstX0ef-8X0SQ,3757
14
- autopub-1.0.0a4.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
15
- autopub-1.0.0a4.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
16
- autopub-1.0.0a4.dist-info/RECORD,,
12
+ autopub-1.0.0a5.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
13
+ autopub-1.0.0a5.dist-info/METADATA,sha256=zuiANMRC0TqMphmBbr4ILEhgFluHbT_jMZA5METiE_M,3757
14
+ autopub-1.0.0a5.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
15
+ autopub-1.0.0a5.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
16
+ autopub-1.0.0a5.dist-info/RECORD,,