diff --git a/README.rst b/README.rst index a5628f8..7704b1f 100644 --- a/README.rst +++ b/README.rst @@ -1,3 +1,5 @@ +|Build Status| |Coverage Status| |PyPI Version| |Wheel Status| + Simple RBAC =========== @@ -201,3 +203,17 @@ allowed or not, you could use the checking like a boolean value. is_allowed = bool(context.check_permission("view", "article")) .. _hashable: http://docs.python.org/glossary.html#term-hashable + + +.. |Build Status| image:: https://img.shields.io/travis/tonyseek/simple-rbac.svg?style=flat + :target: https://travis-ci.org/tonyseek/simple-rbac + :alt: Build Status +.. |Coverage Status| image:: https://img.shields.io/coveralls/tonyseek/simple-rbac.svg?style=flat + :target: https://coveralls.io/r/tonyseek/simple-rbac + :alt: Coverage Status +.. |Wheel Status| image:: https://img.shields.io/pypi/wheel/simple-rbac.svg?style=flat + :target: https://warehouse.python.org/project/simple-rbac + :alt: Wheel Status +.. |PyPI Version| image:: https://img.shields.io/pypi/v/simple-rbac.svg?style=flat + :target: https://pypi.python.org/pypi/simple-rbac + :alt: PyPI Version diff --git a/setup.py b/setup.py index f7626a4..688dac3 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,8 @@ -#!/usr/bin/env python -# -*- coding:utf-8 -*- - from setuptools import setup -with open('README.rst', 'r') as readme: - long_description = readme.read() +with open('README.rst') as readme: + next(readme) + long_description = ''.join(readme).strip() setup( name='simple-rbac', @@ -18,7 +16,7 @@ license='MIT License', packages=['rbac'], zip_safe=False, - platforms='any', + platforms=['Any'], classifiers=[ 'Programming Language :: Python', 'Programming Language :: Python :: 2',