From 36833afcd904b45e364cd4693bd4e2f6c4861b0e82e22564e979c8f470fb8417 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 17 Mar 2021 05:50:00 +0000 Subject: [PATCH] =?UTF-8?q?-=20Update=20to=202.3.2:=20=20=20*=20Switch=20P?= =?UTF-8?q?ersian=20calendar=20to=20astronomical=20computation=20(was=20no?= =?UTF-8?q?n-canonical=20algorithmic=20method)=20=20=20*=20Fix=20inappropr?= =?UTF-8?q?iate=20uses=20of=20trunc,=20which=20caused=20several=20errors?= =?UTF-8?q?=20before=20the=20Julian=20Day=20epoch=20(#39,=20#40,=20#42)=20?= =?UTF-8?q?=20=20*=20Fix=20bug=20in=20julian.leap=20(#43)=20=20=20*=20Add?= =?UTF-8?q?=20official=20suppport=20and=20tests=20for=20Python=203.9=20=20?= =?UTF-8?q?=20*=20Raise=20ValueError=20for=20attempted=20conversion=20of?= =?UTF-8?q?=20dates=20before=20the=20Mayan=20epoch=20=20=20*=20Fix=20bug?= =?UTF-8?q?=20in=20Bahai=20calculations=20during=20Ayy=C3=A1m-i-H=C3=A1=20?= =?UTF-8?q?(#32).=20Thanks=20@chiuczek=20=20=20*=20Regularize=20variable?= =?UTF-8?q?=20names:=20=20=20*=20coptic:=20rename=20MONTH=5FNAMES=20to=20M?= =?UTF-8?q?ONTHS,=20rename=20DAY=5FNAMES=20to=20WEEKDAYS=20=20=20*=20frenc?= =?UTF-8?q?h=5Frepublican:=20add=20MONTHS=20=20=20*=20mayan:=20rename=20HA?= =?UTF-8?q?AB=5FMONTHS=20to=20HAAB,=20rename=20TZOLKIN=5FNAMES=20to=20TZOL?= =?UTF-8?q?KIN=20=20=20*=20Add=20some=20Jewish=20and=20Islamic=20holidays?= =?UTF-8?q?=20to=20holidays:=20shemini=5Fazeret,=20lag=5Fbaomer,=20tu=5Fbe?= =?UTF-8?q?shvat,=20tisha=5Fbav,=20ramadan,=20ashura,=20eid=5Falfitr,=20ei?= =?UTF-8?q?d=5Faladha=20=20=20*=20Add=20docs.=20See=20https://convertdate.?= =?UTF-8?q?readthedocs.io/=20=20=20*=20Fix=20December=2031st=20bug=20in=20?= =?UTF-8?q?ordinal=20(#34)=20=20=20*=20Add=20Indigenous=20Peoples'=20Day?= =?UTF-8?q?=20and=20Juneteenth=20to=20holidays,=20deprecate=20Columbus=20d?= =?UTF-8?q?ay=20-=20Switch=20to=20using=20pytest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-convertdate?expand=0&rev=13 --- python-convertdate.changes | 20 ++++++++++++++++++++ python-convertdate.spec | 7 ++++--- v2.2.0.tar.gz | 3 --- v2.3.2.tar.gz | 3 +++ 4 files changed, 27 insertions(+), 6 deletions(-) delete mode 100644 v2.2.0.tar.gz create mode 100644 v2.3.2.tar.gz diff --git a/python-convertdate.changes b/python-convertdate.changes index e8653a6..a607f2d 100644 --- a/python-convertdate.changes +++ b/python-convertdate.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Wed Mar 17 05:48:21 UTC 2021 - Steve Kowalik + +- Update to 2.3.2: + * Switch Persian calendar to astronomical computation (was non-canonical algorithmic method) + * Fix inappropriate uses of trunc, which caused several errors before the Julian Day epoch (#39, #40, #42) + * Fix bug in julian.leap (#43) + * Add official suppport and tests for Python 3.9 + * Raise ValueError for attempted conversion of dates before the Mayan epoch + * Fix bug in Bahai calculations during Ayyám-i-Há (#32). Thanks @chiuczek + * Regularize variable names: + * coptic: rename MONTH_NAMES to MONTHS, rename DAY_NAMES to WEEKDAYS + * french_republican: add MONTHS + * mayan: rename HAAB_MONTHS to HAAB, rename TZOLKIN_NAMES to TZOLKIN + * Add some Jewish and Islamic holidays to holidays: shemini_azeret, lag_baomer, tu_beshvat, tisha_bav, ramadan, ashura, eid_alfitr, eid_aladha + * Add docs. See https://convertdate.readthedocs.io/ + * Fix December 31st bug in ordinal (#34) + * Add Indigenous Peoples' Day and Juneteenth to holidays, deprecate Columbus day +- Switch to using pytest + ------------------------------------------------------------------- Mon May 4 10:38:40 UTC 2020 - Tomáš Chvátal diff --git a/python-convertdate.spec b/python-convertdate.spec index 05cb9a5..c75eef3 100644 --- a/python-convertdate.spec +++ b/python-convertdate.spec @@ -1,7 +1,7 @@ # # spec file for package python-convertdate # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-convertdate -Version: 2.2.0 +Version: 2.3.2 Release: 0 Summary: Module for date conversions from and to Gregorian calendar License: MIT @@ -32,6 +32,7 @@ Requires: python-pytz >= 2014.10 BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PyMeeus >= 0.3.6} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz >= 2014.10} # /SECTION %python_subpackages @@ -56,7 +57,7 @@ export LC_ALL="en_US.UTF8" %check export LC_ALL="en_US.UTF8" -%python_exec setup.py test +%pytest %files %{python_files} %doc README.md diff --git a/v2.2.0.tar.gz b/v2.2.0.tar.gz deleted file mode 100644 index 18afe58..0000000 --- a/v2.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b465dfeaad6575826c46e1196afb8f8bcfc46b3c9a631a0c4b934a09526d0f2 -size 37221 diff --git a/v2.3.2.tar.gz b/v2.3.2.tar.gz new file mode 100644 index 0000000..c9589c9 --- /dev/null +++ b/v2.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec0757193a5263647ae8ecb26ca1cd7c0f9da9f81a287cfd515ab176e62ebe86 +size 52155