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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autopub
3
- Version: 1.0.0a16
3
+ Version: 1.0.0a17
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
@@ -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 AutopubBumpVersionPlugin, AutopubPlugin
8
+ from autopub.plugins import AutopubPlugin
9
9
  from autopub.types import ReleaseInfo
10
10
 
11
11
 
12
- class BumpVersionPlugin(AutopubBumpVersionPlugin, AutopubPlugin):
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
- self.previous_version = str(version)
42
- self.new_version = version.bump(bump_type).serialize()
38
+ release_info.previous_version = str(version)
39
+ release_info.version = version.bump(bump_type).serialize()
43
40
 
44
- self._update_version(config, self.new_version)
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.16"
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