From ee003b6b6563ea5066a4559121f499c3c08d7fdd Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Wed, 3 Aug 2016 01:50:45 +0200 Subject: [PATCH] Add a github version badge --- README.rst | 7 +++++-- setup.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index e134387..150def2 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ CAS Server ########## -|travis| |version| |lisence| |codacy| |coverage| |doc| +|travis| |coverage| |lisence| |github_version| |pypi_version| |codacy| |doc| CAS Server is a Django application implementing the `CAS Protocol 3.0 Specification `_. @@ -604,9 +604,12 @@ You could for example do as bellow : .. |travis| image:: https://badges.genua.fr/travis/nitmir/django-cas-server/master.svg :target: https://travis-ci.org/nitmir/django-cas-server -.. |version| image:: https://badges.genua.fr/pypi/v/django-cas-server.svg +.. |pypi_version| image:: https://badges.genua.fr/pypi/v/django-cas-server.svg :target: https://pypi.python.org/pypi/django-cas-server +.. |github_version| image:: https://badges.genua.fr/github/tag/nitmir/django-cas-server.svg?label=github + :target: https://github.com/nitmir/django-cas-server/releases/latest + .. |lisence| image:: https://badges.genua.fr/pypi/l/django-cas-server.svg :target: https://www.gnu.org/licenses/gpl-3.0.html diff --git a/setup.py b/setup.py index e33f30e..89c1a9c 100644 --- a/setup.py +++ b/setup.py @@ -62,7 +62,7 @@ if __name__ == '__main__': 'lxml >= 3.4', 'six >= 1' ], url="https://github.com/nitmir/django-cas-server", - download_url="https://github.com/nitmir/django-cas-server/releases", + download_url="https://github.com/nitmir/django-cas-server/releases/latest", zip_safe=False, setup_requires=['pytest-runner'], tests_require=['pytest', 'pytest-django', 'pytest-pythonpath', 'pytest-warnings', 'mock>=1'],