init package

This commit is contained in:
mengzhaoa 2023-06-26 12:19:06 +08:00
parent d801621b92
commit 74c98ed7ae
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.