forked from pool/python-dacite
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
dacite-1.8.1.tar.gz
Normal file
3
dacite-1.8.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:791ac3da85a040684a96df59e2320dc7b3cac000ff536e3f4b00fb3b67520b86
|
||||
size 26038
|
||||
9
python-dacite.changes
Normal file
9
python-dacite.changes
Normal file
@@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 17 19:32:45 UTC 2024 - Sebastian Wagner <sebix@sebix.at>
|
||||
|
||||
- Run tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 4 14:57:58 UTC 2023 - Frank Schreiner <FSchreiner@suse.com>
|
||||
|
||||
- initial version
|
||||
60
python-dacite.spec
Normal file
60
python-dacite.spec
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user