forked from bboe/nyantip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (43 loc) · 1.31 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
"""nyantip setup.py"""
import re
from codecs import open
from os import path
from setuptools import find_packages, setup
PACKAGE_NAME = "nyantip"
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, "README.md"), 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 = {
"gpg": ["python-gnupg == 0.4.7"],
"lint": [
"black",
"flake8",
"isort",
],
}
setup(
author="Bryce Boe",
author_email="[email protected]",
description="Nyancoin tip bot for Reddit.",
entry_points={"console_scripts": [f"{PACKAGE_NAME}={PACKAGE_NAME}:main"]},
extras_require=extras,
include_package_data=True,
install_requires=[
"Jinja2 ~= 3.0",
"PyYAML ~= 6.0",
"mysqlclient ~= 2.2",
"praw ~= 7.3",
"python-bitcoinrpc == 1.0", # Lock version incase someone does something malicous to this package.
"sqlalchemy ~= 1.4",
],
license="GPL",
long_description=README,
name=PACKAGE_NAME,
package_data={"": ["LICENSE"]},
packages=find_packages(),
project_urls={"Source Code": "https://github.com/bboe/nyantip"},
python_requires="~= 3.6",
version=VERSION,
)