forked from bisohns/search-engine-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (59 loc) · 2.04 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
import re
import setuptools
REQUIRED_PYTHON = (3, 5)
# Load requirements
REQUIREMENTS = 'requirements/main.txt'
CLI_REQUIREMENTS = 'requirements/cli.txt'
REQUIREMENTS = [line.strip('\n') for line in open(REQUIREMENTS).readlines()]
CLI_REQUIREMENTS = [line.strip('\n') for line in open(CLI_REQUIREMENTS).readlines()]
with open("README.md", "r", encoding="utf8") as fh:
LONG_DESCRIPTION = fh.read()
# Trying to load version directly from `search-engine-parser` module attempts
# to load __init__.py which will try to load other libraries not yet installed
with open("search_engine_parser/__init__.py", "rt", encoding="utf8") as f:
VERSION = re.search(r'__version__ = "(.*?)"', f.read(), re.M).group(1)
setuptools.setup(
name="search-engine-parser",
version=VERSION,
author='Domnan Diretnan, Mmadu Manasseh',
author_email="diretnandomnan@gmail.com",
description="scrapes search engine pages for query titles, descriptions and links",
url="https://github.com/bisoncorps/search-engine-parser",
project_urls={
"Documentation":"https://search-engine-parser.readthedocs.io/en/latest",
"Source": "https://github.com/bisoncorps/search-engine-parser",
},
packages=setuptools.find_packages(),
install_requires=REQUIREMENTS,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
license="MIT",
keywords='\
search-engine \
search \
parser \
google \
yahoo \
bing \
yandex \
stackoverflow \
github \
baidu ',
entry_points={'console_scripts': [
'pysearch=search_engine_parser.core.cli:runner'
]},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
package_data={
'': ['*.*'],
'requirements': ['*.*'],
},
include_package_data=True,
extras_require={
'cli': CLI_REQUIREMENTS
},
python_requires='>={}.{}'.format(*REQUIRED_PYTHON),
)