-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
47 lines (41 loc) · 1.33 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
"""deslackify setup.py."""
import re
from codecs import open
from os import path
from setuptools import setup
PACKAGE_NAME = "deslackify"
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, "__init__.py"), encoding="utf-8"
) as fp:
VERSION = re.search('__version__ = "([^"]+)"', fp.read()).group(1)
extras_require = {
"dev": ["pre-commit"],
"lint": ["black", "flake8"],
"test": ["pytest"],
}
extras_require["dev"] = sorted(set(sum(extras_require.values(), [])))
setup(
name=PACKAGE_NAME,
author="Bryce Boe",
author_email="[email protected]",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
],
description="A program to delete old slack messages.",
entry_points={"console_scripts": ["deslackify = deslackify:main"]},
extras_require=extras_require,
install_requires=["slacker >=0.12, <0.13"],
keywords="slack",
license="Simplified BSD License",
long_description=README,
long_description_content_type="text/markdown",
packages=[PACKAGE_NAME],
url="https://github.com/bboe/deslackify",
version=VERSION,
)