-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
executable file
·65 lines (59 loc) · 1.72 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env python
import re
from setuptools import setup, find_packages
# Get the version from the main script
version = re.search(
'^__version__\s*=\s*"(.*)"',
open("wayback_machine_archiver/archiver.py").read(),
re.M,
).group(1)
# Try to import pypandoc to convert the readme, otherwise ignore it
try:
import pypandoc
long_description = pypandoc.convert_file("README.md", "rst", format="md")
except ImportError:
long_description = ""
# Configure the package
setup(
name="wayback-machine-archiver",
version=version,
description="A Python script to submit web pages to the Wayback Machine for archiving.",
long_description=long_description,
author="Alexander Gude",
author_email="alex.public.account@gmail.com",
url="https://github.com/agude/wayback-machine-archiver",
license="MIT",
platforms=["any"],
packages=["wayback_machine_archiver"],
entry_points={
"console_scripts": [
"archiver=wayback_machine_archiver.archiver:main",
],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Utilities",
],
keywords=[
"Internet Archive",
"Wayback Machine",
],
install_requires=[
"requests",
],
setup_requires=[
"pypandoc",
"pytest-runner",
],
tests_require=[
"pytest",
"requests-mock",
],
python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4",
)