-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (52 loc) · 1.8 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
from setuptools import setup, find_namespace_packages # type: ignore
from glob import glob
from os.path import basename
from os.path import splitext
VERSION = {}
with open("./src/__init__.py") as fp:
# pylint: disable=W0122
exec(fp.read(), VERSION)
setup(
name="redscrap",
author="Martim Lima",
author_email="martim.d.lima@protonmail.com",
url='https://github.com/martimdLima',
description='A Reddit scraper that can scrape a subreddit or a user for images and download them',
long_description='A Reddit scraper that can scrape a subreddit, multiple subreddits or a user profile for images '
'and download them to a folder provided by the user or to a default folder '
'($HOME/Documents/output). A json file with the detailed information of the threads and comments '
'scraped is algo generated while the scraping process occurs.',
version=VERSION.get("__version__", "0.0.4"),
package_dir={"": "src"},
packages=find_namespace_packages(where="src", exclude=["tests"]),
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
keywords='development, setup, setuptools',
python_requires='>=3.7, <4',
include_package_data=True,
install_requires=[
"click",
"beautifulsoup4",
"loguru",
"requests",
"httpx",
"aiohttp",
"validators",
"DateTime",
"colorama",
"tqdm",
"Pillow",
"pytest",
"pytest-cov",
"pytest-mock",
"setuptools",
],
entry_points='''
[console_scripts]
redscrap=core.main:main
''',
classifiers=[
"Development Status :: 1 - Planning",
"Programming Language :: Python :: 3.0",
"Topic :: Utilities",
],
)