1
0

15 Commits

Author SHA256 Message Date
187f9a0dea Accepting request 1256039 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1256039
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pendulum?expand=0&rev=12
2025-03-25 21:18:49 +00:00
a7626f6327 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pendulum?expand=0&rev=31 2025-03-18 18:26:14 +00:00
fad3180c78 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pendulum?expand=0&rev=30 2025-03-18 18:25:48 +00:00
e2e441c57a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pendulum?expand=0&rev=29 2025-03-18 18:24:51 +00:00
a6303b0686 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pendulum?expand=0&rev=28 2025-03-18 18:24:25 +00:00
05ed9107b4 Accepting request 1254103 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1254103
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pendulum?expand=0&rev=11
2025-03-18 16:42:25 +00:00
7b2c4ea306 Accepting request 1254066 from home:DocB:branches:devel:languages:python
- activate python 3.13

OBS-URL: https://build.opensuse.org/request/show/1254066
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pendulum?expand=0&rev=26
2025-03-18 12:22:09 +00:00
35f145e0ab Accepting request 1238538 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1238538
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pendulum?expand=0&rev=10
2025-01-18 12:18:12 +00:00
37ed1d9e01 Accepting request 1235848 from devel:languages:python
- Exclude 32bit platforms: Fails to build with overflow errors
- Fix sources and revert to github tarball: tests missing
- Update to version 3.0.0
   Added
    * Added new testing helpers to time travel. #626
    * Made instance() support all native types (date, time, datetime). #732
   Changed
    * Dropped support for Python 2.7, 3.5 and 3.6. #569
    * The Timezone class now relies on the native zoneinfo.ZoneInfo class. #569
    * Renamed the Period class to Interval. #676
    * Renamed the period helper to interval. #676
    * Removed existing testing helpers: test() and set_test_now(). #626
    * Dropped support for Python 3.7. #734
    * Rewrote extensions in Rust. #721
    * Made day of week convention more consistent across the codebase. #731    
    * Relaxed dependency constraints. #760
    * The testing helpers are now optional and must be opted-in via the test extra. #778
   Fixed
    * Fixed datetime string representation to match the native library. #733
    * Fixed issues on some system when retrieving the local timezone. #733
    * Fixed DST handling in start_of()/end_of() methods. #713
    * Removed remaining mentions of periods instead of intervals. #757
    * Fixed the behavior of the week_of_month property for edge cases in January and December. #774
    * Fixed the handling of the fold attribute when deep-copying a DateTime instance. #776
    * Fixed errors where hours and days were not handled properly when adding durations. #775
    * Fixed errors where hours and days were not handled properly when adding durations. #775
   Locales
    * Added the sk locale. #575
    * Added the ja locale. #610
    * Added the he locale. #585
    * Added the sv locale. #562

OBS-URL: https://build.opensuse.org/request/show/1235848
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pendulum?expand=0&rev=9
2025-01-12 10:08:32 +00:00
95ce22bade Accepting request 1236904 from home:bnavigator:branches:devel:languages:python
- Skip python313: Not maintained enough
  gh#python-pendulum/pendulum#844

OBS-URL: https://build.opensuse.org/request/show/1236904
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pendulum?expand=0&rev=23
2025-01-10 15:49:45 +00:00
7e71a89917 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pendulum?expand=0&rev=22 2025-01-08 09:27:43 +00:00
4267fb83fe OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pendulum?expand=0&rev=21 2025-01-08 09:27:10 +00:00
b9dcc928dd OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pendulum?expand=0&rev=20 2025-01-08 09:26:50 +00:00
2c3be6ba29 - Fix sources and revert to github tarball: tests missing
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pendulum?expand=0&rev=19
2025-01-07 20:49:59 +00:00
9e1bb5ebc1 - Update to version 3.0.0
Added
    * Added new testing helpers to time travel. #626
    * Made instance() support all native types (date, time, datetime). #732
   Changed
    * Dropped support for Python 2.7, 3.5 and 3.6. #569
    * The Timezone class now relies on the native zoneinfo.ZoneInfo class. #569
    * Renamed the Period class to Interval. #676
    * Renamed the period helper to interval. #676
    * Removed existing testing helpers: test() and set_test_now(). #626
    * Dropped support for Python 3.7. #734
    * Rewrote extensions in Rust. #721
    * Made day of week convention more consistent across the codebase. #731    
    * Relaxed dependency constraints. #760
    * The testing helpers are now optional and must be opted-in via the test extra. #778
   Fixed
    * Fixed datetime string representation to match the native library. #733
    * Fixed issues on some system when retrieving the local timezone. #733
    * Fixed DST handling in start_of()/end_of() methods. #713
    * Removed remaining mentions of periods instead of intervals. #757
    * Fixed the behavior of the week_of_month property for edge cases in January and December. #774
    * Fixed the handling of the fold attribute when deep-copying a DateTime instance. #776
    * Fixed errors where hours and days were not handled properly when adding durations. #775
    * Fixed errors where hours and days were not handled properly when adding durations. #775
   Locales
    * Added the sk locale. #575
    * Added the ja locale. #610
    * Added the he locale. #585
    * Added the sv locale. #562

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pendulum?expand=0&rev=18
2025-01-07 19:03:01 +00:00
6 changed files with 90 additions and 24 deletions

7
_service Normal file
View File

