commit 4e2561b4fe588f76f590ddc9a34a30c63feb33b6ad9768c21e88cd279fd85526 Author: Dirk Mueller Date: Wed Aug 21 11:38:32 2024 +0000 Accepting request 1194493 from home:sebix 2nd try for https://build.opensuse.org/request/show/1169727 the package actually originates from system:homeautomation:home-assistant/python-dacite it is required by https://build.opensuse.org/package/show/multimedia:libs/python-soundcloud-v2 OBS-URL: https://build.opensuse.org/request/show/1194493 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dacite?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/dacite-1.8.1.tar.gz b/dacite-1.8.1.tar.gz new file mode 100644 index 0000000..3c754c6 --- /dev/null +++ b/dacite-1.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:791ac3da85a040684a96df59e2320dc7b3cac000ff536e3f4b00fb3b67520b86 +size 26038 diff --git a/python-dacite.changes b/python-dacite.changes new file mode 100644 index 0000000..7c48048 --- /dev/null +++ b/python-dacite.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Sat Aug 17 19:32:45 UTC 2024 - Sebastian Wagner + +- Run tests + +------------------------------------------------------------------- +Sat Nov 4 14:57:58 UTC 2023 - Frank Schreiner + +- initial version diff --git a/python-dacite.spec b/python-dacite.spec new file mode 100644 index 0000000..862b16a --- /dev/null +++ b/python-dacite.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-dacite +# +# Copyright (c) 2023 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-dacite +Version: 1.8.1 +Release: 0 +Summary: Simple creation of data classes from dictionaries +License: MIT +URL: https://github.com/konradhalas/dacite +Source: dacite-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +# SECTION tests +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-benchmark} +# /SECTION +BuildRequires: unzip +BuildRequires: fdupes +BuildArch: noarch +%python_subpackages + +%description +Simplifies creating type-hinted data transfer objects (DTOs) from dictionaries, useful for data from HTTP requests or databases. It complements Python's dataclasses and isn't a validation library. For validation, combine it with other libraries. + +%prep +%autosetup -p1 -n dacite-%{version} +sed -ri 's/--benchmark-[^ "]+//g' pyproject.toml + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests + +%files %{python_files} +%{python_sitelib}/dacite +%{python_sitelib}/dacite-%{version}.dist-info + +%changelog