-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
51 lines (45 loc) · 1.54 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
from setuptools import setup, find_packages
packages = find_packages(exclude=['tests'])
requires = [
'betamax >= 0.3.2',
'requests-toolbelt >= 0.4.0',
]
try:
from betamax_matchers import __version__
except ImportError:
__version__ = ''
if not __version__:
raise RuntimeError('Cannot import version information')
def data_for(filename):
with open(filename) as fd:
content = fd.read()
return content
setup(
name="betamax-matchers",
version=__version__,
description="A VCR imitation for python-requests",
long_description="\n\n".join([data_for("README.rst"),
data_for("HISTORY.rst")]),
license=data_for('LICENSE'),
author="Ian Cordasco",
author_email="[email protected]",
url="https://github.com/sigmavirus24/betamax_matchers",
packages=packages,
package_data={'': ['LICENSE', 'AUTHORS.rst']},
include_package_data=True,
install_requires=requires,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
]
)