autopub 1.0.0a28__py3-none-any.whl → 1.0.0a30__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
autopub/__init__.py CHANGED
@@ -40,11 +40,6 @@ class Autopub:
40
40
  RELEASE_FILE_PATH = "RELEASE.md"
41
41
  plugins: list[AutopubPlugin]
42
42
 
43
- def __init__(self, plugins: Iterable[type[AutopubPlugin]] = ()) -> None:
44
- self.plugins = [plugin_class() for plugin_class in plugins]
45
-
46
- self.load_plugins()
47
-
48
43
  @cached_property
49
44
  def config(self) -> ConfigType:
50
45
  pyproject_path = Path.cwd() / "pyproject.toml"
@@ -87,6 +82,7 @@ class Autopub:
87
82
  return ReleaseInfo.from_dict(release_info)
88
83
 
89
84
  def load_plugins(self, default_plugins: list[str] | None = None) -> None:
85
+ print("🦆 loading plugins")
90
86
  default_plugins = default_plugins or []
91
87
 
92
88
  additional_plugins: list[str] = self.config.get("plugins", []) # type: ignore
@@ -94,6 +90,7 @@ class Autopub:
94
90
  all_plugins = default_plugins + additional_plugins
95
91
 
96
92
  plugins = load_plugins(all_plugins)
93
+ print("plugins", plugins)
97
94
 
98
95
  self.plugins += [plugin_class() for plugin_class in plugins]
99
96
 
autopub/cli/__init__.py CHANGED
@@ -146,6 +146,7 @@ def main(
146
146
  raise typer.Exit()
147
147
 
148
148
  autopub = Autopub()
149
+ print("🤙 loading plugins")
149
150
  # default plugins we always want to load (?)
150
151
  autopub.load_plugins(["git", "update_changelog", "bump_version"])
151
152
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autopub
3
- Version: 1.0.0a28
3
+ Version: 1.0.0a30
4
4
  Summary: Automatic package release upon pull request merge
5
5
  Home-page: https://github.com/autopub/autopub
6
6
  Author: Justin Mayer
@@ -1,5 +1,5 @@
1
- autopub/__init__.py,sha256=OyuS8vzj4LRVtYhAJUoaU_Vyx9TWPa7ocWMKSZy1xhU,7174
2
- autopub/cli/__init__.py,sha256=GZ1YNC0UDZqdMfQyNMD4D_D2ItTLcaiJLhPtsLwpH4s,3860
1
+ autopub/__init__.py,sha256=wbqzkmfNtka2-_iGOszJy10aFTKWvNdd_3Qe5Ykxrnw,7071
2
+ autopub/cli/__init__.py,sha256=77rx1yYi8adLUZAW7Rs48CNVyYe4HgSMZ7pZyIxD1iQ,3894
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
@@ -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.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,,
14
+ autopub-1.0.0a30.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
15
+ autopub-1.0.0a30.dist-info/METADATA,sha256=hf4CteUV8mLmhe5XICfFohOPpgnVvqBNWLJO5y_nqfw,951
16
+ autopub-1.0.0a30.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
17
+ autopub-1.0.0a30.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
18
+ autopub-1.0.0a30.dist-info/RECORD,,