autopub 1.0.0a16__py3-none-any.whl → 1.0.0a17__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- autopub/plugins/__init__.py +0 -9
- autopub/plugins/bump_version.py +5 -8
- {autopub-1.0.0a16.dist-info → autopub-1.0.0a17.dist-info}/METADATA +1 -1
- {autopub-1.0.0a16.dist-info → autopub-1.0.0a17.dist-info}/RECORD +7 -7
- {autopub-1.0.0a16.dist-info → autopub-1.0.0a17.dist-info}/LICENSE +0 -0
- {autopub-1.0.0a16.dist-info → autopub-1.0.0a17.dist-info}/WHEEL +0 -0
- {autopub-1.0.0a16.dist-info → autopub-1.0.0a17.dist-info}/entry_points.txt +0 -0
autopub/plugins/__init__.py
CHANGED
@@ -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
|
autopub/plugins/bump_version.py
CHANGED
@@ -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
|
@@ -2,16 +2,16 @@ autopub/__init__.py,sha256=slOk0FvFlnZaE9ggQfyyK_6t4e28OEhKI-aa-YB6aTg,5592
|
|
2
2
|
autopub/cli/__init__.py,sha256=3Adr2M3t0F95LxdtlX8HPILrOj2AGrrT4WJ5T120D_Q,3098
|
3
3
|
autopub/cli/plugins.py,sha256=0wzL1ipSrNWh2hi2fp0k0HL15GPncSqKgt15tHRM_pw,1117
|
4
4
|
autopub/exceptions.py,sha256=JYn8sIYWCedhtO3XfftZ0M5M_rAPxiGQ4MGbWUaTYwE,1243
|
5
|
-
autopub/plugins/__init__.py,sha256=
|
6
|
-
autopub/plugins/bump_version.py,sha256=
|
5
|
+
autopub/plugins/__init__.py,sha256=5_VB5QszWfdNPA04gZKKGh3TXQEGoE5JSMyh-8XvnnE,1538
|
6
|
+
autopub/plugins/bump_version.py,sha256=Z6UKEJKdZVn6kACN4nQTJ3253kwAnSm1HpOxq1zHWpw,1413
|
7
7
|
autopub/plugins/git.py,sha256=GeXcvlDEDOVb0cerebkfz8YruK7JYK6IyV872hBIqis,856
|
8
8
|
autopub/plugins/pdm.py,sha256=Pczye06fKg8_HMJDkEfMXQyvao9rZ7sqzTHFd6lLEpU,532
|
9
9
|
autopub/plugins/poetry.py,sha256=d2LvW9RI7ZB3reBOXbcp1mqWmzQ06Uyg_T-MxTvlSBg,517
|
10
10
|
autopub/plugins/update_changelog.py,sha256=g_6flOP5wocZbjOaYSayWxobL3ld8f0wT78nFtAIkFc,1586
|
11
11
|
autopub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
autopub/types.py,sha256=gY1WR93XZVFS7vf5JMSmL_h5z7zO51-rtmZ6MYsh3so,1043
|
13
|
-
autopub-1.0.
|
14
|
-
autopub-1.0.
|
15
|
-
autopub-1.0.
|
16
|
-
autopub-1.0.
|
17
|
-
autopub-1.0.
|
13
|
+
autopub-1.0.0a17.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
14
|
+
autopub-1.0.0a17.dist-info/METADATA,sha256=0HzSIGl_P3DzVBcjbhRKegCNDuSd9hV-XZG73cDNjxw,3758
|
15
|
+
autopub-1.0.0a17.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
16
|
+
autopub-1.0.0a17.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
|
17
|
+
autopub-1.0.0a17.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|