mirror of
https://github.com/bellingcat/octosuite.git
synced 2026-06-08 03:18:35 +03:00
4.0/release-candidate
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "octosuite"
|
||||
version = "4.0.1beta2"
|
||||
version = "4.0.0rc0"
|
||||
description = "TUI-based toolkit for GitHub data analysis."
|
||||
readme = "README.md"
|
||||
license = "MIT"
|
||||
@@ -12,7 +12,8 @@ dependencies = [
|
||||
"rich>=14.2.0",
|
||||
"questionary>=2.1.1",
|
||||
"pyfiglet>=1.0.4",
|
||||
"update-checker>=0.18.0"
|
||||
"update-checker>=0.18.0",
|
||||
"black>=25.12.0",
|
||||
]
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
@@ -33,4 +34,4 @@ dev = [
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
octosuite = "octosuite.app:start"
|
||||
octosuite = "octosuite.app:start"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
__pkg__ = "octosuite"
|
||||
__version__ = "4.0.1beta2"
|
||||
__version__ = "4.0.0rc0"
|
||||
|
||||
@@ -63,6 +63,7 @@ def preview_response(data: t.Union[dict, list], source: str, _type: str):
|
||||
item.get("full_name")
|
||||
or item.get("name")
|
||||
or item.get("login")
|
||||
or item.get("type")
|
||||
or item.get("id")
|
||||
or "Item"
|
||||
)
|
||||
@@ -215,7 +216,7 @@ def fill_tree(tree: Tree, data: t.Union[dict, list]) -> Tree:
|
||||
def check_updates():
|
||||
"""Check for available package updates and display the result."""
|
||||
|
||||
with console.status("[dim]Checking for updates...[/dim]") as status:
|
||||
with console.status("[dim]Checking for updates[/dim]…") as status:
|
||||
checker = UpdateChecker()
|
||||
result = checker.check(__pkg__, __version__)
|
||||
if result is not None:
|
||||
|
||||
@@ -99,7 +99,7 @@ class BaseMenu:
|
||||
target_type = "org"
|
||||
|
||||
with Status(
|
||||
f"[dim]Validating {target_type} ({identifier})[/dim]...",
|
||||
f"[dim]Validating {target_type} ({identifier})[/dim]…",
|
||||
console=console,
|
||||
) as status:
|
||||
exists, response = instance.exists()
|
||||
@@ -110,7 +110,7 @@ class BaseMenu:
|
||||
console.print(
|
||||
f"[bold][yellow]✘[/yellow] {response['message']}[/bold]"
|
||||
)
|
||||
console.input(" Press [bold]ENTER[/bold] to continue ...")
|
||||
console.input(" Press [bold]ENTER[/bold] to continue …")
|
||||
callback(*callback_args)
|
||||
return False
|
||||
|
||||
@@ -135,7 +135,7 @@ class BaseMenu:
|
||||
valid_methods = self.paginated_methods | self.non_paginated_methods
|
||||
if method_name in valid_methods:
|
||||
with Status(
|
||||
status=f"[dim]Initialising {target_type} {method_name}[/dim]...",
|
||||
status=f"[dim]Initialising {target_type} {method_name}[/dim]…",
|
||||
console=console,
|
||||
) as status:
|
||||
data = self.execute_selection(
|
||||
@@ -168,7 +168,7 @@ class BaseMenu:
|
||||
prompts.pagination_params() if method_name in self.paginated_methods else {}
|
||||
)
|
||||
status.start()
|
||||
status.update(f"[dim]Getting {method_name} from {source}[/dim]...")
|
||||
status.update(f"[dim]Getting {method_name} from {source}[/dim]…")
|
||||
return method(**params)
|
||||
|
||||
def response_handler(self, data: t.Union[dict, list], data_type: str, source: str):
|
||||
@@ -259,7 +259,7 @@ class BaseMenu:
|
||||
file_formats=file_formats,
|
||||
)
|
||||
|
||||
console.input(" Press [bold]ENTER[/bold] to continue ...")
|
||||
console.input(" Press [bold]ENTER[/bold] to continue …")
|
||||
except KeyboardInterrupt:
|
||||
console.print("\nExport cancelled")
|
||||
|
||||
@@ -470,7 +470,7 @@ class Menus(BaseMenu):
|
||||
# Execute search if it's a valid method
|
||||
if option in self.search_methods:
|
||||
with Status(
|
||||
status=f"[dim]Initialising {option} search[/dim]...", console=console
|
||||
status=f"[dim]Initialising {option} search[/dim]…", console=console
|
||||
) as status:
|
||||
status.stop()
|
||||
params = prompts.pagination_params()
|
||||
@@ -484,7 +484,7 @@ class Menus(BaseMenu):
|
||||
)
|
||||
|
||||
method = getattr(search, option)
|
||||
status.update(f"[dim]Searching {option} for {query}[/dim]...")
|
||||
status.update(f"[dim]Searching {option} for {query}[/dim]…")
|
||||
data = method()
|
||||
|
||||
if data:
|
||||
|
||||
2
uv.lock
generated
2
uv.lock
generated
@@ -144,6 +144,7 @@ name = "octosuite"
|
||||
version = "4.0.0"
|
||||
source = { virtual = "." }
|
||||
dependencies = [
|
||||
{ name = "black" },
|
||||
{ name = "pyfiglet" },
|
||||
{ name = "questionary" },
|
||||
{ name = "rich" },
|
||||
@@ -157,6 +158,7 @@ dev = [
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "black", specifier = ">=25.12.0" },
|
||||
{ name = "black", marker = "extra == 'dev'", specifier = ">=25.12.0" },
|
||||
{ name = "pyfiglet", specifier = ">=1.0.4" },
|
||||
{ name = "questionary", specifier = ">=2.1.1" },
|
||||
|
||||
Reference in New Issue
Block a user