-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
61 lines (52 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
import pathlib
import re
from setuptools import find_packages, setup
WORK_DIR = pathlib.Path(__file__).parent
def get_discription():
"""
Read full description from `README.md`
"""
with open("README.md", "r") as long_description:
return long_description.read()
def get_version():
"""
Read version
"""
txt = (WORK_DIR / "scraper" / "__init__.py").read_text("utf-8")
try:
return re.findall(
r"^__version__\s+=\s+['|\"]([^']+)['|\"]\r?$", txt, re.M
)[0]
except IndexError:
raise RuntimeError("Unable to determine version.")
setup(
name="fb-comment-scraper",
version=get_version(),
author="Wendirad Demelash",
author_email="[email protected]",
description="Facebook post comment scraper",
long_description=get_discription(),
long_description_content_type="text/markdown",
packages=find_packages(exclude=("tests", "tests.*", "examples.*", "docs")),
url="https://github.com/rebunitech/facebook-comment-scraper",
license="Apache License 2.0",
python_requires=">=3.10",
install_requires=["selenium==3.141.0"],
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
],
entry_points={
"console_scripts": [
"fb-comment-scraper=scraper.main:main",
],
},
)