2019-03-27 15:39:30 -04:00
|
|
|
import os
|
2019-03-27 11:40:00 -04:00
|
|
|
import setuptools
|
|
|
|
|
|
|
|
with open("README.md", "r") as fh:
|
|
|
|
long_description = fh.read()
|
|
|
|
|
2019-03-27 15:39:30 -04:00
|
|
|
|
|
|
|
script_dir = os.path.abspath(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
|
|
|
|
VERSION = open(os.path.join(script_dir, 'VERSION'), 'r').read().strip()
|
|
|
|
GIT_HEAD = open(os.path.join(script_dir, '.git', 'HEAD'), 'r').read().strip().split(': ')[1]
|
|
|
|
GIT_SHA = open(os.path.join(script_dir, '.git', GIT_HEAD), 'r').read().strip()[:9]
|
|
|
|
PYPI_VERSION = "{}+{}".format(VERSION, GIT_SHA)
|
|
|
|
|
|
|
|
with open(os.path.join(script_dir, 'archivebox', 'VERSION'), 'w+') as f:
|
|
|
|
f.write(PYPI_VERSION)
|
|
|
|
|
2019-03-27 11:40:00 -04:00
|
|
|
setuptools.setup(
|
|
|
|
name="archivebox",
|
2019-03-27 15:39:30 -04:00
|
|
|
version=PYPI_VERSION,
|
2019-03-27 11:40:00 -04:00
|
|
|
author="Nick Sweeting",
|
|
|
|
author_email="git@nicksweeting.com",
|
|
|
|
description="The self-hosted internet archive.",
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
url="https://github.com/pirate/ArchiveBox",
|
2019-03-27 15:39:30 -04:00
|
|
|
project_urls={
|
|
|
|
'Documentation': 'https://github.com/pirate/ArchiveBox/Wiki',
|
|
|
|
'Community': 'https://github.com/pirate/ArchiveBox/wiki/Web-Archiving-Community',
|
|
|
|
'Source': 'https://github.com/pirate/ArchiveBox',
|
|
|
|
'Bug Tracker': 'https://github.com/pirate/ArchiveBox/issues',
|
|
|
|
'Roadmap': 'https://github.com/pirate/ArchiveBox/wiki/Roadmap',
|
|
|
|
'Changelog': 'https://github.com/pirate/ArchiveBox/wiki/Changelog',
|
|
|
|
'Donations': 'https://github.com/pirate/ArchiveBox/wiki/Donations',
|
|
|
|
},
|
2019-03-27 11:40:00 -04:00
|
|
|
packages=setuptools.find_packages(),
|
2019-03-27 15:39:30 -04:00
|
|
|
python_requires='>=3.6',
|
|
|
|
install_requires=[
|
|
|
|
"base32-crockford==0.3.0",
|
2019-04-02 18:53:21 -04:00
|
|
|
"django==2.2",
|
2019-04-11 03:38:34 -04:00
|
|
|
"dataclasses==0.6",
|
2019-03-27 15:39:30 -04:00
|
|
|
],
|
|
|
|
entry_points={
|
|
|
|
'console_scripts': [
|
2019-04-02 18:53:21 -04:00
|
|
|
'archivebox = archivebox.__main__:main',
|
2019-03-27 15:39:30 -04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
package_data={
|
|
|
|
'archivebox': ['VERSION', 'templates/*', 'templates/static/*'],
|
|
|
|
},
|
2019-03-27 11:40:00 -04:00
|
|
|
classifiers=[
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
],
|
|
|
|
)
|