forked from pool/python-pydantic
- 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:
parent
cdd36c50e2
commit
256cc834ee
@ -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>
|
Wed Jan 5 16:08:23 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -24,21 +24,16 @@ Version: 1.9.0
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Data validation and settings management using python type hinting
|
Summary: Data validation and settings management using python type hinting
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/samuelcolvin/pydantic
|
URL: https://github.com/samuelcolvin/pydantic
|
||||||
Source: https://github.com/samuelcolvin/pydantic/archive/v%{version}.tar.gz#/pydantic-%{version}.tar.gz
|
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 email_validator >= 1.0.3}
|
||||||
BuildRequires: %{python_module pytest-mock}
|
BuildRequires: %{python_module pytest-mock}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module dataclasses if %python-base < 3.7}
|
|
||||||
BuildRequires: %{python_module python-dotenv >= 0.10.4}
|
BuildRequires: %{python_module python-dotenv >= 0.10.4}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module typing_extensions >= 3.7.4.3}
|
BuildRequires: %{python_module typing_extensions >= 3.7.4.3}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
%if 0%{?python_version_nodots} == 36
|
|
||||||
Requires: python-dataclasses
|
|
||||||
%endif
|
|
||||||
Requires: python-typing_extensions >= 3.7.4.3
|
Requires: python-typing_extensions >= 3.7.4.3
|
||||||
Suggests: python-email_validator >= 1.0.3
|
Suggests: python-email_validator >= 1.0.3
|
||||||
Suggests: python-python-dotenv >= 0.10.4
|
Suggests: python-python-dotenv >= 0.10.4
|
||||||
@ -49,7 +44,7 @@ BuildArch: noarch
|
|||||||
Data validation and settings management using Python type hinting.
|
Data validation and settings management using Python type hinting.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pydantic-%{version}
|
%autosetup -p1 -n pydantic-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -59,7 +54,7 @@ Data validation and settings management using Python type hinting.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest -k 'not test_is_none_type and not test_none'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user