Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·88 lines (81 loc) · 2.78 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·88 lines (81 loc) · 2.78 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from os.path import join as pjoin
import re
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# get version from package itself
def get_version():
# version = None
# sys.path.insert(0, pjoin(os.getcwd()))
# from shellbot import __version__
# version = __version__
# sys.path.pop(0)
# return version
version = '0.0.0'
with open('shellbot/__init__.py') as f:
lines = f.read().splitlines()
for line in lines:
match = re.match(r"__version__ = '(.*?)'", line)
if match:
version = match.group(1)
break
return version
# get description from README.rst
def get_long_description():
description = ''
with open('README.rst') as stream:
description = stream.read()
return description
# get requirements from separate files
with open('requirements.txt') as f:
requirements = f.read().splitlines()
with open('requirements_test.txt') as f:
test_requirements = f.read().splitlines()
setup(
name='shellbot',
version=get_version(),
description="A bot that is also a responsive shell",
long_description=get_long_description(),
author="Bernard Paques",
author_email='bernard.paques@gmail.com',
url='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/bernard357/shellbot',
packages=['shellbot'],
package_dir={'shellbot': 'shellbot'},
include_package_data=True,
install_requires=requirements,
license='Apache License (2.0)',
zip_safe=False,
keywords='bot, shell',
classifiers=[
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 2 - Pre-Alpha',
'Environment :: No Input/Output (Daemon)',
'Framework :: Bottle',
'Framework :: Paste',
'Framework :: Sphinx',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Communications',
'Topic :: Communications :: Chat',
'Topic :: Communications :: Conferencing',
'Topic :: Communications :: Internet Phone',
'Topic :: Communications :: Telephony',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Shells',
],
test_suite='tests',
tests_require=test_requirements
)