commit f18099d270e32d6c7d19144b2c72c427b5334b80ef3cf3346c52eb973596ddf1 Author: Matej Cepl Date: Thu Oct 31 18:46:06 2024 +0000 Enable sle15_python_module_pythons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jdcal?expand=0&rev=13 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/jdcal-1.4.1.tar.gz b/jdcal-1.4.1.tar.gz new file mode 100644 index 0000000..f6ac22a --- /dev/null +++ b/jdcal-1.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:472872e096eb8df219c23f2689fc336668bdb43d194094b5cc1707e1640acfc8 +size 7479 diff --git a/python-jdcal.changes b/python-jdcal.changes new file mode 100644 index 0000000..f21061a --- /dev/null +++ b/python-jdcal.changes @@ -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 + +- 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 + diff --git a/python-jdcal.spec b/python-jdcal.spec new file mode 100644 index 0000000..873b1fc --- /dev/null +++ b/python-jdcal.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-jdcal +# +# Copyright (c) 2024 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-%{**}} +%{?sle15_python_module_pythons} +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