]> git.pld-linux.org Git - packages/python-schema.git/commitdiff
- updated to 0.7.4 (the last version working with python2) master auto/th/python-schema-0.7.4-1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 30 Mar 2022 17:29:53 +0000 (19:29 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 30 Mar 2022 17:29:53 +0000 (19:29 +0200)
python-schema-requirements.patch
python-schema.spec

index e41cf795ecff7671ac0c2a14af4ef1d5fc6486a9..4fea21d5512a476f7bbaa5391322e5a73ef468e0 100644 (file)
@@ -3,9 +3,9 @@
 @@ -1 +1 @@
 -contextlib2>=0.5.5
 +contextlib2>=0.5.5;python_version<"2.7"
---- schema-0.7.2/test_schema.py.orig   2020-04-15 01:51:34.000000000 +0200
-+++ schema-0.7.2/test_schema.py        2020-09-11 21:06:30.749768871 +0200
-@@ -10,7 +10,10 @@
+--- schema-0.7.5/test_schema.py.orig   2020-04-15 01:51:34.000000000 +0200
++++ schema-0.7.5/test_schema.py        2020-09-11 21:06:30.749768871 +0200
+@@ -10,7 +10,10 @@ from collections import defaultdict, nam
  from functools import partial
  from operator import methodcaller
  
@@ -15,5 +15,5 @@
 +except:
 +    from mock import Mock
  from pytest import mark, raises
  from schema import (
-     And,
index f4fe968a4a13309e0912e88d23345c360a342b9e..010f312aacd0a88e1236ec18b311ecb9a3761dc4 100644 (file)
@@ -7,13 +7,15 @@
 Summary:       Schema validation just got Pythonic
 Summary(pl.UTF-8):     Pythonowe sprawdzanie zgodności ze schematem
 Name:          python-schema
-Version:       0.7.2
-Release:       4
+# keep 0.7.4 here for python2 support
+# (despite python 2.x in classifiers, 0.7.5 uses inspect.signature, which requires python 3.3+)
+Version:       0.7.4
+Release:       1
 License:       MIT
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/schema/
 Source0:       https://files.pythonhosted.org/packages/source/s/schema/schema-%{version}.tar.gz
-# Source0-md5: e9b98f979dbda29c3f7bc63e09b20878
+# Source0-md5: 37bded9e34826015e66e98b7c700467f
 Patch0:                %{name}-requirements.patch
 URL:           https://pypi.org/project/schema/
 %if %{with python2}
@@ -79,6 +81,7 @@ JSON-a/YAML-a (lub czegoś innego) do typów pythonowych.
 %py_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 %{__python} -m pytest test_schema.py
 %endif
 %endif
@@ -87,6 +90,7 @@ JSON-a/YAML-a (lub czegoś innego) do typów pythonowych.
 %py3_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 %{__python3} -m pytest test_schema.py
 %endif
 %endif
This page took 0.115909 seconds and 4 git commands to generate.