Skip to content

Commit

Permalink
Add badges to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Delgan committed Oct 10, 2017
1 parent 7454cae commit 7ced338
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

11 changes: 11 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
=======
loguru
=======

.. image:: https://img.shields.io/pypi/v/loguru.svg :target: https://pypi.python.org/pypi/loguru :alt: Pypi version
.. image:: https://img.shields.io/pypi/pyversions/loguru.svg :target: https://pypi.python.org/pypi/loguru/ :alt: Python versions
.. image:: https://img.shields.io/travis/Delgan/loguru.svg :target: https://travis-ci.org/Delgan/loguru :alt: Build status
.. image:: https://readthedocs.org/projects/loguru/badge/?version=latest :target: http://loguru.readthedocs.io/en/latest/?badge=latest :alt: Docs
.. image:: https://img.shields.io/coveralls/Delgan/delgan.svg :target: https://coveralls.io/github/Delgan/loguru :alt: Coverage
.. image:: https://img.shields.io/codacy/grade/4d97edb1bb734a0d9a684a700a84f555.svg :target: https://www.codacy.com/app/delgan-py/loguru/dashboard :alt: Code quality
.. image:: https://img.shields.io/github/license/delgan/loguru.svg :target: https://github.com/Delgan/loguru/blob/master/LICENSE :alt: License
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

18 changes: 13 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
from distutils.core import setup

with open('loguru/__init__.py', 'r') as file:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
file.read(), re.MULTILINE).group(1)

with open('README.rst', 'rb') as file:
readme = file.read().decode('utf-8')

setup(
name = 'loguru',
packages = ['loguru'],
version = '0.0.1',
version = version,
description = 'Logging as an automatism',
long_description = readme,
author = 'Delgan',
author_email = 'delgan.py@gmail.com',
url = 'https://github.com/Delgan/loguru',
download_url = 'https://github.com/Delgan/loguru/archive/0.0.1.tar.gz',
keywords = ['logging'],
download_url = 'https://github.com/Delgan/loguru/archive/{}.tar.gz'.format(version),
keywords = ['loguru', 'logging', 'logger', 'log'],
license="MIT license",
classifiers = [],
install_requires = [
'ansimarkup>=1.3.0',
'better_exceptions_fork>=0.1.8.post0',
'better_exceptions_fork>=0.1.8.post1',
'pendulum>=1.3.0',
],
)

0 comments on commit 7ced338

Please sign in to comment.