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
|
#!/usr/bin/env python
from setuptools import setup, find_packages, Command
import versioneer
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable,
'runtests.py',
'tests/',
'--cov', 'aiomeasures',
'--cov-report', 'html'])
raise SystemExit(errno)
cmds = versioneer.get_cmdclass()
cmds.update({'test': PyTest})
setup(
name='aiomeasures',
version=versioneer.get_version(),
description="Collect and send metrics to StatsD",
author="Xavier Barbosa",
author_email='clint.northwood@gmail.com',
url='http://lab.errorist.xyz/abc/',
packages=find_packages(),
keywords=[''],
install_requires=[],
extras_require={
':python_version=="3.3"': ['asyncio', 'singledispatch'],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules"
],
license='MIT',
cmdclass=cmds
)
|