autopub 1.0.0a6__py3-none-any.whl → 1.0.0a8__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
autopub/cli/__init__.py CHANGED
@@ -111,7 +111,13 @@ def main(
111
111
  ] = None,
112
112
  ):
113
113
  state["plugins"] = plugins
114
- state["plugins"].extend(["update_changelog", "bump_version"])
114
+ state["plugins"].extend(
115
+ [
116
+ "git",
117
+ "update_changelog",
118
+ "bump_version",
119
+ ]
120
+ )
115
121
 
116
122
  if should_show_version:
117
123
  from importlib.metadata import version
autopub/plugins/git.py ADDED
@@ -0,0 +1,17 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import Any
4
+
5
+ from autopub.plugins import AutopubPlugin
6
+
7
+
8
+ class GitPlugin(AutopubPlugin):
9
+ def post_publish(self, repository: str | None = None, **kwargs: Any) -> None:
10
+ self.run_command(["git", "config", "--global", "user.email", "autopub@autopub"])
11
+ self.run_command(["git", "config", "--global", "user.name", "autopub"])
12
+
13
+ self.run_command(["git", "add", "."])
14
+
15
+ self.run_command(["git", "commit", "-m", "🤖 autopub publish"])
16
+
17
+ self.run_command(["git", "push"])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autopub
3
- Version: 1.0.0a6
3
+ Version: 1.0.0a8
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
@@ -1,16 +1,17 @@
1
1
  autopub/__init__.py,sha256=qEStdLBp3kmz78ThFjI_xDJeITDDli5U_zyZ6ZhBZ-w,5927
2
- autopub/cli/__init__.py,sha256=8FKaFRqJ0lsxoN54x1y4UPBlIgV276KY4Sad_HCiFIc,3000
2
+ autopub/cli/__init__.py,sha256=2tpSa8AVa2dnE62GSG5R8fnalAqybcCK-aV2flQItjQ,3068
3
3
  autopub/cli/plugins.py,sha256=0wzL1ipSrNWh2hi2fp0k0HL15GPncSqKgt15tHRM_pw,1117
4
4
  autopub/exceptions.py,sha256=JYn8sIYWCedhtO3XfftZ0M5M_rAPxiGQ4MGbWUaTYwE,1243
5
5
  autopub/plugins/__init__.py,sha256=a5BK-onl3KBM37vCcuWERlgA1OyeYQGSL4_mMIvK7B8,1351
6
6
  autopub/plugins/bump_version.py,sha256=rNKczSd9lxR7uhzugH7pppq4k1Q8oaVN_WApxk4xDSU,1441
7
+ autopub/plugins/git.py,sha256=y6aqm3Qy3d7sJL4W9gs2mILRWXp8vZJ5H6CA6O5jASs,552
7
8
  autopub/plugins/pdm.py,sha256=Pczye06fKg8_HMJDkEfMXQyvao9rZ7sqzTHFd6lLEpU,532
8
9
  autopub/plugins/poetry.py,sha256=d2LvW9RI7ZB3reBOXbcp1mqWmzQ06Uyg_T-MxTvlSBg,517
9
10
  autopub/plugins/update_changelog.py,sha256=PVFww5CG9XsF8lNyIhSlOWA7CkjpmPCWiBxUOI90RIg,1525
10
11
  autopub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
12
  autopub/types.py,sha256=FcRH4l27nrkQFUQrbAKxNzPPJfzg_0DExZYsCu9Jdzk,249
12
- autopub-1.0.0a6.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
13
- autopub-1.0.0a6.dist-info/METADATA,sha256=sEARjDJcQpynFCwWGXq3HtWrlZjyDbzkb2CiE5QCpXw,3757
14
- autopub-1.0.0a6.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
15
- autopub-1.0.0a6.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
16
- autopub-1.0.0a6.dist-info/RECORD,,
13
+ autopub-1.0.0a8.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
14
+ autopub-1.0.0a8.dist-info/METADATA,sha256=6LNIvEMn4SAV0rz0ff4Q9rv4oKRUNpnYo3gcNc7buec,3757
15
+ autopub-1.0.0a8.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
16
+ autopub-1.0.0a8.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
17
+ autopub-1.0.0a8.dist-info/RECORD,,