Source: pelican Version: 3.5.0-1 Severity: wishlist Tags: patch Control: block -1 by 787897
Hi, I noticed that pelican still relies on Python 2 even though upstream supports Python 3. The attached patch rectifies the situation. The patch can only be applied once feedgenerator offers a Python 3 module (bug #787897). While changing the dh --buildsystem to pybuild, I tried getting the test suite to work but ran into several problems. Thus I deactivated running the test suite for now. Thanks! cheers, josch
diff -Nru pelican-3.5.0/debian/changelog pelican-3.5.0/debian/changelog --- pelican-3.5.0/debian/changelog 2014-11-06 08:56:55.000000000 +0100 +++ pelican-3.5.0/debian/changelog 2015-06-06 08:12:57.000000000 +0200 @@ -1,3 +1,10 @@ +pelican (3.5.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * build a python3 module as well + + -- Johannes Schauer <[email protected]> Sat, 06 Jun 2015 08:12:43 +0200 + pelican (3.5.0-1) unstable; urgency=medium * New upstream release. diff -Nru pelican-3.5.0/debian/control pelican-3.5.0/debian/control --- pelican-3.5.0/debian/control 2014-11-06 08:57:01.000000000 +0100 +++ pelican-3.5.0/debian/control 2015-06-06 08:38:25.000000000 +0200 @@ -5,8 +5,26 @@ Uploaders: Ondřej Surý <[email protected]>, Vincent Cheng <[email protected]> Build-Depends: debhelper (>= 7.4.3), + python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), - python-setuptools (>= 0.6b3) + python-dateutil, + python-unidecode, + python-blinker, + python-tz, + python-docutils, + python-pygments, + python-jinja2, + python-feedgenerator, + python3-all, + python3-setuptools, + python3-dateutil, + python3-unidecode, + python3-blinker, + python3-tz, + python3-docutils, + python3-pygments, + python3-jinja2, + python3-feedgenerator, Standards-Version: 3.9.6 X-Python-Version: >= 2.7 Homepage: http://getpelican.com/ @@ -24,7 +42,26 @@ Suggests: pandoc, python-bs4 -Description: blog aware, static website generator +Description: blog aware, static website generator (Python 2 version) + Pelican is a static site generator, written in Python. It allows you + to write your weblog entries directly with your editor of choice in + reStructuredText or Markdown, and generates completely static output + that is easy to host anywhere. Pelican includes a simple CLI tool to + (re)generate the weblog and it is easy to interface with DVCSes and web + hooks. + +Package: python3-pelican +Architecture: all +Depends: + python3-argparse | python (>= 2.7), + python3-markdown, + python3-pkg-resources, + ${misc:Depends}, + ${python3:Depends} +Suggests: + pandoc, + python-bs4 +Description: blog aware, static website generator (Python 3 version) Pelican is a static site generator, written in Python. It allows you to write your weblog entries directly with your editor of choice in reStructuredText or Markdown, and generates completely static output diff -Nru pelican-3.5.0/debian/pydist-overrides pelican-3.5.0/debian/pydist-overrides --- pelican-3.5.0/debian/pydist-overrides 2014-08-04 10:37:42.000000000 +0200 +++ pelican-3.5.0/debian/pydist-overrides 1970-01-01 01:00:00.000000000 +0100 @@ -1,7 +0,0 @@ -feedgenerator python-feedgenerator -jinja2 python-jinja2 -pygments python-pygments -docutils python-docutils -blinker python-blinker -unidecode python-unidecode -six python-six diff -Nru pelican-3.5.0/debian/python3-pelican.install pelican-3.5.0/debian/python3-pelican.install --- pelican-3.5.0/debian/python3-pelican.install 1970-01-01 01:00:00.000000000 +0100 +++ pelican-3.5.0/debian/python3-pelican.install 2015-06-06 08:12:39.000000000 +0200 @@ -0,0 +1 @@ +usr/lib/python3* diff -Nru pelican-3.5.0/debian/python-pelican.install pelican-3.5.0/debian/python-pelican.install --- pelican-3.5.0/debian/python-pelican.install 1970-01-01 01:00:00.000000000 +0100 +++ pelican-3.5.0/debian/python-pelican.install 2015-06-06 08:12:32.000000000 +0200 @@ -0,0 +1 @@ +usr/lib/python2* diff -Nru pelican-3.5.0/debian/rules pelican-3.5.0/debian/rules --- pelican-3.5.0/debian/rules 2014-08-04 10:37:42.000000000 +0200 +++ pelican-3.5.0/debian/rules 2015-06-06 08:38:08.000000000 +0200 @@ -1,12 +1,18 @@ #!/usr/bin/make -f %: - dh $@ --with python2 --buildsystem=python_distutils + dh $@ --with python2,python3 --buildsystem=pybuild override_dh_clean: dh_clean rm -f pelican.egg-info/SOURCES.txt pelican.egg-info/requires.txt +# the test suite does not run out of the box because it cannot find the +# test_generators module in pelican/tests +# but even after fixing that, there are test cases that do not finish +# successfully +override_dh_auto_test: + override_dh_installchangelogs: dh_installchangelogs docs/changelog.rst

