autopub 1.0.0a26__tar.gz → 1.0.0a28__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.0a26
3
+ Version: 1.0.0a28
4
4
  Summary: Automatic package release upon pull request merge
5
5
  Home-page: https://github.com/autopub/autopub
6
6
  Author: Justin Mayer
@@ -140,8 +140,12 @@ class Autopub:
140
140
  self._write_artifact(release_info)
141
141
 
142
142
  def publish(self, repository: str | None = None) -> None:
143
+ print("🛺 publishing")
143
144
  release_info = self.release_info
144
145
 
146
+ print("release info", release_info)
147
+ print("plugins", self.plugins)
148
+
145
149
  for plugin in self.plugins:
146
150
  # TODO: maybe pass release info to publish method?
147
151
  if isinstance(plugin, AutopubPackageManagerPlugin):
@@ -38,6 +38,11 @@ class BumpVersionPlugin(AutopubPlugin):
38
38
  release_info.previous_version = str(version)
39
39
  release_info.version = version.bump(bump_type).serialize()
40
40
 
41
+ def post_prepare(self, release_info: ReleaseInfo) -> None:
42
+ config = self.pyproject_config
43
+
44
+ assert release_info.version is not None
45
+
41
46
  self._update_version(config, release_info.version)
42
47
 
43
48
  pathlib.Path("pyproject.toml").write_text(tomlkit.dumps(config)) # type: ignore
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  requires-python = ">=3.9.0,<4.0"
3
- version = "1.0.0-alpha.26"
3
+ version = "1.0.0-alpha.28"
4
4
  name = "autopub"
5
5
  description = "Automatic package release upon pull request merge"
6
6
  authors = [
@@ -25,7 +25,7 @@ classifiers = [
25
25
  repository = "https://github.com/autopub/autopub"
26
26
  include = ["autopub/py.typed"]
27
27
  name = "autopub"
28
- version = "1.0.0-alpha.26"
28
+ version = "1.0.0-alpha.28"
29
29
  description = "Automatic package release upon pull request merge"
30
30
  authors = [
31
31
  "Justin Mayer <entroP@gmail.com>",
File without changes
File without changes
File without changes