1
0

- Skip some truculent tests.

- Clean up non-required Python 3.6 {Build,}Requires.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic?expand=0&rev=21
This commit is contained in:
Steve Kowalik 2022-02-02 04:14:28 +00:00 committed by Git OBS Bridge
parent cdd36c50e2
commit 256cc834ee
2 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 2 04:12:37 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- Skip some truculent tests.
- Clean up non-required Python 3.6 {Build,}Requires.
-------------------------------------------------------------------
Wed Jan 5 16:08:23 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -24,21 +24,16 @@ Version: 1.9.0
Release: 0
Summary: Data validation and settings management using python type hinting
License: MIT
Group: Development/Languages/Python
URL: https://github.com/samuelcolvin/pydantic
Source: https://github.com/samuelcolvin/pydantic/archive/v%{version}.tar.gz#/pydantic-%{version}.tar.gz
BuildRequires: %{python_module email_validator >= 1.0.3}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module dataclasses if %python-base < 3.7}
BuildRequires: %{python_module python-dotenv >= 0.10.4}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing_extensions >= 3.7.4.3}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if 0%{?python_version_nodots} == 36
Requires: python-dataclasses
%endif
Requires: python-typing_extensions >= 3.7.4.3
Suggests: python-email_validator >= 1.0.3
Suggests: python-python-dotenv >= 0.10.4
@ -49,7 +44,7 @@ BuildArch: noarch
Data validation and settings management using Python type hinting.
%prep
%setup -q -n pydantic-%{version}
%autosetup -p1 -n pydantic-%{version}
%build
%python_build
@ -59,7 +54,7 @@ Data validation and settings management using Python type hinting.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%pytest -k 'not test_is_none_type and not test_none'
%files %{python_files}
%license LICENSE