Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Add badges to README
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyseek committed Dec 31, 2016
1 parent c0c7f94 commit 048d417
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
16 changes: 16 additions & 0 deletions README.rst
@@ -1,3 +1,5 @@
|Build Status| |Coverage Status| |PyPI Version| |Wheel Status|

Simple RBAC
===========

Expand Down Expand Up @@ -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
10 changes: 4 additions & 6 deletions 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',
Expand All @@ -18,7 +16,7 @@
license='MIT License',
packages=['rbac'],
zip_safe=False,
platforms='any',
platforms=['Any'],
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
Expand Down

0 comments on commit 048d417

Please sign in to comment.