This repository has been archived by the owner on Oct 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
setup.py
executable file
·59 lines (48 loc) · 1.55 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
56
57
58
59
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import codecs
import os
import re
from setuptools import find_packages, setup
# Get the version. Stolen from Cory Benfield.
version_regex = r'__version__ = ["\']([^"\']*)["\']'
with open('backup_slack.py',) as f:
text = f.read()
match = re.search(version_regex, text)
if match:
version = match.group(1)
else:
raise RuntimeError("No version number found!")
def local_file(name):
return os.path.relpath(os.path.join(os.path.dirname(__file__), name))
README = local_file('README.rst')
long_description = codecs.open(README, encoding='utf-8').read()
setup(
name='backup_slack',
version=version,
description='A script for backing up message history from Slack',
long_description=long_description,
url='https://github.com/alexwlchan/backup-slack',
author='Alex Chan',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Other Audience',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
install_requires=[
'slacker>=0.9.30, <1',
],
entry_points={
'console_scripts': [
'backup_slack=backup_slack:main',
],
},
)