2015-07-18 10:29:49 +00:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
try:
|
|
|
|
from setuptools import setup
|
|
|
|
except ImportError:
|
|
|
|
from distutils.core import setup
|
|
|
|
|
2015-10-28 16:11:23 +00:00
|
|
|
import os
|
2015-07-18 10:29:49 +00:00
|
|
|
import libgrabsite
|
|
|
|
|
2015-10-28 16:11:23 +00:00
|
|
|
install_requires = [
|
|
|
|
"click>=4.1",
|
|
|
|
"wpull>=1.2.2",
|
|
|
|
"manhole>=1.0.0",
|
|
|
|
"lmdb>=0.86",
|
|
|
|
"autobahn>=0.10.4",
|
|
|
|
"aiohttp>=0.16.6",
|
|
|
|
"trollius>=2"
|
|
|
|
]
|
|
|
|
|
|
|
|
if 'GRAB_SITE_NO_CCHARDET' not in os.environ:
|
|
|
|
install_requires.append("cchardet>=0.3.5")
|
|
|
|
|
2015-07-18 10:29:49 +00:00
|
|
|
setup(
|
|
|
|
name="grab-site",
|
|
|
|
version=libgrabsite.__version__,
|
|
|
|
description="The archivist's web crawler: WARC output, dashboard for all crawls, dynamic ignore patterns",
|
|
|
|
url="https://github.com/ludios/grab-site",
|
|
|
|
author="Ivan Kozik",
|
|
|
|
author_email="ivan@ludios.org",
|
|
|
|
classifiers=[
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Development Status :: 3 - Alpha",
|
|
|
|
"Intended Audience :: End Users/Desktop",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Topic :: Internet :: WWW/HTTP",
|
|
|
|
],
|
2015-07-28 11:26:10 +00:00
|
|
|
scripts=["grab-site", "gs-server", "gs-dump-urls"],
|
2015-07-18 10:29:49 +00:00
|
|
|
packages=["libgrabsite"],
|
2015-07-29 08:36:36 +00:00
|
|
|
package_data={"libgrabsite": ["*.html", "ignore_sets/*"]},
|
2015-10-28 16:11:23 +00:00
|
|
|
install_requires=install_requires
|
2015-07-18 10:29:49 +00:00
|
|
|
)
|