autopub 1.0.0a6__tar.gz → 1.0.0a8__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {autopub-1.0.0a6 → autopub-1.0.0a8}/PKG-INFO +1 -1
- {autopub-1.0.0a6 → autopub-1.0.0a8}/autopub/cli/__init__.py +7 -1
- autopub-1.0.0a8/autopub/plugins/git.py +17 -0
- {autopub-1.0.0a6 → autopub-1.0.0a8}/pyproject.toml +1 -1
- {autopub-1.0.0a6 → autopub-1.0.0a8}/LICENSE +0 -0
- {autopub-1.0.0a6 → autopub-1.0.0a8}/README.md +0 -0
- {autopub-1.0.0a6 → autopub-1.0.0a8}/autopub/__init__.py +0 -0
- {autopub-1.0.0a6 → autopub-1.0.0a8}/autopub/cli/plugins.py +0 -0
- {autopub-1.0.0a6 → autopub-1.0.0a8}/autopub/exceptions.py +0 -0
- {autopub-1.0.0a6 → autopub-1.0.0a8}/autopub/plugins/__init__.py +0 -0
- {autopub-1.0.0a6 → autopub-1.0.0a8}/autopub/plugins/bump_version.py +0 -0
- {autopub-1.0.0a6 → autopub-1.0.0a8}/autopub/plugins/pdm.py +0 -0
- {autopub-1.0.0a6 → autopub-1.0.0a8}/autopub/plugins/poetry.py +0 -0
- {autopub-1.0.0a6 → autopub-1.0.0a8}/autopub/plugins/update_changelog.py +0 -0
- {autopub-1.0.0a6 → autopub-1.0.0a8}/autopub/py.typed +0 -0
- {autopub-1.0.0a6 → autopub-1.0.0a8}/autopub/types.py +0 -0
@@ -111,7 +111,13 @@ def main(
|
|
111
111
|
] = None,
|
112
112
|
):
|
113
113
|
state["plugins"] = plugins
|
114
|
-
state["plugins"].extend(
|
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
|
@@ -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"])
|
@@ -3,7 +3,7 @@ requires-python = ">=3.8"
|
|
3
3
|
|
4
4
|
[tool.poetry]
|
5
5
|
name = "autopub"
|
6
|
-
version = "1.0.0-alpha.
|
6
|
+
version = "1.0.0-alpha.8"
|
7
7
|
description = "Automatic package release upon pull request merge"
|
8
8
|
authors = ["Justin Mayer <entroP@gmail.com>", "Patrick Arminio <patrick.arminio@gmail.com>"]
|
9
9
|
license = "AGPL-3.0"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|