Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Added some QA stuff, updated README, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed May 23, 2014
1 parent 71cdf76 commit c68d4fa
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
omit =
*/tests*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pip-log.txt

# Unit test / coverage reports
.coverage
.cache
.tox
nosetests.xml

Expand Down
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: python
language: "python"
python:
- "2.6"
- "2.7"
Expand All @@ -7,4 +7,9 @@ python:
install:
- "pip install -r tests/requirements.txt"
- "pip install -e ."
script: "py.test"
script:
- "py.test tests"
after_success:
- "coveralls"
notifications:
email: false
16 changes: 11 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@
Tipi
====

.. image:: https://travis-ci.org/honzajavorek/tipi.png
:target: https://travis-ci.org/honzajavorek/tipi

Tipi is for typographic replacements in HTML.

Status: ACTIVE
--------------

Under active development and maintenance.

.. image:: https://travis-ci.org/honzajavorek/tipi.png?branch=master
:target: https://travis-ci.org/honzajavorek/tipi
.. image:: https://coveralls.io/repos/honzajavorek/tipi/badge.png?branch=master
:target: https://coveralls.io/r/honzajavorek/tipi?branch=master
.. image:: https://pypip.in/v/tipi/badge.png
:target: http://pypi.python.org/pypi/tipi/
.. image:: https://pypip.in/d/tipi/badge.png
:target: http://pypi.python.org/pypi/tipi/

Ideas behind this project
-------------------------

Expand All @@ -35,10 +41,10 @@ Usage of tipi is very straightforward:
.. code-block:: python
>>> from tipi import tipi
>>> html = '<p>"Zavolej mi na číslo <strong class="tel">765-876-888</strong>," řekla, a zmizela...</p>"'
>>> html = '<p>"Zavolej mi na číslo <strong class="tel">765-876-888</strong>," řekla, a zmizela...</p>'
>>> html = tipi(html, lang='cs')
>>> html
u'<p>\u201eZavolej mi na \u010d\xed\xadslo <strong class="tel">765\u2013876\u2013888</strong>,\u201c \u0159ekla, a\xa0zmizela\u2026</p>'
'<p>\u201eZavolej mi na \u010d\xed\xadslo <strong class="tel">765\u2013876\u2013888</strong>,\u201c \u0159ekla, a\xa0zmizela\u2026</p>'
>>> print html
<p>„Zavolej mi na čí­slo <strong class="tel">765876888</strong>,“ řekla, a zmizela…</p>
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
name=meta['title'],
version=meta['version'],
description='Typographic replacements in HTML',
long_description=open('README.rst').read(),
author=meta['author'],
author_email='mail@honzajavorek.cz',
url='https://github.com/honzajavorek/tipi',
Expand Down
3 changes: 3 additions & 0 deletions tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
addopts = -v --pep8 --cov tipi --cov-report term-missing
pep8ignore = E265
3 changes: 3 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
pytest
pytest-pep8
pytest-cov
coveralls

0 comments on commit c68d4fa

Please sign in to comment.