autopub 1.0.0a4__tar.gz → 1.0.0a5__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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,
@@ -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):
@@ -3,7 +3,7 @@ requires-python = ">=3.8"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "autopub"
6
- version = "1.0.0-alpha.4"
6
+ version = "1.0.0-alpha.5"
7
7
  description = "Automatic package release upon pull request merge"
8
8
  authors = ["Justin Mayer <entroP@gmail.com>", "Patrick Arminio <patrick.arminio@gmail.com>"]
9
9
  license = "AGPL-3.0"
File without changes
File without changes
File without changes
File without changes