17
0
Files
python-convertdate/python-convertdate.spec
Steve Kowalik 36833afcd9 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-convertdate?expand=0&rev=13
2021-03-17 05:50:00 +00:00

68 lines
2.0 KiB
RPMSpec

#
# spec file for package python-convertdate
#
# 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
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-convertdate
Version: 2.3.2
Release: 0
Summary: Module for date conversions from and to Gregorian calendar
License: MIT
URL: https://github.com/fitnr/convertdate
Source: https://github.com/fitnr/convertdate/archive/v%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyMeeus >= 0.3.6
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
%description
A Python module for converting between Gregorian dates and other
calendar systems. Calendars included: Baha'i, French Republican,
Hebrew, Indian Civil, Islamic, ISO, Julian, Mayan and Persian.
%prep
%setup -q -n convertdate-%{version}
sed -i -e 's:, < 2020::g' setup.py
%build
export LC_ALL="en_US.UTF8"
%python_build
%install
export LC_ALL="en_US.UTF8"
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LC_ALL="en_US.UTF8"
%pytest
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%changelog