Sync from SUSE:SLFO:Main python-jdcal revision b46d20241212cb1f34d6680b4df099af

This commit is contained in:
Adrian Schröter 2024-05-03 21:12:40 +02:00
commit 1379cc8449
4 changed files with 129 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
jdcal-1.4.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

38
python-jdcal.changes Normal file
View File

@ -0,0 +1,38 @@
-------------------------------------------------------------------
Wed May 22 12:52:40 UTC 2019 - pgajdos@suse.com
- version update to 1.4.1
* Remove testing for Python 2.6 and 3.3.
* Added testing for Python 3.7.
* Removed unused function `fpart`.
- use pytest macro
-------------------------------------------------------------------
Tue Dec 4 12:49:26 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Tue Aug 7 14:56:07 UTC 2018 - toddrme2178@gmail.com
- Update to 1.4
* Universal wheel distribution.
* Test to compare gcal2jd with astropy._erfa.cal2jd.
* Add more Python versions on Travis.
-------------------------------------------------------------------
Wed Apr 19 15:30:41 UTC 2017 - toddrme2178@gmail.com
- Update to version 1.3
- Implement single-spec version.
-------------------------------------------------------------------
Thu Dec 10 16:24:48 UTC 2015 - bruno@ioda-net.ch
- Update to upstream 1.2 version
-------------------------------------------------------------------
Tue Nov 18 13:44:31 UTC 2014 - toddrme2178@gmail.com
- Initial version

65
python-jdcal.spec Normal file
View File

@ -0,0 +1,65 @@
#
# spec file for package python-jdcal
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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-jdcal
Version: 1.4.1
Release: 0
Summary: Julian dates from proleptic Gregorian and Julian calendars
License: BSD-2-Clause
Group: Development/Languages/Python
Url: http://github.com/phn/jdcal
Source: https://files.pythonhosted.org/packages/source/j/jdcal/jdcal-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
BuildArch: noarch
%python_subpackages
%description
This module contains functions for converting between Julian dates and
calendar dates.
A function for converting Gregorian calendar dates to Julian dates, and
another function for converting Julian calendar dates to Julian dates
are defined. Two functions for the reverse calculations are also
defined.
%prep
%setup -q -n jdcal-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE.txt
%{python_sitelib}/*
%changelog