[packages/python3-schema] - python-schema.spec updated to 0.7.8 for python 3.6+
qboosh
qboosh at pld-linux.org
Sun Oct 26 10:57:41 CET 2025
commit dd7fa0d57299c2d64d6ae7f1ac839fbf59236a21
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Oct 26 10:57:36 2025 +0100
- python-schema.spec updated to 0.7.8 for python 3.6+
python-schema-requirements.patch | 19 ------
python-schema.spec | 129 ---------------------------------------
python3-schema.spec | 62 +++++++++++++++++++
3 files changed, 62 insertions(+), 148 deletions(-)
---
diff --git a/python-schema.spec b/python-schema.spec
deleted file mode 100644
index d808d79..0000000
--- a/python-schema.spec
+++ /dev/null
@@ -1,129 +0,0 @@
-#
-# Conditional build:
-%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Schema validation just got Pythonic
-Summary(pl.UTF-8): Pythonowe sprawdzanie zgodności ze schematem
-Name: python-schema
-# 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: 3
-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: 37bded9e34826015e66e98b7c700467f
-Patch0: %{name}-requirements.patch
-URL: https://pypi.org/project/schema/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.6
-BuildRequires: python-setuptools
-%if "%{py_ver}" < "2.7"
-BuildRequires: python-contextlib2 >= 0.5.5
-%endif
-%if %{with tests}
-BuildRequires: python-mock
-BuildRequires: python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-pytest
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.6
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-schema is a library for validating Python data structures, such as
-those obtained from config-files, forms, external services or
-command-line parsing, converted from JSON/YAML (or something else) to
-Python data-types.
-
-%description -l pl.UTF-8
-schema to biblioteka do sprawdzania poprawności pythonowych struktur
-danych, takich jak pochodzące z plików konfiguracyjnych, formularzy,
-usług zewnętrznych czy analizy wiersza poleceń, przekształcone z
-JSON-a/YAML-a (lub czegoś innego) do typów pythonowych.
-
-%package -n python3-schema
-Summary: Schema validation just got Pythonic
-Summary(pl.UTF-8): Pythonowe sprawdzanie zgodności ze schematem
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-schema
-schema is a library for validating Python data structures, such as
-those obtained from config-files, forms, external services or
-command-line parsing, converted from JSON/YAML (or something else) to
-Python data-types.
-
-%description -n python3-schema -l pl.UTF-8
-schema to biblioteka do sprawdzania poprawności pythonowych struktur
-danych, takich jak pochodzące z plików konfiguracyjnych, formularzy,
-usług zewnętrznych czy analizy wiersza poleceń, przekształcone z
-JSON-a/YAML-a (lub czegoś innego) do typów pythonowych.
-
-%prep
-%setup -q -n schema-%{version}
-%patch -P 0 -p1
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest test_schema.py
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest test_schema.py
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE-MIT README.rst
-%{py_sitescriptdir}/schema.py[co]
-%{py_sitescriptdir}/schema-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-schema
-%defattr(644,root,root,755)
-%doc LICENSE-MIT README.rst
-%{py3_sitescriptdir}/schema.py
-%{py3_sitescriptdir}/__pycache__/schema.cpython-*.py[co]
-%{py3_sitescriptdir}/schema-%{version}-py*.egg-info
-%endif
diff --git a/python3-schema.spec b/python3-schema.spec
new file mode 100644
index 0000000..71fb8f4
--- /dev/null
+++ b/python3-schema.spec
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Schema validation just got Pythonic
+Summary(pl.UTF-8): Pythonowe sprawdzanie zgodności ze schematem
+Name: python3-schema
+Version: 0.7.8
+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: 937d1deed2d7e96385cde49d37da4d05
+URL: https://pypi.org/project/schema/
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+schema is a library for validating Python data structures, such as
+those obtained from config-files, forms, external services or
+command-line parsing, converted from JSON/YAML (or something else) to
+Python data-types.
+
+%description -l pl.UTF-8
+schema to biblioteka do sprawdzania poprawności pythonowych struktur
+danych, takich jak pochodzące z plików konfiguracyjnych, formularzy,
+usług zewnętrznych czy analizy wiersza poleceń, przekształcone z
+JSON-a/YAML-a (lub czegoś innego) do typów pythonowych.
+
+%prep
+%setup -q -n schema-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest test_schema.py
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE-MIT README.rst
+%{py3_sitescriptdir}/schema
+%{py3_sitescriptdir}/schema-%{version}-py*.egg-info
diff --git a/python-schema-requirements.patch b/python-schema-requirements.patch
deleted file mode 100644
index 4fea21d..0000000
--- a/python-schema-requirements.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- schema-0.7.2/requirements.txt.orig 2020-04-15 01:51:34.000000000 +0200
-+++ schema-0.7.2/requirements.txt 2020-09-11 20:55:32.136670218 +0200
-@@ -1 +1 @@
--contextlib2>=0.5.5
-+contextlib2>=0.5.5;python_version<"2.7"
---- 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
-
--from mock import Mock
-+try:
-+ from unittest.mock import Mock
-+except:
-+ from mock import Mock
- from pytest import mark, raises
-
- from schema import (
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-schema.git/commitdiff/dd7fa0d57299c2d64d6ae7f1ac839fbf59236a21
More information about the pld-cvs-commit
mailing list