[arch-commits] Commit in python-telegram-bot/trunk (PKGBUILD fix-tests.patch)

Felix Yan felixonmars at archlinux.org
Thu Nov 12 22:11:17 UTC 2020


    Date: Thursday, November 12, 2020 @ 22:11:16
  Author: felixonmars
Revision: 753784

upgpkg: python-telegram-bot 12.8-1

Modified:
  python-telegram-bot/trunk/PKGBUILD
  python-telegram-bot/trunk/fix-tests.patch

-----------------+
 PKGBUILD        |   12 ++++++------
 fix-tests.patch |    6 +++---
 2 files changed, 9 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-12 22:10:00 UTC (rev 753783)
+++ PKGBUILD	2020-11-12 22:11:16 UTC (rev 753784)
@@ -1,20 +1,20 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-telegram-bot
-pkgver=12.2.0
+pkgver=12.8
 pkgrel=1
 pkgdesc="A pure Python interface for the Telegram Bot AP"
 url="https://github.com/python-telegram-bot/python-telegram-bot"
-license=('GPL')
+license=('LGPL')
 arch=('any')
-depends=('python-cryptography' 'python-future' 'python-tornado' 'python-urllib3')
+depends=('python-cryptography' 'python-decorator' 'python-tornado' 'python-urllib3')
 makedepends=('python-setuptools')
 checkdepends=('python-pytest' 'python-beautifulsoup4' 'python-flaky'
               'python-pytest-timeout')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/python-telegram-bot/python-telegram-bot/archive/v$pkgver.tar.gz"
         fix-tests.patch)
-sha512sums=('c29c9750cef5b2baad54b8e9e5aee0ba1459557439ce8961733b00c67d678b0da87e91b973a847da4781ae2ba20c1d869d9dacd713f4d89f428c784b5a818bd8'
-            '19a70af0cbfa12e4f3312cb8332dbd3f7964306594df2f46ba276de32636090ce3571a4272f9ce5a14471514f62159bcabba136cf956ce8c5b8a075de29f8185')
+sha512sums=('84c033b946e1d93b10c36c39f3681631917aa4642da1795c6ecad694a7d8871888c23fa80aaf3827b0bdc8de1abf341a8ecc8326c825efd8a873df7c2904c5f2'
+            '3023cce38549b74a429a18168556e9641107d189fbe9c793e979964b094ad1b4863e19b2c400aeb44697afca0ce8a1de83c1f1bdd2dda6bf97b93817b2b41231')
 
 prepare() {
   cd python-telegram-bot-$pkgver
@@ -38,7 +38,7 @@
 
 check() {
   cd python-telegram-bot-$pkgver
-  pytest
+  python -m pytest
 }
 
 package() {

Modified: fix-tests.patch
===================================================================
--- fix-tests.patch	2020-11-12 22:10:00 UTC (rev 753783)
+++ fix-tests.patch	2020-11-12 22:11:16 UTC (rev 753784)
@@ -36,6 +36,6 @@
  
  
 - at pytest.mark.nocoverage
- @pytest.mark.skipif(
-     not sys.version_info[:2] in ((3, 6), (2, 7)) or python_implementation() != 'CPython',
-     reason='Only testing build on 2.7 and 3.6')
+ @pytest.mark.skipif(not os.getenv('TEST_BUILD', False), reason='TEST_BUILD not enabled')
+ def test_build():
+     assert os.system('python setup.py bdist_dumb') == 0  # pragma: no cover



More information about the arch-commits mailing list