2023-10-20 00:49:06 +00:00
|
|
|
[project]
|
|
|
|
name = "archivebox"
|
2024-10-29 03:01:11 +00:00
|
|
|
version = "0.8.6rc0"
|
2024-09-21 04:56:47 +00:00
|
|
|
requires-python = ">=3.10"
|
2023-10-20 00:49:06 +00:00
|
|
|
description = "Self-hosted internet archiving solution."
|
2024-04-24 00:43:01 +00:00
|
|
|
authors = [{name = "Nick Sweeting", email = "pyproject.toml@archivebox.io"}]
|
2024-01-16 01:27:36 +00:00
|
|
|
license = {text = "MIT"}
|
|
|
|
readme = "README.md"
|
2024-09-21 04:56:47 +00:00
|
|
|
keywords = ["internet archiving", "web archiving", "digipres", "warc", "preservation", "backups", "archiving", "web", "bookmarks", "puppeteer", "browser", "download"]
|
|
|
|
classifiers = [
|
|
|
|
"Development Status :: 4 - Beta",
|
|
|
|
"Environment :: Console",
|
|
|
|
"Environment :: Web Environment",
|
|
|
|
"Framework :: Django",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: Education",
|
|
|
|
"Intended Audience :: End Users/Desktop",
|
|
|
|
"Intended Audience :: Information Technology",
|
|
|
|
"Intended Audience :: Legal Industry",
|
|
|
|
"Intended Audience :: System Administrators",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Natural Language :: English",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.10",
|
|
|
|
"Programming Language :: Python :: 3.11",
|
|
|
|
"Programming Language :: Python :: 3.12",
|
|
|
|
"Topic :: Internet :: WWW/HTTP",
|
|
|
|
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
|
|
|
|
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
|
|
|
|
"Topic :: Sociology :: History",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
|
|
"Topic :: System :: Archiving",
|
|
|
|
"Topic :: System :: Archiving :: Backup",
|
|
|
|
"Topic :: System :: Recovery Tools",
|
|
|
|
"Topic :: Utilities",
|
|
|
|
"Typing :: Typed",
|
|
|
|
]
|
|
|
|
|
2024-04-24 00:43:01 +00:00
|
|
|
|
2023-10-20 00:49:06 +00:00
|
|
|
dependencies = [
|
2024-10-29 03:05:20 +00:00
|
|
|
# ... archivebox/pkgs/* # see vendored libs here
|
2024-09-10 07:04:39 +00:00
|
|
|
############# Django / Core Libraries #############
|
2024-09-12 00:08:10 +00:00
|
|
|
"setuptools>=74.1.0",
|
|
|
|
"django>=5.1.1,<6.0",
|
|
|
|
"django-ninja>=1.3.0",
|
2024-04-24 00:43:01 +00:00
|
|
|
"django-extensions>=3.2.3",
|
|
|
|
"mypy-extensions>=1.0.0",
|
2024-10-25 08:06:12 +00:00
|
|
|
"typing_extensions>=4.12.2",
|
2024-09-10 07:04:39 +00:00
|
|
|
"channels[daphne]>=4.1.0",
|
|
|
|
"django-signal-webhooks>=0.3.0",
|
2024-09-12 00:08:10 +00:00
|
|
|
"django-admin-data-views>=0.4.1",
|
|
|
|
"django-object-actions>=4.3.0",
|
2024-09-10 07:04:39 +00:00
|
|
|
"django-charid-field>=0.4",
|
2024-09-12 00:08:10 +00:00
|
|
|
"django-pydantic-field>=0.3.10",
|
2024-09-10 07:04:39 +00:00
|
|
|
"django-jsonform>=2.22.0",
|
2024-09-12 00:08:10 +00:00
|
|
|
"django-stubs>=5.0.4",
|
2024-09-10 07:04:39 +00:00
|
|
|
"django-huey>=1.2.1",
|
|
|
|
"django-huey-monitor>=0.9.0",
|
|
|
|
############# Python Helper Libraries ############
|
2024-09-27 08:26:02 +00:00
|
|
|
"pluggy>=1.5.0",
|
2024-09-12 00:08:10 +00:00
|
|
|
"requests>=2.32.3",
|
|
|
|
"dateparser>=1.2.0",
|
2024-11-03 07:41:11 +00:00
|
|
|
"tzdata>=2024.2", # needed for dateparser {TZ: UTC} on some systems: https://github.com/ArchiveBox/ArchiveBox/issues/1553
|
2024-02-25 20:34:51 +00:00
|
|
|
"feedparser>=6.0.11",
|
2024-09-12 00:08:10 +00:00
|
|
|
"w3lib>=2.2.1",
|
2024-09-06 09:59:14 +00:00
|
|
|
"rich>=13.8.0",
|
2024-10-03 10:11:39 +00:00
|
|
|
"rich-argparse>=1.5.2",
|
2024-09-06 09:59:14 +00:00
|
|
|
"ulid-py>=1.1.0",
|
2024-09-12 00:08:10 +00:00
|
|
|
"typeid-python>=0.3.1",
|
2024-09-10 07:04:39 +00:00
|
|
|
"psutil>=6.0.0",
|
|
|
|
"supervisor>=4.2.5",
|
2024-10-28 11:07:35 +00:00
|
|
|
"python-crontab>=3.2.0", # for: archivebox schedule
|
|
|
|
"croniter>=3.0.3", # for: archivebox schedule
|
|
|
|
"ipython>=8.27.0", # for: archivebox shell
|
|
|
|
"py-machineid>=0.6.0", # for: machine/detect.py calculating machine guid
|
2024-09-21 04:56:47 +00:00
|
|
|
"python-benedict[io,parse]>=0.33.2",
|
2024-09-27 08:26:02 +00:00
|
|
|
"pydantic-settings>=2.5.2",
|
2024-09-12 00:08:10 +00:00
|
|
|
"atomicwrites==1.4.1",
|
2024-10-15 00:42:35 +00:00
|
|
|
"django-taggit==6.1.0",
|
2024-08-23 09:01:02 +00:00
|
|
|
"base32-crockford==0.3.0",
|
2024-10-28 11:07:35 +00:00
|
|
|
"platformdirs>=4.3.6",
|
2024-10-21 10:44:45 +00:00
|
|
|
"pydantic-pkgr>=0.5.4",
|
2024-10-29 02:56:49 +00:00
|
|
|
"pocket>=0.3.6",
|
|
|
|
"sonic-client>=1.0.0",
|
|
|
|
"yt-dlp>=2024.8.6", # for: media"
|
|
|
|
############# Plugin Dependencies ################
|
2024-10-25 08:06:12 +00:00
|
|
|
"abx>=0.1.0",
|
|
|
|
"abx-spec-pydantic-pkgr>=0.1.0",
|
|
|
|
"abx-spec-config>=0.1.0",
|
|
|
|
"abx-spec-archivebox>=0.1.0",
|
|
|
|
"abx-spec-django>=0.1.0",
|
|
|
|
"abx-spec-extractor>=0.1.0",
|
|
|
|
"abx-spec-searchbackend>=0.1.0",
|
|
|
|
"abx-plugin-default-binproviders>=2024.10.24",
|
2024-10-28 11:07:35 +00:00
|
|
|
"abx-plugin-pip>=2024.10.24",
|
|
|
|
"abx-plugin-npm>=2024.10.24",
|
|
|
|
"abx-plugin-playwright>=2024.10.24",
|
|
|
|
"abx-plugin-puppeteer>=2024.10.28",
|
|
|
|
"abx-plugin-ripgrep-search>=2024.10.28",
|
|
|
|
"abx-plugin-sqlitefts-search>=2024.10.28",
|
|
|
|
"abx-plugin-sonic-search>=2024.10.28",
|
|
|
|
"abx-plugin-ldap-auth>=2024.10.28",
|
|
|
|
"abx-plugin-curl>=2024.10.27",
|
|
|
|
"abx-plugin-wget>=2024.10.28",
|
|
|
|
"abx-plugin-git>=2024.10.28",
|
|
|
|
"abx-plugin-chrome>=2024.10.28",
|
|
|
|
"abx-plugin-ytdlp>=2024.10.28",
|
|
|
|
"abx-plugin-title>=2024.10.27",
|
|
|
|
"abx-plugin-favicon>=2024.10.27",
|
|
|
|
# "abx-plugin-headers>=2024.10.27",
|
|
|
|
"abx-plugin-archivedotorg>=2024.10.28",
|
|
|
|
"abx-plugin-singlefile>=2024.10.28",
|
|
|
|
"abx-plugin-readability>=2024.10.28",
|
|
|
|
"abx-plugin-mercury>=2024.10.28",
|
|
|
|
"abx-plugin-htmltotext>=2024.10.28",
|
2024-11-03 07:41:11 +00:00
|
|
|
"python-statemachine>=2.3.6",
|
2023-10-20 00:49:06 +00:00
|
|
|
]
|
2024-02-19 03:15:40 +00:00
|
|
|
|
2024-01-16 01:27:36 +00:00
|
|
|
[project.optional-dependencies]
|
|
|
|
sonic = [
|
|
|
|
# echo "deb [signed-by=/usr/share/keyrings/valeriansaliou_sonic.gpg] https://packagecloud.io/valeriansaliou/sonic/debian/ bookworm main" > /etc/apt/sources.list.d/valeriansaliou_sonic.list
|
|
|
|
# curl -fsSL https://packagecloud.io/valeriansaliou/sonic/gpgkey | gpg --dearmor -o /usr/share/keyrings/valeriansaliou_sonic.gpg
|
2024-03-26 22:22:40 +00:00
|
|
|
# apt install sonic
|
2024-10-05 10:11:48 +00:00
|
|
|
# no-op, now included by default:
|
|
|
|
# "sonic-client>=1.0.0",
|
2024-01-16 01:27:36 +00:00
|
|
|
]
|
|
|
|
ldap = [
|
2024-09-21 04:56:47 +00:00
|
|
|
# apt install libsasl2-dev python-dev-is-python3 libldap2-dev libssl-dev
|
2024-01-16 01:27:36 +00:00
|
|
|
"python-ldap>=3.4.3",
|
|
|
|
"django-auth-ldap>=4.1.0",
|
|
|
|
]
|
2024-10-29 02:56:49 +00:00
|
|
|
debug = [
|
2024-10-24 22:30:51 +00:00
|
|
|
# packages needed for running with DEBUG=True
|
2024-10-29 02:56:49 +00:00
|
|
|
"django-debug-toolbar>=4.4.6",
|
|
|
|
"djdt_flamegraph>=0.2.13",
|
|
|
|
"ipdb>=0.13.13",
|
2024-10-24 22:30:51 +00:00
|
|
|
"requests-tracker>=0.3.3",
|
2024-10-24 22:32:37 +00:00
|
|
|
"django-autotyping>=0.5.1",
|
2024-10-29 02:56:49 +00:00
|
|
|
]
|
2024-09-21 04:56:47 +00:00
|
|
|
all = [
|
2024-10-29 02:56:49 +00:00
|
|
|
"archivebox[sonic,ldap,debug]"
|
2024-09-21 04:56:47 +00:00
|
|
|
]
|
2024-01-16 01:27:36 +00:00
|
|
|
|
2024-10-05 08:17:23 +00:00
|
|
|
[tool.uv]
|
|
|
|
dev-dependencies = [
|
|
|
|
### BUILD
|
2024-10-25 08:06:12 +00:00
|
|
|
"uv>=0.4.26",
|
2024-09-21 04:56:47 +00:00
|
|
|
"pip>=24.2",
|
|
|
|
"setuptools>=75.1.0",
|
|
|
|
"wheel>=0.44.0",
|
2024-10-24 22:30:51 +00:00
|
|
|
"bumpver>=2023.1129",
|
|
|
|
#"homebrew-pypi-poet>=0.10.0", # for: generating archivebox.rb brewfile list of python packages
|
2024-10-05 08:17:23 +00:00
|
|
|
### DOCS
|
2024-09-21 04:56:47 +00:00
|
|
|
"recommonmark>=0.7.1",
|
2024-10-25 08:06:12 +00:00
|
|
|
"sphinx>=8.1.3",
|
2024-09-21 04:56:47 +00:00
|
|
|
"sphinx-rtd-theme>=2.0.0",
|
2024-10-05 08:17:23 +00:00
|
|
|
### DEBUGGING
|
2024-09-21 04:56:47 +00:00
|
|
|
"django-debug-toolbar>=4.4.6",
|
2024-10-29 02:56:49 +00:00
|
|
|
"requests-tracker>=0.3.3",
|
2024-09-21 04:56:47 +00:00
|
|
|
"djdt_flamegraph>=0.2.13",
|
|
|
|
"ipdb>=0.13.13",
|
|
|
|
"logfire[django]>=0.51.0",
|
|
|
|
"opentelemetry-instrumentation-django>=0.47b0",
|
|
|
|
"opentelemetry-instrumentation-sqlite3>=0.47b0",
|
2024-10-25 08:06:12 +00:00
|
|
|
"viztracer>=0.17.0", # usage: viztracer ../.venv/bin/archivebox manage check
|
2024-09-25 02:05:23 +00:00
|
|
|
# "snakeviz", # usage: python -m cProfile -o flamegraph.prof ../.venv/bin/archivebox manage check
|
2024-10-05 08:17:23 +00:00
|
|
|
### TESTING
|
2024-09-21 04:56:47 +00:00
|
|
|
"pytest>=8.3.3",
|
|
|
|
"bottle>=0.13.1",
|
2024-10-05 08:17:23 +00:00
|
|
|
### LINTING
|
2024-09-24 08:25:55 +00:00
|
|
|
"ruff>=0.6.6",
|
2024-09-21 04:56:47 +00:00
|
|
|
"flake8>=7.1.1",
|
|
|
|
"mypy>=1.11.2",
|
|
|
|
]
|
|
|
|
|
2024-10-25 08:06:12 +00:00
|
|
|
[tool.uv.sources]
|
2024-10-29 03:00:21 +00:00
|
|
|
# pydantic-pkgr = { workspace = true }
|
2024-10-29 02:56:49 +00:00
|
|
|
|
2024-10-25 08:06:12 +00:00
|
|
|
abx = { workspace = true }
|
|
|
|
abx-spec-pydantic-pkgr = { workspace = true }
|
|
|
|
abx-spec-config = { workspace = true }
|
|
|
|
abx-spec-archivebox = { workspace = true }
|
|
|
|
abx-spec-django = { workspace = true }
|
|
|
|
abx-spec-extractor = { workspace = true }
|
|
|
|
abx-spec-searchbackend = { workspace = true }
|
|
|
|
|
|
|
|
abx-plugin-default-binproviders = { workspace = true }
|
2024-10-28 11:07:35 +00:00
|
|
|
abx-plugin-pip = { workspace = true }
|
|
|
|
abx-plugin-npm = { workspace = true }
|
|
|
|
abx-plugin-playwright = { workspace = true }
|
|
|
|
abx-plugin-puppeteer = { workspace = true }
|
|
|
|
abx-plugin-ripgrep-search = { workspace = true }
|
|
|
|
abx-plugin-sqlitefts-search = { workspace = true }
|
|
|
|
abx-plugin-sonic-search = { workspace = true }
|
|
|
|
abx-plugin-ldap-auth = { workspace = true }
|
|
|
|
|
|
|
|
abx-plugin-curl = { workspace = true }
|
|
|
|
abx-plugin-wget = { workspace = true }
|
|
|
|
abx-plugin-git = { workspace = true }
|
|
|
|
abx-plugin-chrome = { workspace = true }
|
|
|
|
abx-plugin-ytdlp = { workspace = true }
|
|
|
|
|
|
|
|
abx-plugin-title = { workspace = true }
|
|
|
|
abx-plugin-favicon = { workspace = true }
|
|
|
|
# abx-plugin-headers = { workspace = true }
|
|
|
|
abx-plugin-archivedotorg = { workspace = true }
|
|
|
|
|
|
|
|
abx-plugin-singlefile = { workspace = true }
|
|
|
|
abx-plugin-readability = { workspace = true }
|
|
|
|
abx-plugin-mercury = { workspace = true }
|
|
|
|
abx-plugin-htmltotext = { workspace = true }
|
|
|
|
|
2024-10-25 08:06:12 +00:00
|
|
|
|
|
|
|
[tool.uv.workspace]
|
2024-10-29 03:05:20 +00:00
|
|
|
members = ["archivebox/pkgs/*"]
|
|
|
|
exclude = ["archivebox/pkgs/__pycache__"]
|
2024-10-25 08:06:12 +00:00
|
|
|
|
2024-04-24 00:43:01 +00:00
|
|
|
[build-system]
|
|
|
|
requires = ["pdm-backend"]
|
|
|
|
build-backend = "pdm.backend"
|
2024-10-05 09:16:17 +00:00
|
|
|
# https://github.com/astral-sh/uv/issues/3957
|
2024-04-24 00:43:01 +00:00
|
|
|
|
2024-09-21 04:56:47 +00:00
|
|
|
[tool.setuptools]
|
|
|
|
packages = ["archivebox"]
|
|
|
|
package-dir = {"archivebox" = "archivebox"}
|
2024-04-24 00:43:01 +00:00
|
|
|
|
2024-09-06 04:44:18 +00:00
|
|
|
[tool.ruff]
|
|
|
|
line-length = 140
|
|
|
|
target-version = "py310"
|
|
|
|
src = ["archivebox"]
|
2024-10-29 02:56:49 +00:00
|
|
|
exclude = ["*.pyi", "typings/", "migrations/"]
|
2024-09-06 04:44:18 +00:00
|
|
|
|
2024-09-21 04:56:47 +00:00
|
|
|
# https://docs.astral.sh/ruff/rules/
|
2024-09-06 08:48:18 +00:00
|
|
|
[tool.ruff.lint]
|
2024-09-24 08:25:55 +00:00
|
|
|
ignore = ["E731", "E303", "E266", "E241", "E222"]
|
2024-09-06 08:48:18 +00:00
|
|
|
|
2024-03-01 20:43:53 +00:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
testpaths = [ "tests" ]
|
2023-10-20 00:49:06 +00:00
|
|
|
|
2024-04-24 00:43:01 +00:00
|
|
|
[tool.mypy]
|
2024-08-21 01:32:12 +00:00
|
|
|
mypy_path = "archivebox,archivebox/typings"
|
2024-04-24 00:43:01 +00:00
|
|
|
namespace_packages = true
|
|
|
|
explicit_package_bases = true
|
|
|
|
# follow_imports = "silent"
|
|
|
|
# ignore_missing_imports = true
|
|
|
|
# disallow_incomplete_defs = true
|
|
|
|
# disallow_untyped_defs = true
|
|
|
|
# disallow_untyped_decorators = true
|
2024-10-05 09:16:17 +00:00
|
|
|
# exclude = "tests/.*"
|
2024-04-24 00:43:01 +00:00
|
|
|
plugins = ["mypy_django_plugin.main"]
|
2023-10-20 00:49:06 +00:00
|
|
|
|
2024-05-01 04:43:51 +00:00
|
|
|
[tool.django-stubs]
|
|
|
|
django_settings_module = "core.settings"
|
2023-10-20 00:49:06 +00:00
|
|
|
|
2024-05-18 03:13:54 +00:00
|
|
|
[tool.pyright]
|
2024-08-21 01:32:12 +00:00
|
|
|
include = [
|
|
|
|
"archivebox",
|
|
|
|
]
|
|
|
|
exclude = [
|
|
|
|
".venv",
|
|
|
|
"**/*.pyi",
|
|
|
|
"**/__init__.pyi",
|
|
|
|
"**/node_modules",
|
2024-05-18 03:13:54 +00:00
|
|
|
"**/__pycache__",
|
|
|
|
"**/migrations",
|
|
|
|
]
|
2024-08-28 07:26:25 +00:00
|
|
|
stubPath = "./archivebox/typings"
|
2024-08-21 01:32:12 +00:00
|
|
|
venvPath = "."
|
|
|
|
venv = ".venv"
|
2024-05-18 03:13:54 +00:00
|
|
|
# ignore = ["src/oldstuff"]
|
|
|
|
# defineConstant = { DEBUG = true }
|
|
|
|
reportMissingImports = true
|
|
|
|
reportMissingTypeStubs = false
|
|
|
|
pythonVersion = "3.10"
|
|
|
|
pythonPlatform = "Linux"
|
|
|
|
|
|
|
|
|
2024-09-21 04:56:47 +00:00
|
|
|
[project.scripts]
|
|
|
|
archivebox = "archivebox.cli:main"
|
|
|
|
|
|
|
|
|
2023-10-20 00:49:06 +00:00
|
|
|
[project.urls]
|
|
|
|
Homepage = "https://github.com/ArchiveBox/ArchiveBox"
|
|
|
|
Source = "https://github.com/ArchiveBox/ArchiveBox"
|
|
|
|
Documentation = "https://github.com/ArchiveBox/ArchiveBox/wiki"
|
|
|
|
"Bug Tracker" = "https://github.com/ArchiveBox/ArchiveBox/issues"
|
|
|
|
Changelog = "https://github.com/ArchiveBox/ArchiveBox/releases"
|
|
|
|
Roadmap = "https://github.com/ArchiveBox/ArchiveBox/wiki/Roadmap"
|
|
|
|
Community = "https://github.com/ArchiveBox/ArchiveBox/wiki/Web-Archiving-Community"
|
|
|
|
Demo = "https://demo.archivebox.io"
|
|
|
|
Donate = "https://github.com/ArchiveBox/ArchiveBox/wiki/Donations"
|
|
|
|
|
|
|
|
|
2024-10-24 22:12:59 +00:00
|
|
|
|
|
|
|
[tool.bumpver]
|
2024-10-24 22:26:40 +00:00
|
|
|
current_version = "v0.8.5rc53"
|
2024-10-24 22:26:33 +00:00
|
|
|
version_pattern = "vMAJOR.MINOR.PATCH[PYTAGNUM]"
|
2024-10-24 22:12:59 +00:00
|
|
|
commit_message = "bump version {old_version} -> {new_version}"
|
2024-10-24 22:26:33 +00:00
|
|
|
tag_message = "{new_version}"
|
2024-10-24 22:12:59 +00:00
|
|
|
tag_scope = "default"
|
|
|
|
pre_commit_hook = ""
|
|
|
|
post_commit_hook = ""
|
|
|
|
commit = true
|
|
|
|
tag = true
|
|
|
|
push = true
|
|
|
|
|
|
|
|
[tool.bumpver.file_patterns]
|
|
|
|
"pyproject.toml" = [
|
|
|
|
'current_version = "{version}"',
|
2024-10-24 22:26:33 +00:00
|
|
|
'version = "{pep440_version}"',
|
2024-10-24 22:12:59 +00:00
|
|
|
]
|