brozzler/setup.py

102 lines
3.5 KiB
Python
Raw Normal View History

#!/usr/bin/env python
2024-02-08 11:55:23 -08:00
"""
setup.py - brozzler setup script
2024-02-05 13:00:14 -08:00
Copyright (C) 2014-2024 Internet Archive
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
2024-02-08 11:55:23 -08:00
"""
2016-04-25 20:02:11 +00:00
import setuptools
2016-07-29 12:56:10 -05:00
import os
2024-02-08 11:55:23 -08:00
2016-07-29 12:56:10 -05:00
def find_package_data(package):
pkg_data = []
2024-02-08 11:55:23 -08:00
depth = len(package.split("."))
path = os.path.join(*package.split("."))
2016-07-29 12:56:10 -05:00
for dirpath, dirnames, filenames in os.walk(path):
2024-02-08 11:55:23 -08:00
if not os.path.exists(os.path.join(dirpath, "__init__.py")):
2016-07-29 12:56:10 -05:00
relpath = os.path.join(*dirpath.split(os.sep)[depth:])
pkg_data.extend(os.path.join(relpath, f) for f in filenames)
return pkg_data
2014-01-21 06:41:46 +00:00
2024-02-08 11:55:23 -08:00
setuptools.setup(
2024-02-08 11:55:23 -08:00
name="brozzler",
2024-12-12 14:01:21 -08:00
version="1.6.5",
2024-02-08 11:55:23 -08:00
description="Distributed web crawling with browsers",
url="https://github.com/internetarchive/brozzler",
author="Noah Levitt",
author_email="nlevitt@archive.org",
long_description=open("README.rst", mode="rb").read().decode("UTF-8"),
license="Apache License 2.0",
packages=["brozzler", "brozzler.dashboard"],
package_data={
"brozzler": ["js-templates/*.js*", "behaviors.yaml", "job_schema.yaml"],
"brozzler.dashboard": find_package_data("brozzler.dashboard"),
},
entry_points={
"console_scripts": [
"brozzle-page=brozzler.cli:brozzle_page",
"brozzler-new-job=brozzler.cli:brozzler_new_job",
"brozzler-new-site=brozzler.cli:brozzler_new_site",
"brozzler-worker=brozzler.cli:brozzler_worker",
"brozzler-ensure-tables=brozzler.cli:brozzler_ensure_tables",
"brozzler-list-captures=brozzler.cli:brozzler_list_captures",
"brozzler-list-jobs=brozzler.cli:brozzler_list_jobs",
"brozzler-list-sites=brozzler.cli:brozzler_list_sites",
"brozzler-list-pages=brozzler.cli:brozzler_list_pages",
"brozzler-stop-crawl=brozzler.cli:brozzler_stop_crawl",
"brozzler-purge=brozzler.cli:brozzler_purge",
"brozzler-dashboard=brozzler.dashboard:main",
"brozzler-easy=brozzler.easy:main",
"brozzler-wayback=brozzler.pywb:main",
],
},
install_requires=[
"PyYAML>=5.1",
"reppy==0.3.4",
"requests>=2.21",
"websocket-client==1.8.0",
2024-02-08 11:55:23 -08:00
"pillow>=5.2.0",
"urlcanon>=0.1.dev23",
"cerberus>=1.0.1",
"jinja2>=2.10",
"cryptography>=2.3",
"python-magic>=0.4.15",
2024-09-11 16:36:08 -07:00
"prometheus-client>=0.20.0",
2024-02-08 11:55:23 -08:00
],
extras_require={
"yt-dlp": ["yt-dlp>=2024.7.25"],
2024-02-08 11:55:23 -08:00
"dashboard": ["flask>=1.0", "gunicorn>=19.8.1"],
"easy": [
"warcprox>=2.4.31",
"pywb>=0.33.2,<2",
"flask>=1.0",
"gunicorn>=19.8.1",
2024-11-02 09:35:03 -07:00
"rethinkdb==2.4.9",
"doublethink==0.4.9",
],
2024-02-08 11:55:23 -08:00
},
zip_safe=False,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
2024-11-02 09:35:03 -07:00
"Programming Language :: Python :: 3.8",
2024-02-08 11:55:23 -08:00
"Topic :: Internet :: WWW/HTTP",
"Topic :: System :: Archiving",
],
)