mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-27 20:57:18 +00:00
add author and version
This commit is contained in:
parent
b5e2ed1d46
commit
9ec1f81bd5
2 changed files with 4 additions and 1 deletions
|
@ -22,6 +22,7 @@ from config import (
|
||||||
OUTPUT_DIR,
|
OUTPUT_DIR,
|
||||||
ANSI,
|
ANSI,
|
||||||
TIMEOUT,
|
TIMEOUT,
|
||||||
|
GIT_SHA,
|
||||||
)
|
)
|
||||||
from util import (
|
from util import (
|
||||||
download_url,
|
download_url,
|
||||||
|
@ -30,6 +31,8 @@ from util import (
|
||||||
pretty_path,
|
pretty_path,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
__AUTHOR__ = 'Nick Sweeting <git@nicksweeting.com>'
|
||||||
|
__VERSION__ = GIT_SHA
|
||||||
__DESCRIPTION__ = 'Bookmark Archiver: Create a browsable html archive of a list of links.'
|
__DESCRIPTION__ = 'Bookmark Archiver: Create a browsable html archive of a list of links.'
|
||||||
__DOCUMENTATION__ = 'https://github.com/pirate/bookmark-archiver'
|
__DOCUMENTATION__ = 'https://github.com/pirate/bookmark-archiver'
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ if not USE_COLOR:
|
||||||
try:
|
try:
|
||||||
GIT_SHA = run(["git", "rev-list", "-1", "HEAD", "./"], stdout=PIPE, cwd=REPO_DIR).stdout.strip().decode()
|
GIT_SHA = run(["git", "rev-list", "-1", "HEAD", "./"], stdout=PIPE, cwd=REPO_DIR).stdout.strip().decode()
|
||||||
except Exception:
|
except Exception:
|
||||||
GIT_SHA = None
|
GIT_SHA = 'unknown'
|
||||||
print('[!] Warning, you need git installed for some archiving features to save correct version numbers!')
|
print('[!] Warning, you need git installed for some archiving features to save correct version numbers!')
|
||||||
|
|
||||||
if sys.stdout.encoding.upper() != 'UTF-8':
|
if sys.stdout.encoding.upper() != 'UTF-8':
|
||||||
|
|
Loading…
Add table
Reference in a new issue