From 2b06e0a13fb1e7767290408b9a95253fd0bbd24a545ba4f55adcf26ba4378967 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 30 Oct 2024 12:36:33 +0000 Subject: [PATCH] - update to 5.0.0: * Add support for Python 3.12 * BREAKING CHANGE: Arithmetic operations on `date`/`datetime` against an unknown type will now return `NotImplemented` instead of raising `TypeError` * Drop Python 3.7 support * Move jalali.py to jalali_core dependency due to licensing issues #148 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jdatetime?expand=0&rev=13 --- python-jdatetime.changes | 12 ++++++++++++ python-jdatetime.spec | 17 +++++++++++------ v4.1.1.tar.gz | 3 --- v5.0.0.tar.gz | 3 +++ 4 files changed, 26 insertions(+), 9 deletions(-) delete mode 100644 v4.1.1.tar.gz create mode 100644 v5.0.0.tar.gz diff --git a/python-jdatetime.changes b/python-jdatetime.changes index 8ac3ac7..91fa090 100644 --- a/python-jdatetime.changes +++ b/python-jdatetime.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Wed Oct 30 12:34:59 UTC 2024 - Dirk Müller + +- update to 5.0.0: + * Add support for Python 3.12 + * BREAKING CHANGE: Arithmetic operations on `date`/`datetime` + against an unknown type will now return `NotImplemented` + instead of raising `TypeError` + * Drop Python 3.7 support + * Move jalali.py to jalali_core dependency due to licensing + issues #148 + ------------------------------------------------------------------- Thu Dec 7 22:26:41 UTC 2023 - Dirk Müller diff --git a/python-jdatetime.spec b/python-jdatetime.spec index 4ff882d..6d05637 100644 --- a/python-jdatetime.spec +++ b/python-jdatetime.spec @@ -1,7 +1,7 @@ # # spec file for package python-jdatetime # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -16,21 +16,25 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} Name: python-jdatetime -Version: 4.1.1 +Version: 5.0.0 Release: 0 Summary: Jalali datetime binding for python License: Python-2.0 Group: Development/Languages/Python URL: https://github.com/slashmili/python-jalali Source: https://github.com/slashmili/python-jalali/archive/v%{version}.tar.gz +BuildRequires: %{python_module jalali-core} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytzdata} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: glibc-locale BuildRequires: python-rpm-macros BuildArch: noarch +Requires: python-jalali-core %python_subpackages %description @@ -40,10 +44,10 @@ jdatetime is the Jalali implementation of Python's datetime module. %setup -q -n python-jalali-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -52,6 +56,7 @@ jdatetime is the Jalali implementation of Python's datetime module. %files %{python_files} %doc README.rst CHANGELOG.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/jdatetime +%{python_sitelib}/jdatetime-%{version}.dist-info %changelog diff --git a/v4.1.1.tar.gz b/v4.1.1.tar.gz deleted file mode 100644 index 510da04..0000000 --- a/v4.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3f9f08742b322bd6e4ac4e0fda778f0e2fa7fd7d4cc3cfc368de851b002c974e -size 23202 diff --git a/v5.0.0.tar.gz b/v5.0.0.tar.gz new file mode 100644 index 0000000..87f07d0 --- /dev/null +++ b/v5.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e25070f0a9296c258af05a6bcedab37f335666ae0ae9963fec9ea947063ab83 +size 22217