autopub 1.0.0a26__py3-none-any.whl → 1.0.0a28__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- autopub/__init__.py +4 -0
- autopub/plugins/bump_version.py +5 -0
- {autopub-1.0.0a26.dist-info → autopub-1.0.0a28.dist-info}/METADATA +1 -1
- {autopub-1.0.0a26.dist-info → autopub-1.0.0a28.dist-info}/RECORD +7 -7
- {autopub-1.0.0a26.dist-info → autopub-1.0.0a28.dist-info}/LICENSE +0 -0
- {autopub-1.0.0a26.dist-info → autopub-1.0.0a28.dist-info}/WHEEL +0 -0
- {autopub-1.0.0a26.dist-info → autopub-1.0.0a28.dist-info}/entry_points.txt +0 -0
autopub/__init__.py
CHANGED
@@ -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):
|
autopub/plugins/bump_version.py
CHANGED
@@ -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,9 +1,9 @@
|
|
1
|
-
autopub/__init__.py,sha256=
|
1
|
+
autopub/__init__.py,sha256=OyuS8vzj4LRVtYhAJUoaU_Vyx9TWPa7ocWMKSZy1xhU,7174
|
2
2
|
autopub/cli/__init__.py,sha256=GZ1YNC0UDZqdMfQyNMD4D_D2ItTLcaiJLhPtsLwpH4s,3860
|
3
3
|
autopub/exceptions.py,sha256=gNUbiG3_fVmNjhk2kyueQHPSifNgQf0Bl6IDNvkVhxQ,1534
|
4
4
|
autopub/plugin_loader.py,sha256=i8nz0cmu5eaSRJ2Hx5KxbA-tOMR2mjcz8fdRg4zkGLE,1813
|
5
5
|
autopub/plugins/__init__.py,sha256=57ewn1lhZYKKuVL49l3cgqAN9LQfCRzdsgSZimIAkls,2030
|
6
|
-
autopub/plugins/bump_version.py,sha256
|
6
|
+
autopub/plugins/bump_version.py,sha256=-tTGQR0v8K3Bto1Y8UcmkEs4WnExeF1QyHKHPUKgll8,1565
|
7
7
|
autopub/plugins/git.py,sha256=d0SMLc6hwuk0eymj8aHyu3_cEd-7x4fhkwu35wPPV4k,1054
|
8
8
|
autopub/plugins/pdm.py,sha256=Pczye06fKg8_HMJDkEfMXQyvao9rZ7sqzTHFd6lLEpU,532
|
9
9
|
autopub/plugins/poetry.py,sha256=d2LvW9RI7ZB3reBOXbcp1mqWmzQ06Uyg_T-MxTvlSBg,517
|
@@ -11,8 +11,8 @@ autopub/plugins/update_changelog.py,sha256=g_6flOP5wocZbjOaYSayWxobL3ld8f0wT78nF
|
|
11
11
|
autopub/plugins/uv.py,sha256=goo8QxaD3FVJ1c3xOSmN1hikZTCUXN8jWNac1S5uDDY,1089
|
12
12
|
autopub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
13
|
autopub/types.py,sha256=gY1WR93XZVFS7vf5JMSmL_h5z7zO51-rtmZ6MYsh3so,1043
|
14
|
-
autopub-1.0.
|
15
|
-
autopub-1.0.
|
16
|
-
autopub-1.0.
|
17
|
-
autopub-1.0.
|
18
|
-
autopub-1.0.
|
14
|
+
autopub-1.0.0a28.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
15
|
+
autopub-1.0.0a28.dist-info/METADATA,sha256=fUpEeD3f-wddhOBgeViD5nvLDhLDcUY1oEp-31GKMIM,951
|
16
|
+
autopub-1.0.0a28.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
17
|
+
autopub-1.0.0a28.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
|
18
|
+
autopub-1.0.0a28.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|