forked from praw-dev/praw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
71 lines (66 loc) · 2.16 KB
/
Copy pathsetup.py
File metadata and controls
71 lines (66 loc) · 2.16 KB
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
65
66
67
68
69
70
71
"""praw setup.py"""
import re
from codecs import open
from os import path
from setuptools import find_packages, setup
PACKAGE_NAME = "praw"
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, "README.rst"), encoding="utf-8") as fp:
README = fp.read()
with open(path.join(HERE, PACKAGE_NAME, "const.py"), encoding="utf-8") as fp:
VERSION = re.search('__version__ = "([^"]+)"', fp.read()).group(1)
extras = {
"ci": ["coveralls"],
"dev": ["pre-commit"],
"lint": ["black", "flake8", "pydocstyle", "sphinx", "sphinx_rtd_theme"],
"test": [
"betamax >=0.8, <0.9",
"betamax-matchers >=0.3.0, <0.5",
"betamax-serializers >=0.2, <0.3",
"mock >=0.8",
"pytest >=2.7.3",
],
}
extras["dev"] += extras["lint"] + extras["test"]
setup(
name=PACKAGE_NAME,
author="Bryce Boe",
author_email="bbzbryce@gmail.com",
python_requires=">=3.5",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Utilities",
],
description=(
"PRAW, an acronym for `Python Reddit API Wrapper`, is a "
"python package that allows for simple access to "
"reddit's API."
),
extras_require=extras,
install_requires=[
"prawcore >=1.0.1, <2.0",
"update_checker >=0.16",
"websocket-client >=0.54.0",
],
keywords="reddit api wrapper",
license="Simplified BSD License",
long_description=README,
package_data={
"": ["LICENSE.txt"],
PACKAGE_NAME: ["*.ini", "images/*.jpg"],
},
packages=find_packages(exclude=["tests", "tests.*", "tools", "tools.*"]),
url="https://praw.readthedocs.org/",
version=VERSION,
)