remove extra files from repo root and move package.json into etc

This commit is contained in:
Nick Sweeting
2024-10-05 03:51:47 -07:00
parent 00a91e09c6
commit db10a2142e
17 changed files with 44 additions and 6370 deletions

View File

@@ -1 +0,0 @@
../LICENSE

View File

@@ -4,7 +4,6 @@ __package__ = 'archivebox.config'
import os
import re
import platform
import machineid
import tempfile
from typing import Dict
@@ -39,15 +38,6 @@ def _detect_installed_version(PACKAGE_DIR: Path):
except FileNotFoundError:
# building docs, pyproject.toml is not available
pass
try:
# if in dev but not in Git repo dir, fallback to using package.json file
package_json = (PACKAGE_DIR / 'package.json').read_text().split('\n')
for line in package_json:
if '"version": "' in line:
return line.replace('"', '').split(':')[-1].strip(',').strip()
except FileNotFoundError:
pass
# raise Exception('Failed to detect installed archivebox version!')
return 'dev'

View File

@@ -74,7 +74,7 @@ class ShellConfig(BaseConfigSet):
docker_build_end_time = Path('/VERSION.txt').read_text().rsplit('BUILD_END_TIME=')[-1].split('\n', 1)[0]
return docker_build_end_time
src_last_modified_unix_timestamp = (PACKAGE_DIR / 'package.json').stat().st_mtime
src_last_modified_unix_timestamp = (PACKAGE_DIR / 'README.md').stat().st_mtime
return datetime.fromtimestamp(src_last_modified_unix_timestamp).strftime('%Y-%m-%d %H:%M:%S %s')

File diff suppressed because it is too large Load Diff

View File

@@ -1,15 +0,0 @@
{
"name": "archivebox",
"version": "0.8.5rc1",
"description": "ArchiveBox: The self-hosted internet archive",
"author": "Nick Sweeting <archivebox-npm@sweeting.me>",
"repository": "github:ArchiveBox/ArchiveBox",
"license": "MIT",
"dependencies": {
"@postlight/parser": "^2.2.3",
"readability-extractor": "github:ArchiveBox/readability-extractor",
"single-file-cli": "^1.1.54",
"puppeteer": "^23.5.0",
"@puppeteer/browsers": "^2.4.0"
}
}