commit 8df9bf644105ee1d9bb0770d24fd7315a33e37bac6c777af215ead2f385c6591 Author: Matej Cepl Date: Tue May 21 09:28:56 2024 +0000 Accepting request 1174878 from home:mslacken:ml - initial commit of dataclasses-json ------------------------------------------------------------------- OBS-URL: https://build.opensuse.org/request/show/1174878 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dataclasses-json?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/dataclasses-json-0.6.5.tar.gz b/dataclasses-json-0.6.5.tar.gz new file mode 100644 index 0000000..aec0328 --- /dev/null +++ b/dataclasses-json-0.6.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2daac2e60393b501b4c4347f088622fb8a56d0c2180cfa3d2e26bd51eae06ae8 +size 76889 diff --git a/python-dataclasses-json.changes b/python-dataclasses-json.changes new file mode 100644 index 0000000..b549f3b --- /dev/null +++ b/python-dataclasses-json.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu May 2 13:30:20 UTC 2024 - Christian Goll + +- initial commit of dataclasses-json diff --git a/python-dataclasses-json.spec b/python-dataclasses-json.spec new file mode 100644 index 0000000..3c09f53 --- /dev/null +++ b/python-dataclasses-json.spec @@ -0,0 +1,56 @@ +# +# spec file for package python-dataclasses-json +# +# 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-dataclasses-json +Version: 0.6.5 +Release: 0 +Summary: API for encoding and decoding dataclasses to and from JSON +# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses +License: MIT +URL: python-dataclasses-json +Source: https://github.com/lidatong/dataclasses-json/archive/refs/tags/v%{version}.tar.gz#/dataclasses-json-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module poetry-dynamic-versioning} +BuildRequires: %{python_module poetry} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildArch: noarch +%python_subpackages + +%description +This library provides a simple API for encoding and decoding dataclasses to and from JSON. + +It's very easy to get started. + +%prep +%autosetup -n dataclasses-json-%{version} +sed -i '/\[tool.poetry-dynamic-versioning\]/,+1d' pyproject.toml +sed -i 's/version = "0.0.0"/version = "%{version}"/' pyproject.toml + +%build +%pyproject_wheel + +%install +%pyproject_install --no-build-isolation +%python_expand %fdupes %{buildroot}/%{$python_sitelib} + +%files %python_files +%{python_sitelib}/* + +%changelog