pyupcheck 0.3.2__tar.gz → 0.3.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyupcheck
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Check if upgrading a Python dependency will break your code
5
5
  Author: AgbaDev
6
6
  License-Expression: MIT
@@ -1,3 +1,3 @@
1
1
  """depshift - Check if upgrading a Python dependency will break your code."""
2
2
 
3
- __version__ = "0.3.2"
3
+ __version__ = "0.3.3"
@@ -218,6 +218,13 @@ def main(ctx):
218
218
  show_if_first_run(console)
219
219
 
220
220
 
221
+ @main.command("banner")
222
+ def show_banner():
223
+ """Show the pyupcheck banner."""
224
+ from depshift.welcome import BANNER
225
+ console.print(BANNER)
226
+
227
+
221
228
  # ── check ─────────────────────────────────────────────────────────────────────
222
229
 
223
230
  @main.command()
@@ -1,11 +1,11 @@
1
1
  """Show a welcome banner on first run."""
2
2
 
3
- import os
4
3
  from pathlib import Path
4
+ from depshift import __version__
5
5
 
6
6
  MARKER = Path.home() / ".cache" / "pyupcheck" / ".welcomed"
7
7
 
8
- BANNER = """
8
+ BANNER = f"""
9
9
  [bold cyan] ██████╗ ██╗ ██╗██╗ ██╗██████╗ ██████╗██╗ ██╗███████╗ ██████╗██╗ ██╗[/]
10
10
  [bold cyan]██╔══██╗╚██╗ ██╔╝██║ ██║██╔══██╗██╔════╝██║ ██║██╔════╝██╔════╝██║ ██╔╝[/]
11
11
  [bold cyan]██████╔╝ ╚████╔╝ ██║ ██║██████╔╝██║ ███████║█████╗ ██║ █████╔╝ [/]
@@ -15,7 +15,7 @@ BANNER = """
15
15
 
16
16
  [bold white] Know if a dependency upgrade will break your code before you run it.[/]
17
17
 
18
- [dim]Version[/] [green]0.3.2[/]
18
+ [dim]Version[/] [green]{__version__}[/]
19
19
  [dim]PyPI[/] [blue]https://pypi.org/project/pyupcheck[/]
20
20
  [dim]GitHub[/] [blue]https://github.com/Astronomox/pyupcheck-Astronomox[/]
21
21
  [dim]Author[/] [cyan]AgbaDev (Astronomox)[/]
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pyupcheck"
7
- version = "0.3.2"
7
+ version = "0.3.3"
8
8
  description = "Check if upgrading a Python dependency will break your code"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyupcheck
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Check if upgrading a Python dependency will break your code
5
5
  Author: AgbaDev
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes