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
|
# -*- python -*-
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Jan Dittberner
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
long_description = ""
with open('README.rst', 'r') as README:
long_description += README.read()
long_description += """
License
=======
"""
with open('LICENSE', 'r') as LICENSE:
long_description += LICENSE.read()
long_description += """
Changes
=======
"""
with open('ChangeLog.rst') as CHANGES:
long_description += CHANGES.read()
setup(
name="smstrade",
url="https://gitorious.org/python-smstrade",
description=(
"a Python library and command line tool to send SMS via the smstrade"
" service."),
long_description=long_description,
version='0.2.4',
requires=['requests', 'appdirs'],
author="Jan Dittberner",
author_email="jan@dittberner.info",
packages=find_packages(exclude=['tests']),
license="MIT",
entry_points={
'console_scripts': [
'smstrade_send = smstrade:send_sms',
'smstrade_balance = smstrade:account_balance',
],
},
tests_require=['pytest', 'httpretty'],
cmdclass = {'test': PyTest},
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Communications',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
)
|