forked from pool/python-hijri-converter
* Fixed location of type checking marker file. (#10 bt @dimbleby) * Added some missing variable annotations to ummalqura module. * Fixed an issue when generating documentation. * Fixed some typos in docstrings and improved documentation. * Other minor fixes and enhancements. * Fixed calculation of month 12 of year 1354 AH. * Fixed an issue when generating documentation without the package being installed. (#7) * Refactored internal helper functions. * Added today() classmethod to Hijri class to get the Hijri Object of today's date. * Added separator and padding parameters to dmyformat() method to have more control on formatting. * Refactored locales for better management and testing. * Updated main classes to be conveniently imported into the package level e.g. from hijri_converter import Hijri, Gregorian. * Removed deprecated method slashformat() from Hijri and Gregorian classes. * Other minor fixes and internal enhancements. * Changed Hijri rich comparison to return NotImplemented when the second operand is not Hijri class. * Updated packaging configuration files and local development workflow. * Other minor fixes and documentation enhancements. * Added dmyformat() to return dates in DD/MM/YYYY format. * Deprecated slashformat() method to be replaced by dmyformat() method. * Fixed PyPI package not including some required files. (#3) - Stop using python_sitelib/* OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hijri-converter?expand=0&rev=3
57 lines
1.7 KiB
RPMSpec
57 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package python-hijri-converter
|
|
#
|
|
# Copyright (c) 2023 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/
|
|
#
|
|
|
|
|
|
%define modname hijri-converter
|
|
Name: python-hijri-converter
|
|
Version: 2.2.4
|
|
Release: 0
|
|
Summary: Python package to convert accurately between Hijri and Gregorian dates
|
|
License: MIT
|
|
URL: https://github.com/dralshehri/hijri-converter
|
|
Source: https://github.com/dralshehri/%{modname}/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
A Python package to convert accurately between Hijri and Gregorian dates using the Umm al-Qura calendar of Saudi Arabia.
|
|
|
|
%prep
|
|
%setup -q -n hijri-converter-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CHANGELOG.md README.md
|
|
%{python_sitelib}/hijri_converter
|
|
%{python_sitelib}/hijri_converter*info
|
|
|
|
%changelog
|