mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-21 19:53:06 +00:00
tweak version output order
This commit is contained in:
parent
312e40b95b
commit
8a2b38b46c
4 changed files with 21 additions and 17 deletions
|
@ -76,9 +76,9 @@ def get_BINPROVIDERS() -> Dict[str, 'BaseBinProvider']:
|
||||||
# TODO: move these to plugins
|
# TODO: move these to plugins
|
||||||
from abx.archivebox.base_binary import apt, brew, env
|
from abx.archivebox.base_binary import apt, brew, env
|
||||||
builtin_binproviders = {
|
builtin_binproviders = {
|
||||||
|
'env': env,
|
||||||
'apt': apt,
|
'apt': apt,
|
||||||
'brew': brew,
|
'brew': brew,
|
||||||
'env': env,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return benedict({
|
return benedict({
|
||||||
|
|
|
@ -14,9 +14,20 @@ from crontab import CronTab, CronSlices
|
||||||
from django.db.models import QuerySet
|
from django.db.models import QuerySet
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
|
|
||||||
|
from archivebox.misc.checks import check_data_folder
|
||||||
|
from archivebox.misc.util import enforce_types # type: ignore
|
||||||
|
from archivebox.misc.system import get_dir_size, dedupe_cron_jobs, CRON_COMMENT
|
||||||
|
from archivebox.misc.system import run as run_shell
|
||||||
|
from archivebox.misc.logging import stderr, hint
|
||||||
from archivebox.config import CONSTANTS, VERSION, DATA_DIR, ARCHIVE_DIR
|
from archivebox.config import CONSTANTS, VERSION, DATA_DIR, ARCHIVE_DIR
|
||||||
from archivebox.config.common import SHELL_CONFIG, SEARCH_BACKEND_CONFIG, STORAGE_CONFIG, SERVER_CONFIG, ARCHIVING_CONFIG
|
from archivebox.config.common import SHELL_CONFIG, SEARCH_BACKEND_CONFIG, STORAGE_CONFIG, SERVER_CONFIG, ARCHIVING_CONFIG
|
||||||
from archivebox.config.permissions import SudoPermission, IN_DOCKER
|
from archivebox.config.permissions import SudoPermission, IN_DOCKER
|
||||||
|
from archivebox.config.configfile import (
|
||||||
|
write_config_file,
|
||||||
|
load_all_config,
|
||||||
|
get_real_name,
|
||||||
|
)
|
||||||
|
|
||||||
from .cli import (
|
from .cli import (
|
||||||
CLI_SUBCOMMANDS,
|
CLI_SUBCOMMANDS,
|
||||||
run_subcommand,
|
run_subcommand,
|
||||||
|
@ -30,9 +41,6 @@ from .parsers import (
|
||||||
save_file_as_source,
|
save_file_as_source,
|
||||||
parse_links_memory,
|
parse_links_memory,
|
||||||
)
|
)
|
||||||
from archivebox.misc.util import enforce_types # type: ignore
|
|
||||||
from archivebox.misc.system import get_dir_size, dedupe_cron_jobs, CRON_COMMENT
|
|
||||||
from archivebox.misc.system import run as run_shell
|
|
||||||
from .index.schema import Link
|
from .index.schema import Link
|
||||||
from .index import (
|
from .index import (
|
||||||
load_main_index,
|
load_main_index,
|
||||||
|
@ -66,13 +74,6 @@ from .index.sql import (
|
||||||
from .index.html import generate_index_from_links
|
from .index.html import generate_index_from_links
|
||||||
from .index.csv import links_to_csv
|
from .index.csv import links_to_csv
|
||||||
from .extractors import archive_links, archive_link, ignore_methods
|
from .extractors import archive_links, archive_link, ignore_methods
|
||||||
from archivebox.misc.logging import stderr, hint
|
|
||||||
from archivebox.misc.checks import check_data_folder
|
|
||||||
from archivebox.config.configfile import (
|
|
||||||
write_config_file,
|
|
||||||
load_all_config,
|
|
||||||
get_real_name,
|
|
||||||
)
|
|
||||||
from .logging_util import (
|
from .logging_util import (
|
||||||
TimedProgress,
|
TimedProgress,
|
||||||
log_importing_started,
|
log_importing_started,
|
||||||
|
@ -194,13 +195,16 @@ def version(quiet: bool=False,
|
||||||
console = Console()
|
console = Console()
|
||||||
prnt = console.print
|
prnt = console.print
|
||||||
|
|
||||||
from plugins_auth.ldap.config import LDAP_CONFIG
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
from abx.archivebox.base_binary import BaseBinary, apt, brew, env
|
||||||
|
|
||||||
from archivebox.config.version import get_COMMIT_HASH, get_BUILD_TIME
|
from archivebox.config.version import get_COMMIT_HASH, get_BUILD_TIME
|
||||||
from archivebox.config.permissions import ARCHIVEBOX_USER, ARCHIVEBOX_GROUP, RUNNING_AS_UID, RUNNING_AS_GID
|
from archivebox.config.permissions import ARCHIVEBOX_USER, ARCHIVEBOX_GROUP, RUNNING_AS_UID, RUNNING_AS_GID
|
||||||
from archivebox.config.paths import get_data_locations, get_code_locations
|
from archivebox.config.paths import get_data_locations, get_code_locations
|
||||||
|
|
||||||
|
from plugins_auth.ldap.config import LDAP_CONFIG
|
||||||
|
|
||||||
from abx.archivebox.base_binary import BaseBinary, apt, brew, env
|
|
||||||
|
|
||||||
# 0.7.1
|
# 0.7.1
|
||||||
# ArchiveBox v0.7.1+editable COMMIT_HASH=951bba5 BUILD_TIME=2023-12-17 16:46:05 1702860365
|
# ArchiveBox v0.7.1+editable COMMIT_HASH=951bba5 BUILD_TIME=2023-12-17 16:46:05 1702860365
|
||||||
|
@ -260,7 +264,7 @@ def version(quiet: bool=False,
|
||||||
|
|
||||||
prnt('[pale_green1][i] Binary Dependencies:[/pale_green1]')
|
prnt('[pale_green1][i] Binary Dependencies:[/pale_green1]')
|
||||||
failures = []
|
failures = []
|
||||||
for name, binary in reversed(list(settings.BINARIES.items())):
|
for name, binary in list(settings.BINARIES.items()):
|
||||||
if binary.name == 'archivebox':
|
if binary.name == 'archivebox':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -291,7 +295,7 @@ def version(quiet: bool=False,
|
||||||
|
|
||||||
prnt()
|
prnt()
|
||||||
prnt('[gold3][i] Package Managers:[/gold3]')
|
prnt('[gold3][i] Package Managers:[/gold3]')
|
||||||
for name, binprovider in reversed(list(settings.BINPROVIDERS.items())):
|
for name, binprovider in list(settings.BINPROVIDERS.items()):
|
||||||
err = None
|
err = None
|
||||||
|
|
||||||
if binproviders and binprovider.name not in binproviders:
|
if binproviders and binprovider.name not in binproviders:
|
||||||
|
|
|
@ -42,6 +42,6 @@ def get_BINPROVIDERS():
|
||||||
from .binproviders import LIB_NPM_BINPROVIDER, SYS_NPM_BINPROVIDER
|
from .binproviders import LIB_NPM_BINPROVIDER, SYS_NPM_BINPROVIDER
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'lib_npm': LIB_NPM_BINPROVIDER,
|
|
||||||
'sys_npm': SYS_NPM_BINPROVIDER,
|
'sys_npm': SYS_NPM_BINPROVIDER,
|
||||||
|
'lib_npm': LIB_NPM_BINPROVIDER,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "archivebox"
|
name = "archivebox"
|
||||||
version = "0.8.5rc45"
|
version = "0.8.5rc46"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
description = "Self-hosted internet archiving solution."
|
description = "Self-hosted internet archiving solution."
|
||||||
authors = [{name = "Nick Sweeting", email = "pyproject.toml@archivebox.io"}]
|
authors = [{name = "Nick Sweeting", email = "pyproject.toml@archivebox.io"}]
|
||||||
|
|
Loading…
Reference in a new issue