From: Jakub Bogusz Date: Wed, 30 Mar 2022 17:29:53 +0000 (+0200) Subject: - updated to 0.7.4 (the last version working with python2) X-Git-Tag: auto/th/python-schema-0.7.4-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=9c0827feefec66e856f90735f1836b90bdd5ed32;p=packages%2Fpython-schema.git - updated to 0.7.4 (the last version working with python2) --- diff --git a/python-schema-requirements.patch b/python-schema-requirements.patch index e41cf79..4fea21d 100644 --- a/python-schema-requirements.patch +++ b/python-schema-requirements.patch @@ -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, diff --git a/python-schema.spec b/python-schema.spec index f4fe968..010f312 100644 --- a/python-schema.spec +++ b/python-schema.spec @@ -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