autopub 1.0.0a24__tar.gz → 1.0.0a25__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {autopub-1.0.0a24 → autopub-1.0.0a25}/PKG-INFO +1 -1
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/__init__.py +0 -18
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/plugins/git.py +14 -2
- {autopub-1.0.0a24 → autopub-1.0.0a25}/pyproject.toml +2 -2
- {autopub-1.0.0a24 → autopub-1.0.0a25}/LICENSE +0 -0
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/cli/__init__.py +0 -0
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/exceptions.py +0 -0
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/plugin_loader.py +0 -0
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/plugins/__init__.py +0 -0
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/plugins/bump_version.py +0 -0
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/plugins/pdm.py +0 -0
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/plugins/poetry.py +0 -0
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/plugins/update_changelog.py +0 -0
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/plugins/uv.py +0 -0
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/py.typed +0 -0
- {autopub-1.0.0a24 → autopub-1.0.0a25}/autopub/types.py +0 -0
@@ -2,8 +2,6 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
import hashlib
|
4
4
|
import json
|
5
|
-
import subprocess
|
6
|
-
import textwrap
|
7
5
|
from functools import cached_property
|
8
6
|
from pathlib import Path
|
9
7
|
from typing import Iterable, Mapping, TypeAlias
|
@@ -171,22 +169,6 @@ class Autopub:
|
|
171
169
|
def _delete_release_file(self) -> None:
|
172
170
|
self.release_file.unlink(missing_ok=True)
|
173
171
|
|
174
|
-
def _commit(self) -> None:
|
175
|
-
commit_message = textwrap.dedent(
|
176
|
-
f"""
|
177
|
-
Release {self.release_info.version}
|
178
|
-
|
179
|
-
{self.release_info.release_notes}
|
180
|
-
|
181
|
-
[skip ci]
|
182
|
-
"""
|
183
|
-
)
|
184
|
-
|
185
|
-
subprocess.run(["git", "commit", "-m", commit_message])
|
186
|
-
|
187
|
-
def _push(self) -> None:
|
188
|
-
subprocess.run(["git", "push"])
|
189
|
-
|
190
172
|
def _write_artifact(self, release_info: ReleaseInfo) -> None:
|
191
173
|
data = {
|
192
174
|
**release_info.dict(),
|
@@ -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", "--", "
|
21
|
-
self.run_command(["git", "commit", "-m",
|
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.
|
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.
|
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
|
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
|