-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
38 lines (34 loc) · 1.34 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
#! /usr/bin/env python
import re
import os
from setuptools import setup
REQUIRED_PACKAGES = [
# utilities
"requests==2.*", # widely used HTTP library
"ciso8601==2.2.*" # super-fast date parsing
]
with open('waybacknews/__init__.py', 'r', encoding='utf8') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
# add README.md to distribution
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md'), 'r', encoding='utf8') as f:
long_description = f.read()
setup(name='wayback-news-search',
maintainer='Rahul Bhargava',
maintainer_email='[email protected]',
version=version,
description='Wayback Machine news archive search api client',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://web.archive.org',
test_suite="waybacknews.test",
packages=['waybacknews'],
package_data={'': ['LICENSE']},
python_requires='>3.7',
install_requires=REQUIRED_PACKAGES,
extras_require={'dev': ['pytest', 'twine']},
project_urls={
'Bug Reports': 'https://github.com/mediacloud/wayback-news-search/issues',
'Source': 'https://github.com/mediacloud/wayback-news-search',
},
)