autopub 1.0.0a35__py3-none-any.whl → 1.0.0a37__py3-none-any.whl

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.
@@ -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
 
autopub/plugins/github.py CHANGED
@@ -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}"
@@ -364,8 +369,9 @@ class GithubPlugin(AutopubPlugin):
364
369
  message += f"\n\nReviewers: {', '.join(reviewers)}"
365
370
 
366
371
  if sponsors["sponsors"]:
367
- sponsors = [f"@{sponsor}" for sponsor in sponsors["sponsors"]]
368
- message += f"\n\nThanks to {', '.join(sponsors)}"
372
+ public_sponsors = [f"@{sponsor}" for sponsor in sponsors["sponsors"]]
373
+ message += f"\n\nThanks to {', '.join(public_sponsors)}"
374
+
369
375
  if sponsors["private_sponsors"]:
370
376
  message += f" and the {sponsors['private_sponsors']} private sponsor(s)"
371
377
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autopub
3
- Version: 1.0.0a35
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
@@ -3,17 +3,17 @@ autopub/cli/__init__.py,sha256=77rx1yYi8adLUZAW7Rs48CNVyYe4HgSMZ7pZyIxD1iQ,3894
3
3
  autopub/exceptions.py,sha256=gNUbiG3_fVmNjhk2kyueQHPSifNgQf0Bl6IDNvkVhxQ,1534
4
4
  autopub/plugin_loader.py,sha256=2ysITgpHGUmcb1mP1Qvs-iBX2wZxmfP9obnebThwUMA,1809
5
5
  autopub/plugins/__init__.py,sha256=57ewn1lhZYKKuVL49l3cgqAN9LQfCRzdsgSZimIAkls,2030
6
- autopub/plugins/bump_version.py,sha256=-tTGQR0v8K3Bto1Y8UcmkEs4WnExeF1QyHKHPUKgll8,1565
6
+ autopub/plugins/bump_version.py,sha256=yOXhKHAGFb1DcmeBdh5RfwkOpEYeTqMlE69HgIyUB58,1628
7
7
  autopub/plugins/git.py,sha256=d0SMLc6hwuk0eymj8aHyu3_cEd-7x4fhkwu35wPPV4k,1054
8
- autopub/plugins/github.py,sha256=x4gmlQLW4xCYHVYy2FT8_2rE8tjNVzd-x786sAqMG_M,12818
8
+ autopub/plugins/github.py,sha256=2eXaAxsGiWFcJ6hHDCVYxRzsPLuJFMvJmHG7eeIXvOc,12958
9
9
  autopub/plugins/pdm.py,sha256=Pczye06fKg8_HMJDkEfMXQyvao9rZ7sqzTHFd6lLEpU,532
10
10
  autopub/plugins/poetry.py,sha256=d2LvW9RI7ZB3reBOXbcp1mqWmzQ06Uyg_T-MxTvlSBg,517
11
11
  autopub/plugins/update_changelog.py,sha256=g_6flOP5wocZbjOaYSayWxobL3ld8f0wT78nFtAIkFc,1586
12
12
  autopub/plugins/uv.py,sha256=goo8QxaD3FVJ1c3xOSmN1hikZTCUXN8jWNac1S5uDDY,1089
13
13
  autopub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  autopub/types.py,sha256=gY1WR93XZVFS7vf5JMSmL_h5z7zO51-rtmZ6MYsh3so,1043
15
- autopub-1.0.0a35.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
16
- autopub-1.0.0a35.dist-info/METADATA,sha256=YKyGyeZKk2rc--uOj6IYXtRV1KR-1ugIgqivgaoiUHg,992
17
- autopub-1.0.0a35.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
18
- autopub-1.0.0a35.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
19
- autopub-1.0.0a35.dist-info/RECORD,,
15
+ autopub-1.0.0a37.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
16
+ autopub-1.0.0a37.dist-info/METADATA,sha256=68ey_Kr_4OAHtdA9MhXTOH9FA-Nhy5DMtGKBK5cuo-Q,992
17
+ autopub-1.0.0a37.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
18
+ autopub-1.0.0a37.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
19
+ autopub-1.0.0a37.dist-info/RECORD,,