autopub 1.0.0a23__tar.gz → 1.0.0a25__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autopub
3
- Version: 1.0.0a23
3
+ Version: 1.0.0a25
4
4
  Summary: Automatic package release upon pull request merge
5
5
  Home-page: https://github.com/autopub/autopub
6
6
  Author: Justin Mayer
@@ -151,6 +151,8 @@ class Autopub:
151
151
  plugin.post_publish(release_info)
152
152
 
153
153
  self._delete_release_file()
154
+ self._commit()
155
+ self._push()
154
156
 
155
157
  def validate_config(self) -> None:
156
158
  errors: dict[str, ValidationError] = {}
@@ -1,5 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import textwrap
4
+
3
5
  from autopub.plugins import AutopubPlugin
4
6
  from autopub.types import ReleaseInfo
5
7
 
@@ -15,9 +17,19 @@ class GitPlugin(AutopubPlugin):
15
17
 
16
18
  self.run_command(["git", "tag", tag_name])
17
19
 
20
+ commit_message = textwrap.dedent(
21
+ f"""
22
+ Release {release_info.version}
23
+
24
+ {release_info.release_notes}
25
+
26
+ [skip ci]
27
+ """
28
+ )
29
+
18
30
  # TODO: config?
19
31
  self.run_command(["git", "rm", "RELEASE.md"])
20
- self.run_command(["git", "add", "--all", "--", ":!main/.autopub"])
21
- self.run_command(["git", "commit", "-m", "🤖 autopub publish"])
32
+ self.run_command(["git", "add", "--all", "--", ":!.autopub"])
33
+ self.run_command(["git", "commit", "-m", commit_message])
22
34
  self.run_command(["git", "push"])
23
35
  self.run_command(["git", "push", "origin", tag_name])
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  requires-python = ">=3.9.0,<4.0"
3
- version = "1.0.0-alpha.23"
3
+ version = "1.0.0-alpha.25"
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.23"
28
+ version = "1.0.0-alpha.25"
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