Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: python-jinja 2.11.3-1: new upstream release
Browse files Browse the repository at this point in the history
Disable three tests until setuptools works with packaging >= 20.5.

The tests fail with:

  > DeprecationWarning: Creating a LegacyVersion has been deprecated
  > and will be removed in the next major release

Upstream issue: pypa/setuptools#2466


git-svn-id: file:///srv/repos/svn-community/svn@840859 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
foutrelis committed Feb 1, 2021
1 parent 23f861f commit 37e54e1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions python-jinja/trunk/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Contributor: Peter Baldwin <bald_pete@hotmail.com>

pkgname=('python-jinja' 'python2-jinja')
pkgver=2.11.2
pkgrel=4
pkgver=2.11.3
pkgrel=1
pkgdesc="A simple pythonic template language written in Python"
arch=('any')
url="https://palletsprojects.com/p/jinja/"
Expand All @@ -13,7 +13,7 @@ makedepends=('python-setuptools' 'python2-setuptools' 'python-markupsafe'
'python2-markupsafe')
checkdepends=('python-pytest' 'python2-pytest')
source=(https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz)
sha256sums=('89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0')
sha256sums=('a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6')

build() {
cd Jinja2-$pkgver
Expand All @@ -22,9 +22,12 @@ build() {

check() {
cd Jinja2-$pkgver
export PYTHONPATH=build/lib:$PYTHONPATH
py.test
py.test2
# https://github.com/pypa/setuptools/issues/2466
PYTHONPATH=build/lib pytest \
--deselect tests/test_bytecode_cache.py::TestByteCodeCache::test_simple \
--deselect tests/test_loader.py::TestLoaders::test_package_loader \
--deselect tests/test_loader.py::TestLoaders::test_choice_loader
PYTHONPATH=build/lib pytest2
}

package_python-jinja() {
Expand Down

0 comments on commit 37e54e1

Please sign in to comment.