autopub 1.0.0a36__tar.gz → 1.0.0a37__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.0a36
3
+ Version: 1.0.0a37
4
4
  Summary: Automatic package release upon pull request merge
5
5
  Home-page: https://github.com/autopub/autopub
6
6
  Author: Justin Mayer
@@ -38,6 +38,8 @@ class BumpVersionPlugin(AutopubPlugin):
38
38
  release_info.previous_version = str(version)
39
39
  release_info.version = version.bump(bump_type).serialize()
40
40
 
41
+ print("👊 bumped version to", release_info.version)
42
+
41
43
  def post_prepare(self, release_info: ReleaseInfo) -> None:
42
44
  config = self.pyproject_config
43
45
 
@@ -334,7 +334,9 @@ class GithubPlugin(AutopubPlugin):
334
334
 
335
335
  self._update_or_create_comment(message)
336
336
 
337
- def _get_release_message(self, release_info: ReleaseInfo) -> str:
337
+ def _get_release_message(
338
+ self, release_info: ReleaseInfo, include_release_info: bool = False
339
+ ) -> str:
338
340
  assert self.pull_request is not None
339
341
 
340
342
  contributors = self._get_pr_contributors()
@@ -345,11 +347,14 @@ class GithubPlugin(AutopubPlugin):
345
347
  ## {release_info.version}
346
348
 
347
349
  {release_info.release_notes}
348
-
349
- This release was contributed by @{contributors['pr_author']} in #{self.pull_request.number}
350
350
  """
351
351
  )
352
352
 
353
+ if not include_release_info:
354
+ return message
355
+
356
+ message += f"This release was contributed by @{contributors['pr_author']} in #{self.pull_request.number}"
357
+
353
358
  if contributors["additional_contributors"]:
354
359
  additional_contributors = [
355
360
  f"@{contributor}"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  requires-python = ">=3.9.0,<4.0"
3
- version = "1.0.0-alpha.36"
3
+ version = "1.0.0-alpha.37"
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.36"
28
+ version = "1.0.0-alpha.37"
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