-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
56 lines (49 loc) · 1.84 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
52
53
54
55
56
import os,sys,pypandoc
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args="./tests/test_pushysdk.py"
def run_tests(self):
import shlex
import pytest
errno=pytest.main(shlex.split(self.pytest_args))
sys.exit(errno)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def makeLongDescription():
return pypandoc.convert_file('README.md', 'rst')
try: long_description=makeLongDescription()
except OSError:
from pypandoc.pandoc_download import download_pandoc
download_pandoc()
long_description=makeLongDescription()
setup(
name="PushySDK",
version="0.1.5",
author="Rob Kent",
author_email="[email protected]",
description="A very simple Python client for the Pushy notification service API.",
license="MIT",
keywords="Pushy Notification API",
url="https://github.com/jazzycamel/pushy",
packages=find_packages(exclude=['docs','tests']),
install_requires=['requests','six'],
tests_require=['pytest','pytest-cov'],
cmdclass={'test': PyTest},
long_description=long_description,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"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",
"License :: OSI Approved :: MIT License",
]
)