autopub 1.0.0a16__tar.gz → 1.0.0a17__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {autopub-1.0.0a16 → autopub-1.0.0a17}/PKG-INFO +1 -1
- {autopub-1.0.0a16 → autopub-1.0.0a17}/autopub/plugins/__init__.py +0 -9
- {autopub-1.0.0a16 → autopub-1.0.0a17}/autopub/plugins/bump_version.py +5 -8
- {autopub-1.0.0a16 → autopub-1.0.0a17}/pyproject.toml +1 -1
- {autopub-1.0.0a16 → autopub-1.0.0a17}/LICENSE +0 -0
- {autopub-1.0.0a16 → autopub-1.0.0a17}/README.md +0 -0
- {autopub-1.0.0a16 → autopub-1.0.0a17}/autopub/__init__.py +0 -0
- {autopub-1.0.0a16 → autopub-1.0.0a17}/autopub/cli/__init__.py +0 -0
- {autopub-1.0.0a16 → autopub-1.0.0a17}/autopub/cli/plugins.py +0 -0
- {autopub-1.0.0a16 → autopub-1.0.0a17}/autopub/exceptions.py +0 -0
- {autopub-1.0.0a16 → autopub-1.0.0a17}/autopub/plugins/git.py +0 -0
- {autopub-1.0.0a16 → autopub-1.0.0a17}/autopub/plugins/pdm.py +0 -0
- {autopub-1.0.0a16 → autopub-1.0.0a17}/autopub/plugins/poetry.py +0 -0
- {autopub-1.0.0a16 → autopub-1.0.0a17}/autopub/plugins/update_changelog.py +0 -0
- {autopub-1.0.0a16 → autopub-1.0.0a17}/autopub/py.typed +0 -0
- {autopub-1.0.0a16 → autopub-1.0.0a17}/autopub/types.py +0 -0
@@ -45,15 +45,6 @@ class AutopubPlugin:
|
|
45
45
|
...
|
46
46
|
|
47
47
|
|
48
|
-
@runtime_checkable
|
49
|
-
class AutopubBumpVersionPlugin(Protocol):
|
50
|
-
new_version: str
|
51
|
-
current_version: str
|
52
|
-
|
53
|
-
def post_check(self, release_info: ReleaseInfo) -> None: # pragma: no cover
|
54
|
-
...
|
55
|
-
|
56
|
-
|
57
48
|
@runtime_checkable
|
58
49
|
class AutopubPackageManagerPlugin(Protocol):
|
59
50
|
def build(self) -> None: # pragma: no cover
|
@@ -5,14 +5,11 @@ import pathlib
|
|
5
5
|
import tomlkit
|
6
6
|
from dunamai import Version
|
7
7
|
|
8
|
-
from autopub.plugins import
|
8
|
+
from autopub.plugins import AutopubPlugin
|
9
9
|
from autopub.types import ReleaseInfo
|
10
10
|
|
11
11
|
|
12
|
-
class BumpVersionPlugin(
|
13
|
-
current_version: str
|
14
|
-
new_version: str
|
15
|
-
|
12
|
+
class BumpVersionPlugin(AutopubPlugin):
|
16
13
|
@property
|
17
14
|
def pyproject_config(self) -> tomlkit.TOMLDocument:
|
18
15
|
content = pathlib.Path("pyproject.toml").read_text()
|
@@ -38,9 +35,9 @@ class BumpVersionPlugin(AutopubBumpVersionPlugin, AutopubPlugin):
|
|
38
35
|
|
39
36
|
version = Version(self._get_version(config))
|
40
37
|
|
41
|
-
|
42
|
-
|
38
|
+
release_info.previous_version = str(version)
|
39
|
+
release_info.version = version.bump(bump_type).serialize()
|
43
40
|
|
44
|
-
self._update_version(config,
|
41
|
+
self._update_version(config, release_info.version)
|
45
42
|
|
46
43
|
pathlib.Path("pyproject.toml").write_text(tomlkit.dumps(config)) # type: ignore
|
@@ -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.17"
|
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
|