<commit_before># This tests the unified codebase (py26-py32) of Pelican.
# depends on some external libraries that aren't released yet.
#
# To run Pelican, you will already have checked out and installed them.
#
# Now we must tell tox about this package, otherwise tox would load the old
# libraries from PyPi.
# 
# Run tox from the libraries source tree. It will save its package in
# the distshare directory from where the tests here will pick it up.
#
# Do that for
# https://github.com/dmdm/smartypants.git
#
# and typogrify:
# https://github.com/dmdm/typogrify/tree/py3k
#
# and webassets:
# https://github.com/dmdm/webassets/tree/py3k
#
#
# CAVEAT:
# -------
#
# 1/
# Please be aware that my ports of typogrify and webassets are just 2to3'd.
# They are not backwards compatible with Python 2.
#
# 2/
# Webassets still has unresolved issues, so I deactivated it for Py32 tests.


[tox]
envlist = py27,py32

[testenv]
commands =
    unit2 discover []
    nosetests -s tests
deps =

[testenv:py27]
deps =
    nose
    unittest2
    mock
    Markdown
    BeautifulSoup4
    feedgenerator
    typogrify
    webassets

[testenv:py32]
deps =
    nose
    unittest2py3k
    mock
    Markdown
    BeautifulSoup4
    feedgenerator
#    {distshare}/smartypants-1.6.0.3.zip
#    {distshare}/typogrify-2.0.0.zip
#    {distshare}/webassets-0.8.dev.zip<commit_msg>tox.ini: Test on Python 3.3 as well as 2.7 and 3.2<commit_after># This tests the unified codebase (py26-py32) of Pelican.
# depends on some external libraries that aren't released yet.
#
# To run Pelican, you will already have checked out and installed them.
#
# Now we must tell tox about this package, otherwise tox would load the old
# libraries from PyPi.
# 
# Run tox from the libraries source tree. It will save its package in
# the distshare directory from where the tests here will pick it up.
#
# Do that for
# https://github.com/dmdm/smartypants.git
#
# and typogrify:
# https://github.com/dmdm/typogrify/tree/py3k
#
# and webassets:
# https://github.com/dmdm/webassets/tree/py3k
#
#
# CAVEAT:
# -------
#
# 1/
# Please be aware that my ports of typogrify and webassets are just 2to3'd.
# They are not backwards compatible with Python 2.
#
# 2/
# Webassets still has unresolved issues, so I deactivated it for Py32 tests.


[tox]
envlist = py27,py32,py33

[testenv]
commands =
    unit2 discover []
    nosetests -s tests
deps =

[testenv:py27]
deps =
    nose
    unittest2
    mock
    Markdown
    BeautifulSoup4
    feedgenerator
    typogrify
    webassets

[testenv:py32]
deps =
    nose
    unittest2py3k
    mock
    Markdown
    BeautifulSoup4
    feedgenerator
#    {distshare}/smartypants-1.6.0.3.zip
#    {distshare}/typogrify-2.0.0.zip
#    {distshare}/webassets-0.8.dev.zip

[testenv:py33]
deps =
    nose
    unittest2py3k
    mock
    Markdown
    BeautifulSoup4
    feedgenerator
#    {distshare}/smartypants-1.6.0.3.zip
#    {distshare}/typogrify-2.0.0.zip
#    {distshare}/webassets-0.8.dev.zip
{'fraction_non_alphanumeric': 0.09838817998656817, 'fraction_numerical': 0.0315648085963734, 'mean_word_length': 3.103305785123967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '428248', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1047, 'n_words': 320}