1
0
Fork 0
archivebox/setup.py

116 lines
3.6 KiB
Python
Raw Normal View History

2019-03-27 11:40:00 -04:00
import setuptools
2020-06-25 21:30:29 -04:00
from pathlib import Path
2019-03-27 11:40:00 -04:00
2020-06-25 21:30:29 -04:00
PKG_NAME = "archivebox"
REPO_URL = "https://github.com/pirate/ArchiveBox"
BASE_DIR = Path(__file__).parent.resolve()
SOURCE_DIR = BASE_DIR / PKG_NAME
README = (BASE_DIR / "README.md").read_text()
VERSION = (SOURCE_DIR / "VERSION").read_text().strip()
2020-06-25 21:30:29 -04:00
# To see when setup.py gets called (uncomment for debugging)
# import sys
# print(SOURCE_DIR, f" (v{VERSION})")
# print('>', sys.executable, *sys.argv)
2020-06-25 21:30:29 -04:00
# raise SystemExit(0)
2019-03-27 11:40:00 -04:00
setuptools.setup(
2020-06-25 21:30:29 -04:00
name=PKG_NAME,
version=VERSION,
2020-06-25 21:30:29 -04:00
license="MIT",
2019-03-27 11:40:00 -04:00
author="Nick Sweeting",
author_email="git@nicksweeting.com",
description="The self-hosted internet archive.",
2019-05-02 15:39:55 -04:00
long_description=README,
2019-03-27 11:40:00 -04:00
long_description_content_type="text/markdown",
2020-06-25 21:30:29 -04:00
url=REPO_URL,
project_urls={
2020-06-25 21:30:29 -04:00
"Source": f"{REPO_URL}",
"Documentation": f"{REPO_URL}/wiki",
"Bug Tracker": f"{REPO_URL}/issues",
"Changelog": f"{REPO_URL}/wiki/Changelog",
"Roadmap": f"{REPO_URL}/wiki/Roadmap",
"Community": f"{REPO_URL}/wiki/Web-Archiving-Community",
"Donate": f"{REPO_URL}/wiki/Donations",
},
2020-06-25 21:30:29 -04:00
python_requires=">=3.7",
install_requires=[
2020-06-25 21:30:29 -04:00
"requests",
"atomicwrites",
"dataclasses==0.6",
2020-06-25 17:46:11 -04:00
"mypy-extensions==0.4.3",
"base32-crockford==0.3.0",
2020-06-25 17:46:11 -04:00
"django==3.0.7",
"django-extensions==2.2.9",
"dateparser",
2020-06-25 21:30:29 -04:00
"ipython",
"youtube-dl",
"python-crontab==2.5.1",
2020-07-22 11:34:57 -04:00
"w3lib==1.22.0",
2020-06-25 21:30:29 -04:00
# "croniter",
# Some/all of these will likely be added in the future:
# wpull
# pywb
# pyppeteer
# archivenow
],
2020-06-25 21:30:29 -04:00
extras_require={
'dev': [
"setuptools",
"twine",
"flake8",
"ipdb",
"mypy",
"django-stubs",
"sphinx",
"sphinx-rtd-theme",
"recommonmark",
2020-07-03 14:13:59 -04:00
"pytest",
"bottle",
2020-06-25 21:30:29 -04:00
],
# 'redis': ['redis', 'django-redis'],
# 'pywb': ['pywb', 'redis'],
},
packages=setuptools.find_packages(),
entry_points={
2020-06-25 21:30:29 -04:00
"console_scripts": [
f"{PKG_NAME} = {PKG_NAME}.cli:main",
],
},
include_package_data=True,
2019-03-27 11:40:00 -04:00
classifiers=[
2020-06-25 21:30:29 -04:00
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Topic :: Utilities",
"Topic :: System :: Archiving",
"Topic :: System :: Archiving :: Backup",
"Topic :: System :: Recovery Tools",
"Topic :: Sociology :: History",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Server",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"Intended Audience :: Legal Industry",
"Intended Audience :: System Administrators",
"Environment :: Console",
"Environment :: Web Environment",
2019-03-27 11:40:00 -04:00
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
2020-06-25 21:30:29 -04:00
"Framework :: Django",
"Typing :: Typed",
2019-03-27 11:40:00 -04:00
],
)