1
0
Fork 0
mirror of synced 2024-05-19 03:42:24 +12:00
ArchiveBox/setup.py

124 lines
3.8 KiB
Python
Raw Normal View History

import json
2019-03-28 04:40:00 +13:00
import setuptools
2020-06-26 13:30:29 +12:00
from pathlib import Path
2019-03-28 04:40:00 +13:00
2020-06-26 13:30:29 +12:00
PKG_NAME = "archivebox"
2020-10-31 20:08:41 +13:00
DESCRIPTION = "The self-hosted internet archive."
LICENSE = "MIT"
AUTHOR = "Nick Sweeting"
AUTHOR_EMAIL="git@nicksweeting.com"
2020-11-23 20:04:39 +13:00
REPO_URL = "https://github.com/ArchiveBox/ArchiveBox"
2020-10-31 20:08:41 +13:00
PROJECT_URLS = {
"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",
}
ROOT_DIR = Path(__file__).parent.resolve()
PACKAGE_DIR = ROOT_DIR / PKG_NAME
README = (PACKAGE_DIR / "README.md").read_text(encoding='utf-8', errors='ignore')
2020-10-31 20:08:41 +13:00
VERSION = json.loads((PACKAGE_DIR / "package.json").read_text().strip())['version']
2020-08-19 09:12:49 +12:00
# To see when setup.py gets called (uncomment for debugging):
# import sys
2020-10-31 20:08:41 +13:00
# print(PACKAGE_DIR, f" (v{VERSION})")
# print('>', sys.executable, *sys.argv)
2019-03-28 04:40:00 +13:00
setuptools.setup(
2020-06-26 13:30:29 +12:00
name=PKG_NAME,
version=VERSION,
2020-10-31 20:08:41 +13:00
license=LICENSE,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
2019-05-03 07:39:55 +12:00
long_description=README,
2019-03-28 04:40:00 +13:00
long_description_content_type="text/markdown",
2020-06-26 13:30:29 +12:00
url=REPO_URL,
2020-10-31 20:08:41 +13:00
project_urls=PROJECT_URLS,
2020-06-26 13:30:29 +12:00
python_requires=">=3.7",
setup_requires=[
"wheel",
],
install_requires=[
# only add things here that have corresponding apt python3-packages available
# anything added here also needs to be added to our package dependencies in
# stdeb.cfg (apt), archivebox.rb (brew), Dockerfile, etc.
# if there is no apt python3-package equivalent, then vendor it instead in
# ./archivebox/vendor/
2020-07-28 15:34:35 +12:00
"requests==2.24.0",
"atomicwrites==1.4.0",
2020-06-26 09:46:11 +12:00
"mypy-extensions==0.4.3",
"django==3.1.3",
2020-07-28 15:34:35 +12:00
"django-extensions==3.0.3",
"dateparser",
2020-06-26 13:30:29 +12:00
"ipython",
"youtube-dl",
"python-crontab==2.5.1",
2020-08-18 17:59:04 +12:00
"croniter==0.3.34",
2020-07-23 03:34:57 +12:00
"w3lib==1.22.0",
],
2020-06-26 13:30:29 +12:00
extras_require={
'dev': [
"setuptools",
"twine",
2021-01-09 02:24:05 +13:00
"wheel",
2020-06-26 13:30:29 +12:00
"flake8",
"ipdb",
"mypy",
"django-stubs",
"sphinx",
"sphinx-rtd-theme",
"recommonmark",
2020-07-04 06:13:59 +12:00
"pytest",
"bottle",
"stdeb",
2020-06-26 13:30:29 +12:00
],
},
2020-10-31 20:08:41 +13:00
packages=[PKG_NAME],
2020-08-19 09:12:49 +12:00
include_package_data=True, # see MANIFEST.in
entry_points={
2020-06-26 13:30:29 +12:00
"console_scripts": [
f"{PKG_NAME} = {PKG_NAME}.cli:main",
],
},
2019-03-28 04:40:00 +13:00
classifiers=[
2020-06-26 13:30:29 +12: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 :: Application",
"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-28 04:40:00 +13:00
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
2020-06-26 13:30:29 +12:00
"Framework :: Django",
"Typing :: Typed",
2019-03-28 04:40:00 +13:00
],
)