Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (52 sloc) 1.56 KB
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
requires = [
'vcrpy>=1.1.0',
]
with open('README.rst') as f:
readme = f.read()
with open('HISTORY.rst') as f:
history = f.read()
# This hack is from http://stackoverflow.com/a/7071358/1231454;
# the version is kept in a seperate file and gets parsed - this
# way, setup.py doesn't have to import the package.
VERSIONFILE = 'detecthttp/_version.py'
version_line = open(VERSIONFILE).read()
version_re = r"^__version__ = ['\"]([^'\"]*)['\"]"
match = re.search(version_re, version_line, re.M)
if match:
version = match.group(1)
else:
raise RuntimeError("Could not find version in '%s'" % VERSIONFILE)
setup(
name='nose-detecthttp',
version=version,
description='A nose plugin to detect tests making http calls.',
long_description=readme + '\n\n' + history,
author='Simon Weber',
author_email='simon@venmo.com',
url='https://github.com/venmo/nose-detecthttp',
packages=['detecthttp'],
entry_points={
'nose.plugins.0.10': [
'detecthttp = detecthttp:DetectHTTP',
],
'pytest11': [
'detecthttp = detecthttp.pytest',
],
},
include_package_data=True,
install_requires=requires,
license='MIT',
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
],
)
You can’t perform that action at this time.