autopub 1.0.0a26__tar.gz → 1.0.0a28__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {autopub-1.0.0a26 → autopub-1.0.0a28}/PKG-INFO +1 -1
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/__init__.py +4 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/plugins/bump_version.py +5 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/pyproject.toml +2 -2
- {autopub-1.0.0a26 → autopub-1.0.0a28}/LICENSE +0 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/cli/__init__.py +0 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/exceptions.py +0 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/plugin_loader.py +0 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/plugins/__init__.py +0 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/plugins/git.py +0 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/plugins/pdm.py +0 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/plugins/poetry.py +0 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/plugins/update_changelog.py +0 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/plugins/uv.py +0 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/py.typed +0 -0
- {autopub-1.0.0a26 → autopub-1.0.0a28}/autopub/types.py +0 -0
@@ -140,8 +140,12 @@ class Autopub:
|
|
140
140
|
self._write_artifact(release_info)
|
141
141
|
|
142
142
|
def publish(self, repository: str | None = None) -> None:
|
143
|
+
print("🛺 publishing")
|
143
144
|
release_info = self.release_info
|
144
145
|
|
146
|
+
print("release info", release_info)
|
147
|
+
print("plugins", self.plugins)
|
148
|
+
|
145
149
|
for plugin in self.plugins:
|
146
150
|
# TODO: maybe pass release info to publish method?
|
147
151
|
if isinstance(plugin, AutopubPackageManagerPlugin):
|
@@ -38,6 +38,11 @@ class BumpVersionPlugin(AutopubPlugin):
|
|
38
38
|
release_info.previous_version = str(version)
|
39
39
|
release_info.version = version.bump(bump_type).serialize()
|
40
40
|
|
41
|
+
def post_prepare(self, release_info: ReleaseInfo) -> None:
|
42
|
+
config = self.pyproject_config
|
43
|
+
|
44
|
+
assert release_info.version is not None
|
45
|
+
|
41
46
|
self._update_version(config, release_info.version)
|
42
47
|
|
43
48
|
pathlib.Path("pyproject.toml").write_text(tomlkit.dumps(config)) # type: ignore
|
@@ -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.28"
|
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.28"
|
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
|