diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-14 19:09:33 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-14 19:35:43 +0300 |
commit | 3ab42e8f340a658b2ddcbfc754524f43036f7bb3 (patch) | |
tree | 48a1d8cfb75223422c51ebccaaddf51ad4bff3ce /testing/py3-pelican | |
parent | fddab0c7e5919d8093ded0dae882a6896ada7433 (diff) | |
download | aports-3ab42e8f340a658b2ddcbfc754524f43036f7bb3.tar.bz2 aports-3ab42e8f340a658b2ddcbfc754524f43036f7bb3.tar.xz |
testing/py-pelican: drop python2
* Remove version specific pelican scripts.
Diffstat (limited to 'testing/py3-pelican')
-rw-r--r-- | testing/py3-pelican/APKBUILD | 29 | ||||
-rw-r--r-- | testing/py3-pelican/use-django-feedgenerator.patch | 12 |
2 files changed, 41 insertions, 0 deletions
diff --git a/testing/py3-pelican/APKBUILD b/testing/py3-pelican/APKBUILD new file mode 100644 index 0000000000..9ea32a4305 --- /dev/null +++ b/testing/py3-pelican/APKBUILD @@ -0,0 +1,29 @@ +# Contributor: Danilo Falcão <danilo@falcao.org> +# Maintainer: Danilo Falcão <danilo@falcao.org> +pkgname=py3-pelican +_pkgname=pelican +pkgver=3.7.1 +pkgrel=1 +pkgdesc="A tool to generate a static blog from reStructuredText or Markdown input files." +url="https://pypi.python.org/pypi/pelican/" +arch="noarch" +license="AGPL-3.0" +depends="py3-blinker py3-dateutil py3-docutils py3-feedgenerator py3-jinja2 + py3-pygments py3-setuptools py3-six py3-tz py3-unidecode" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +replaces="pelican" # Backwards compatibility +provides="pelican=$pkgver-r$pkgrel" # Backwards compatibility + +build() { + cd "$builddir" + python3 setup.py build || return 1 +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="bb378ac5103d402e7955a7852c190ff7faece12b1f48c5583552ad64e47e06af886267da8d54be6123ee5ba0231f8fff4a3ef5130a45e95d9a8f907a20ec9851 pelican-3.7.1.tar.gz" diff --git a/testing/py3-pelican/use-django-feedgenerator.patch b/testing/py3-pelican/use-django-feedgenerator.patch new file mode 100644 index 0000000000..9cd80d2ad5 --- /dev/null +++ b/testing/py3-pelican/use-django-feedgenerator.patch @@ -0,0 +1,12 @@ +diff --git a/pelican/writers.py b/pelican/writers.py +index e90a000..1304188 100644 +--- a/pelican/writers.py ++++ b/pelican/writers.py +@@ -8,7 +8,7 @@ import logging + if not six.PY3: + from codecs import open + +-from feedgenerator import Atom1Feed, Rss201rev2Feed ++from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed + from jinja2 import Markup + from six.moves.urllib.parse import urlparse |