-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
45 lines (41 loc) · 1.37 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
import io
import re
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
# get version from package's __version__
__version__ = re.search(
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', # It excludes inline comment too
io.open('cartoonista/__init__.py', encoding='utf_8_sig').read()
).group(1)
setuptools.setup(
name="cartoonista",
version=__version__,
author="Robert Lieback",
author_email="[email protected]",
description="A library to get a random cartoon image url from ~20000 cartoons. "
"It also contains the scrapers for many cartoon websites.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Netzvamp/cartoonista",
project_urls={
"Documentation": "https://github.com/Netzvamp/cartoonista"
},
packages=["cartoonista"],
package_data={'cartoonista': ['cartoons.json']},
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Games/Entertainment"
],
extras_require={
'scraping': [
"requests",
"beautifulsoup4",
]
},
python_requires='>=3.6',
)