Sync from SUSE:SLFO:Main python-dirty-equals revision a060668173a162a0d2e5c8ef201aaa34

This commit is contained in:
Adrian Schröter 2024-09-13 16:18:48 +02:00
commit 060011266f
4 changed files with 139 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

BIN
dirty-equals-0.7.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,49 @@
-------------------------------------------------------------------
Thu Mar 7 03:28:45 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <dmueller@suse.com>
- build against newer python stack for sle15
-------------------------------------------------------------------
Tue Oct 17 12:30:50 UTC 2023 - Markéta Calábková <meggy.calabkova@gmail.com>
- 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 <yarunachalam@suse.com>
-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 <steven.kowalik@suse.com>
- Correct a Requires into a BuildRequires, as was meant.
-------------------------------------------------------------------
Mon Jul 18 22:39:54 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Initial specfile for v0.4
- Required for python-watchfiles

64
python-dirty-equals.spec Normal file
View File

@ -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