Fix PyPI badge
[bluepill.git] / setup.py
blob1b4050672a2cb18e092958ebdcf0f192e7bf4f35
1 #!/usr/bin/env python
3 from os import path
4 from sys import exit
5 from setuptools import setup, find_packages
7 try:
8 import bluepill
9 except ImportError:
10 print('Cannot access the BluePill module, is the source tree broken?')
11 exit(1)
13 here = path.abspath(path.dirname(__file__))
14 try:
15 with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
16 long_description = f.read()
17 except TypeError:
18 # Python 2.x compat.
19 import codecs
20 with codecs.open(path.join(here, 'README.rst'), encoding='utf-8') as f:
21 long_description = f.read()
23 setup(
24 name='bluepill',
25 version=bluepill.__version__,
26 description='A mock server for testing Matrix SDKs.',
27 long_description=long_description,
28 url='https://github.com/SShrike/bluepill',
29 author='Severen Redwood',
30 author_email='severen@shrike.me',
31 license='Apache-2.0',
32 classifiers=[
33 'Development Status :: 1 - Planning',
34 'Intended Audience :: Developers',
35 'License :: OSI Approved :: Apache Software License',
36 'Programming Language :: Python :: 2',
37 'Programming Language :: Python :: 2.7',
38 'Programming Language :: Python :: 3',
39 'Programming Language :: Python :: 3.4',
40 'Programming Language :: Python :: 3.5',
41 'Topic :: Utilities',
43 keywords='matrix',
44 packages=find_packages(exclude=['tests']),
45 install_requires=['flask', 'flask-restful', 'webargs', 'marshmallow'],
46 extras_require={
47 # Standard development environment, not required for
48 # testing/development.
49 'dev': ['twine', 'jedi', 'ipython'],
50 # Standard testing dependencies, needed for testing/development.
51 'test': [
52 'tox',
53 'pytest',
54 'pytest-flask',
55 'flake8',
56 'check-manifest',
58 # CI server environment, needed for code coverage, etc.
59 'ci': ['codecov', 'coverage', 'pytest-cov'],
62 entry_points={'console_scripts': [
63 'bluepill = bluepill.main:main'