commit 060011266f09bcf561366441a13f2534dd76e98e829a5d839da898631a9b5a96 Author: Adrian Schröter Date: Fri Sep 13 16:18:48 2024 +0200 Sync from SUSE:SLFO:Main python-dirty-equals revision a060668173a162a0d2e5c8ef201aaa34 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/dirty-equals-0.7.1.tar.gz b/dirty-equals-0.7.1.tar.gz new file mode 100644 index 0000000..adf26b0 --- /dev/null +++ b/dirty-equals-0.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35883c5545396590e5dbb4e8ddd994f76c2aad40cbf790f5cd7ad1f31d29cd3f +size 49000 diff --git a/python-dirty-equals.changes b/python-dirty-equals.changes new file mode 100644 index 0000000..c1c5e7d --- /dev/null +++ b/python-dirty-equals.changes @@ -0,0 +1,49 @@ +------------------------------------------------------------------- +Thu Mar 7 03:28:45 UTC 2024 - Steve Kowalik + +- Update to 0.7.1: + * Feature: IsEnum by @FBruzzesi in #75 + * fix pydantic version checking by @mishaga in #80 + * change license to exact by @evstratbg in #85 + * fix DeprecationWarning with datetime.utcnow() by @MeggyCal in #86 + * Make datetime tests pass without requiring UTC system timezone + * uprev dependencies and use pydantic v2 by @samuelcolvin in #88 + * support python 3.12 by @samuelcolvin in #89 + * better dep constraints by @samuelcolvin in #90 +- Drop patch datetime.patch, now included. + +------------------------------------------------------------------- +Tue Nov 7 14:17:03 UTC 2023 - Dirk Müller + +- build against newer python stack for sle15 + +------------------------------------------------------------------- +Tue Oct 17 12:30:50 UTC 2023 - Markéta Calábková + +- Update to 0.7.0 + * add some new functions + * move to Python 3.11 final + * numeric exact +- add datetime.patch to fix compatibility with Python 3.12 + * sent upstream: https://github.com/samuelcolvin/dirty-equals/pull/86 + +------------------------------------------------------------------- +Thu Nov 10 15:18:24 UTC 2022 - Yogalakshmi Arunachalam + +-Update to version 0.5.0 + *Document how the dirty __eq__ is called by @Marco-Kaulea in #41 + *Make IsNow relative to current moment of time by @hyzyla in #40 + *correct version in pyproject.toml, #46 + *feat Add IsIP by @osintalex in #43 + *Remove Poetry and transition to hatchling, #49 + +------------------------------------------------------------------- +Tue Aug 30 23:56:51 UTC 2022 - Steve Kowalik + +- Correct a Requires into a BuildRequires, as was meant. + +------------------------------------------------------------------- +Mon Jul 18 22:39:54 UTC 2022 - Ben Greiner + +- Initial specfile for v0.4 +- Required for python-watchfiles diff --git a/python-dirty-equals.spec b/python-dirty-equals.spec new file mode 100644 index 0000000..2e3d55d --- /dev/null +++ b/python-dirty-equals.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-dirty-equals +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-dirty-equals +Version: 0.7.1 +Release: 0 +Summary: Doing dirty (but useful) things with equals +License: MIT +URL: https://dirty-equals.helpmanual.io +Source: https://github.com/samuelcolvin/dirty-equals/archive/refs/tags/v%{version}.tar.gz#/dirty-equals-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module pydantic >= 2.4} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytz >= 2021.3} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pytz >= 2021.3 +BuildArch: noarch +%python_subpackages + +%description +Doing dirty (but extremely useful) things with equals. + +%prep +%autosetup -p1 -n dirty-equals-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Doc tests need new pytest plugin, pytest-examples. Too much work for too low importance. +%pytest --ignore "tests/test_docs.py" + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/dirty_equals +%{python_sitelib}/dirty_equals-%{version}*-info + +%changelog