!3 init package

From: @mengzhaoa 
Reviewed-by: @desert-sailor 
Signed-off-by: @desert-sailor
This commit is contained in:
openeuler-ci-bot 2023-07-04 01:27:50 +00:00 committed by Gitee
commit a88200859a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 55 additions and 0 deletions

Binary file not shown.

55
python-pydantic.spec Normal file
View File

@ -0,0 +1,55 @@
Name: python-pydantic
Version: 1.10.9
Release: 1
Summary: Data validation using Python type hinting
License: MIT
URL: https://github.com/samuelcolvin/pydantic
Source0: https://github.com/samuelcolvin/pydantic/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
# For check phase
BuildRequires: python3-mypy
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(hypothesis)
%description
Data validation and settings management using python type hinting.
%package -n python3-pydantic
Summary: %{summary}
%{?python_provide:%python_provide python3-pydantic}
Requires: python3-email-validator >= 1.0.3
Requires: python3-ujson >= 1.35
%description -n python3-pydantic
Data validation and settings management using python type hinting.
%prep
%autosetup -n pydantic-%{version}
# Remove bundled egg-info
rm -rf pydantic.egg-info
%build
%py3_build
# Docs are in MarkDown, and should be added when mkdocs is packaged.
%install
%py3_install
%check
%{__python3} setup.py test
%files -n python3-pydantic
%license LICENSE
%doc README.md
%{python3_sitelib}/pydantic
%{python3_sitelib}/pydantic-%{version}-py%{python3_version}.egg-info
%changelog
* Mon Jun 26 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 1.10.9-1
- Initial package.