Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-django-request for openSUSE:Factory checked in at 2023-11-01 22:10:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-django-request (Old) and /work/SRC/openSUSE:Factory/.python-django-request.new.17445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-django-request" Wed Nov 1 22:10:16 2023 rev:6 rq:1121529 version:1.6.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-django-request/python-django-request.changes 2023-07-12 17:27:52.506720348 +0200 +++ /work/SRC/openSUSE:Factory/.python-django-request.new.17445/python-django-request.changes 2023-11-01 22:11:01.053972526 +0100 @@ -1,0 +2,8 @@ +Wed Nov 1 04:30:55 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com> + +- Add patch do-not-fail-on-day-one-of-month.patch: + * Do not fail due to edge cases on the 1st or last of a month. +- Switch to pyproject macros. +- Stop using greedy globs in %files. + +------------------------------------------------------------------- New: ---- do-not-fail-on-day-one-of-month.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-django-request.spec ++++++ --- /var/tmp/diff_new_pack.7XlUNy/_old 2023-11-01 22:11:01.810000533 +0100 +++ /var/tmp/diff_new_pack.7XlUNy/_new 2023-11-01 22:11:01.814000681 +0100 @@ -26,7 +26,10 @@ Source: https://github.com/django-request/django-request/archive/%{version}.tar.gz#/django-request-%{version}.tar.gz # gh#django-request/django-request#241 Patch0: set-timezone-for-day-tests.patch +Patch1: do-not-fail-on-day-one-of-month.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Django >= 2.2 @@ -47,10 +50,10 @@ %autosetup -p1 -n django-request-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -61,5 +64,6 @@ %files %{python_files} %doc CHANGELOG.md README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/request +%{python_sitelib}/django_request-%{version}.dist-info ++++++ do-not-fail-on-day-one-of-month.patch ++++++ Index: django-request-1.6.3/tests/test_managers.py =================================================================== --- django-request-1.6.3.orig/tests/test_managers.py +++ django-request-1.6.3/tests/test_managers.py @@ -66,6 +66,7 @@ class RequestQuerySetTest(TestCase): qs = Request.objects.all().year(self.request.time.year + 1) self.assertEqual(qs.count(), 0) + @override_settings(USE_TZ=True, TIME_ZONE='Africa/Nairobi') def test_month(self): qs = Request.objects.all().month(year=None, month=None, date=now()) self.assertEqual(qs.count(), 1) @@ -78,6 +79,7 @@ class RequestQuerySetTest(TestCase): ) self.assertEqual(qs.count(), 0) + @override_settings(USE_TZ=True, TIME_ZONE='Africa/Nairobi') def test_month_without_date(self): now_month = now().strftime('%b') qs = Request.objects.all().month( @@ -103,7 +105,7 @@ class RequestQuerySetTest(TestCase): def test_month_is_december(self): # setUp - december_time = now().replace(month=12) + december_time = now().replace(month=12, day=15) self.request.time = december_time self.request.save() # Test @@ -112,7 +114,7 @@ class RequestQuerySetTest(TestCase): def test_month_is_not_december(self): # setUp - november_time = now().replace(month=11) + november_time = now().replace(month=11, day=15) self.request.time = november_time self.request.save() # Test