commit a49b82c56bbdd79e4509e0b1a3d7358d2e6cd641df9b6d9673cb1acddf95820e Author: Steve Kowalik Date: Wed Mar 6 06:35:22 2024 +0000 - Initial release of 2.16.3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydantic-core?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..ffc59d7 --- /dev/null +++ b/_service @@ -0,0 +1,9 @@ + + + pydantic_core-2.16.3.tar.gz + xz + true + + + + diff --git a/pydantic_core-2.16.3.tar.gz b/pydantic_core-2.16.3.tar.gz new file mode 100644 index 0000000..e883bde --- /dev/null +++ b/pydantic_core-2.16.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1cac689f80a3abab2d3c0048b29eea5751114054f032a941a32de4c852c59cad +size 368930 diff --git a/python-pydantic-core.changes b/python-pydantic-core.changes new file mode 100644 index 0000000..8f8f1c4 --- /dev/null +++ b/python-pydantic-core.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Mar 6 06:34:37 UTC 2024 - Steve Kowalik + +- Initial release of 2.16.3 diff --git a/python-pydantic-core.spec b/python-pydantic-core.spec new file mode 100644 index 0000000..8e605c5 --- /dev/null +++ b/python-pydantic-core.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-pydantic-core +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-pydantic-core +Version: 2.16.3 +Release: 0 +Summary: Core functionality for pydantic validation and serialization +License: MIT +URL: https://github.com/pydantic/pydantic-core +Source0: https://files.pythonhosted.org/packages/source/p/pydantic-core/pydantic_core-%{version}.tar.gz +Source1: vendor.tar.xz +BuildRequires: %{python_module maturin >= 1} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module typing-extensions >= 4.6.0} +BuildRequires: cargo-packaging +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module dirty-equals} +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pytest-benchmark} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest-timeout} +# /SECTION +BuildRequires: fdupes +Requires: python-typing-extensions >= 4.6.0 +%python_subpackages + +%description +This package provides the core functionality for [pydantic](https://docs.pydantic.dev) validation and serialization. + +Pydantic-core is currently around 17x faster than pydantic V1. + +%prep +%autosetup -p1 -n pydantic_core-%{version} -a1 + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pytest_arch + +%files %{python_files} +%{python_sitearch}/pydantic_core +%{python_sitearch}/pydantic_core-%{version}.dist-info + +%changelog diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..d12c3fc --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f1d0b79f65728ece854f6fe1986d0940874ecc9395a306c81010616e934b1b6 +size 7048020