@@ -0,0 +1,7 @@
<services>
<service name="cargo_vendor" mode="manual">
<param name="src">pendulum*.tar.gz</param>
<param name="compression">zst</param>
<param name="custom-root">rust</param>
</service>
</services>

Binary file not shown.

BIN
pendulum-3.0.0-gh.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,62 @@
-------------------------------------------------------------------
Tue Mar 18 18:24:31 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Move stray reference for gh#python-pendulum/pendulum#844
-------------------------------------------------------------------
Tue Mar 18 09:50:32 UTC 2025 - Axel Braun <axel.braun@gmx.de>
- activate python 3.13
-------------------------------------------------------------------
Fri Jan 10 15:47:09 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Skip python313: Not maintained enough
gh#python-pendulum/pendulum#844
-------------------------------------------------------------------
Wed Jan 8 09:27:19 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Exclude 32bit platforms: Fails to build with overflow errors
-------------------------------------------------------------------
Tue Jan 7 20:44:47 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Fix sources and revert to github tarball: tests missing
-------------------------------------------------------------------
Fri Jan 3 17:36:36 UTC 2025 - Yunus Acar <yunus.acar@suse.com>
- Update to version 3.0.0
Added
* Added new testing helpers to time travel. #626
* Made instance() support all native types (date, time, datetime). #732
Changed
* Dropped support for Python 2.7, 3.5 and 3.6. #569
* The Timezone class now relies on the native zoneinfo.ZoneInfo class. #569
* Renamed the Period class to Interval. #676
* Renamed the period helper to interval. #676
* Removed existing testing helpers: test() and set_test_now(). #626
* Dropped support for Python 3.7. #734
* Rewrote extensions in Rust. #721
* Made day of week convention more consistent across the codebase. #731
* Relaxed dependency constraints. #760
* The testing helpers are now optional and must be opted-in via the test extra. #778
Fixed
* Fixed datetime string representation to match the native library. #733
* Fixed issues on some system when retrieving the local timezone. #733
* Fixed DST handling in start_of()/end_of() methods. #713
* Removed remaining mentions of periods instead of intervals. #757
* Fixed the behavior of the week_of_month property for edge cases in January and December. #774
* Fixed the handling of the fold attribute when deep-copying a DateTime instance. #776
* Fixed errors where hours and days were not handled properly when adding durations. #775
* Fixed errors where hours and days were not handled properly when adding durations. #775
Locales
* Added the sk locale. #575
* Added the ja locale. #610
* Added the he locale. #585
* Added the sv locale. #562
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jun 10 17:44:54 UTC 2023 - ecsos <ecsos@opensuse.org> Sat Jun 10 17:44:54 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pendulum # spec file for package python-pendulum
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,57 +18,54 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-pendulum Name: python-pendulum
Version: 2.1.2 Version: 3.0.0
Release: 0 Release: 0
Summary: Python datetimes made easy Summary: Python datetimes made easy
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://pendulum.eustace.io URL: https://pendulum.eustace.io
# https://github.com/sdispater/pendulum/issues/453 # https://github.com/sdispater/pendulum/issues/453
Source: https://github.com/sdispater/pendulum/archive/%{version}.tar.gz#/pendulum-%{version}.tar.gz Source0: https://github.com/sdispater/pendulum/archive/%{version}.tar.gz#/pendulum-%{version}-gh.tar.gz
BuildRequires: %{python_module devel} Source1: vendor.tar.zst
BuildRequires: %{python_module freezegun} BuildRequires: %{python_module maturin}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil >= 2.6} BuildRequires: %{python_module python-dateutil >= 2.6}
BuildRequires: %{python_module pytz >= 2020.1} BuildRequires: %{python_module pytz >= 2022.1}
BuildRequires: %{python_module pytzdata >= 2020.1} # gh#python-pendulum/pendulum#844
BuildRequires: %{python_module typing} BuildRequires: %{python_module time-machine >= 2.16.0}
BuildRequires: %{python_module tzdata}
BuildRequires: cargo-packaging
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-python-dateutil >= 2.6 Requires: python-python-dateutil >= 2.6
Requires: python-pytz >= 2020.1 Requires: python-time-machine >= 2.16.0
Requires: python-pytzdata >= 2020.1 Requires: python-tzdata >= 2020.1
Requires: python-typing ExcludeArch: %ix86 %arm32
%python_subpackages %python_subpackages
%description %description
Python datetimes made easy Python datetimes made easy
%prep %prep
%setup -q -n pendulum-%{version} %autosetup -p1 -a1 -n pendulum-%{version}
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
export CARGO_HOME=$PWD/rust/.cargo
%pyproject_wheel %pyproject_wheel
%install %install
%pyproject_install %pyproject_install
%{python_expand # remove source files %python_expand %fdupes %{buildroot}%{$python_sitearch}
find %{buildroot}%{$python_sitearch} -name '*.c' -delete
%fdupes %{buildroot}%{$python_sitearch}
}
%check %check
# https://github.com/sdispater/pendulum/issues/644 %pytest_arch
donttest="(test_timezone and test_dst) or (test_behavior and test_proper_dst)"
%pytest_arch -k "not ($donttest)"
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python_sitearch}/pendulum %{python_sitearch}/pendulum
%{python_sitearch}/pendulum-%{version}*-info %{python_sitearch}/pendulum-%{version}.dist-info
%changelog %changelog

BIN
vendor.tar.zst LFS Normal file

Binary file not shown.