mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Port pelican to python 3.
Stays compatible with 2.x series, thanks to an unified codebase.
This commit is contained in:
parent
9847394e12
commit
71995d5e1b
43 changed files with 495 additions and 287 deletions
65
tox.ini
65
tox.ini
|
|
@ -1,15 +1,74 @@
|
|||
# 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 = py26,py27
|
||||
envlist = py26,py27,py32
|
||||
|
||||
[testenv]
|
||||
commands =
|
||||
nosetests -s tests
|
||||
unit2 discover []
|
||||
nosetests -s tests
|
||||
deps =
|
||||
|
||||
[testenv:py26]
|
||||
deps =
|
||||
nose
|
||||
unittest2
|
||||
mock
|
||||
Markdown
|
||||
BeautifulSoup
|
||||
BeautifulSoup4
|
||||
feedgenerator
|
||||
typogrify
|
||||
webassets
|
||||
|
||||
[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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue