Hello community, here is the log from the commit of package python-jdcal for openSUSE:Factory checked in at 2018-08-24 17:00:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jdcal (Old) and /work/SRC/openSUSE:Factory/.python-jdcal.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jdcal" Fri Aug 24 17:00:07 2018 rev:4 rq:627933 version:1.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jdcal/python-jdcal.changes 2017-05-08 19:02:49.253781365 +0200 +++ /work/SRC/openSUSE:Factory/.python-jdcal.new/python-jdcal.changes 2018-08-24 17:00:09.445790708 +0200 @@ -1,0 +2,8 @@ +Tue Aug 7 14:56:07 UTC 2018 - [email protected] + +- Update to 1.4 + * Universal wheel distribution. + * Test to compare gcal2jd with astropy._erfa.cal2jd. + * Add more Python versions on Travis. + +------------------------------------------------------------------- Old: ---- jdcal-1.3.tar.gz New: ---- jdcal-1.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jdcal.spec ++++++ --- /var/tmp/diff_new_pack.PKqeEf/_old 2018-08-24 17:00:10.405791845 +0200 +++ /var/tmp/diff_new_pack.PKqeEf/_new 2018-08-24 17:00:10.409791850 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-jdcal # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -16,26 +16,24 @@ # -%bcond_without tests - %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-jdcal -Version: 1.3 +Version: 1.4 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: fdupes -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} -%if %{with tests} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements BuildRequires: %{python_module pytest} -%endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build +# /SECTION BuildArch: noarch + %python_subpackages %description @@ -57,14 +55,12 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with tests} %check %python_exec test_jdcal.py -%endif %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE.txt README.rst +%doc README.rst +%license LICENSE.txt %{python_sitelib}/* %changelog ++++++ jdcal-1.3.tar.gz -> jdcal-1.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.3/PKG-INFO new/jdcal-1.4/PKG-INFO --- old/jdcal-1.3/PKG-INFO 2016-09-19 08:32:38.000000000 +0200 +++ new/jdcal-1.4/PKG-INFO 2018-04-14 16:48:01.000000000 +0200 @@ -1,19 +1,20 @@ Metadata-Version: 1.1 Name: jdcal -Version: 1.3 +Version: 1.4 Summary: Julian dates from proleptic Gregorian and Julian calendars. -Home-page: http://github.com/phn/jdcal +Home-page: https://github.com/phn/jdcal Author: Prasanth Nair Author-email: [email protected] License: BSD +Description-Content-Type: UNKNOWN Description: jdcal ===== .. _TPM: http://www.sal.wisc.edu/~jwp/astro/tpm/tpm.html .. _Jeffrey W. Percival: http://www.sal.wisc.edu/~jwp/ .. _IAU SOFA: http://www.iausofa.org/ - .. _pip: http://pypi.python.org/pypi/pip - .. _easy_install: packages.python.org/distribute/easy_install.html + .. _pip: https://pypi.python.org/pypi/pip + .. _easy_install: https://setuptools.readthedocs.io/en/latest/easy_install.html .. image:: https://travis-ci.org/phn/jdcal.svg?branch=master :target: https://travis-ci.org/phn/jdcal @@ -55,7 +56,7 @@ -------- Some examples are given below. For more information see - http://oneau.wordpress.com/jdcal/. + https://oneau.wordpress.com/2011/08/30/jdcal/. Gregorian calendar: @@ -157,7 +158,6 @@ For comments and suggestions, email to user `prasanthhn` in the `gmail.com` domain. - Platform: UNKNOWN Classifier: Development Status :: 6 - Mature Classifier: Intended Audience :: Science/Research @@ -165,3 +165,13 @@ Classifier: License :: OSI Approved :: BSD License Classifier: Topic :: Scientific/Engineering :: Astronomy Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.6 +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.3/README.rst new/jdcal-1.4/README.rst --- old/jdcal-1.3/README.rst 2015-11-11 03:55:20.000000000 +0100 +++ new/jdcal-1.4/README.rst 2018-04-14 15:48:16.000000000 +0200 @@ -4,8 +4,8 @@ .. _TPM: http://www.sal.wisc.edu/~jwp/astro/tpm/tpm.html .. _Jeffrey W. Percival: http://www.sal.wisc.edu/~jwp/ .. _IAU SOFA: http://www.iausofa.org/ -.. _pip: http://pypi.python.org/pypi/pip -.. _easy_install: packages.python.org/distribute/easy_install.html +.. _pip: https://pypi.python.org/pypi/pip +.. _easy_install: https://setuptools.readthedocs.io/en/latest/easy_install.html .. image:: https://travis-ci.org/phn/jdcal.svg?branch=master :target: https://travis-ci.org/phn/jdcal @@ -47,7 +47,7 @@ -------- Some examples are given below. For more information see -http://oneau.wordpress.com/jdcal/. +https://oneau.wordpress.com/2011/08/30/jdcal/. Gregorian calendar: @@ -148,4 +148,3 @@ For comments and suggestions, email to user `prasanthhn` in the `gmail.com` domain. - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.3/jdcal.egg-info/PKG-INFO new/jdcal-1.4/jdcal.egg-info/PKG-INFO --- old/jdcal-1.3/jdcal.egg-info/PKG-INFO 2016-09-19 08:32:38.000000000 +0200 +++ new/jdcal-1.4/jdcal.egg-info/PKG-INFO 2018-04-14 16:48:01.000000000 +0200 @@ -1,19 +1,20 @@ Metadata-Version: 1.1 Name: jdcal -Version: 1.3 +Version: 1.4 Summary: Julian dates from proleptic Gregorian and Julian calendars. -Home-page: http://github.com/phn/jdcal +Home-page: https://github.com/phn/jdcal Author: Prasanth Nair Author-email: [email protected] License: BSD +Description-Content-Type: UNKNOWN Description: jdcal ===== .. _TPM: http://www.sal.wisc.edu/~jwp/astro/tpm/tpm.html .. _Jeffrey W. Percival: http://www.sal.wisc.edu/~jwp/ .. _IAU SOFA: http://www.iausofa.org/ - .. _pip: http://pypi.python.org/pypi/pip - .. _easy_install: packages.python.org/distribute/easy_install.html + .. _pip: https://pypi.python.org/pypi/pip + .. _easy_install: https://setuptools.readthedocs.io/en/latest/easy_install.html .. image:: https://travis-ci.org/phn/jdcal.svg?branch=master :target: https://travis-ci.org/phn/jdcal @@ -55,7 +56,7 @@ -------- Some examples are given below. For more information see - http://oneau.wordpress.com/jdcal/. + https://oneau.wordpress.com/2011/08/30/jdcal/. Gregorian calendar: @@ -157,7 +158,6 @@ For comments and suggestions, email to user `prasanthhn` in the `gmail.com` domain. - Platform: UNKNOWN Classifier: Development Status :: 6 - Mature Classifier: Intended Audience :: Science/Research @@ -165,3 +165,13 @@ Classifier: License :: OSI Approved :: BSD License Classifier: Topic :: Scientific/Engineering :: Astronomy Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.6 +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.3/jdcal.egg-info/SOURCES.txt new/jdcal-1.4/jdcal.egg-info/SOURCES.txt --- old/jdcal-1.3/jdcal.egg-info/SOURCES.txt 2016-09-19 08:32:38.000000000 +0200 +++ new/jdcal-1.4/jdcal.egg-info/SOURCES.txt 2018-04-14 16:48:01.000000000 +0200 @@ -2,6 +2,7 @@ MANIFEST.in README.rst jdcal.py +setup.cfg setup.py test_jdcal.py jdcal.egg-info/PKG-INFO diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.3/jdcal.py new/jdcal-1.4/jdcal.py --- old/jdcal-1.3/jdcal.py 2016-09-19 07:14:37.000000000 +0200 +++ new/jdcal-1.4/jdcal.py 2018-04-14 16:28:36.000000000 +0200 @@ -36,13 +36,13 @@ :author: Prasanth Nair :contact: [email protected] -:license: BSD (http://www.opensource.org/licenses/bsd-license.php) +:license: BSD (https://opensource.org/licenses/bsd-license.php) """ from __future__ import division from __future__ import print_function import math -__version__ = "1.3" +__version__ = "1.4" MJD_0 = 2400000.5 MJD_JD2000 = 51544.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.3/setup.cfg new/jdcal-1.4/setup.cfg --- old/jdcal-1.3/setup.cfg 2016-09-19 08:32:38.000000000 +0200 +++ new/jdcal-1.4/setup.cfg 2018-04-14 16:48:01.000000000 +0200 @@ -1,5 +1,10 @@ +[bdist_wheel] +universal = 1 + +[metadata] +license_file = LICENSE.txt + [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.3/setup.py new/jdcal-1.4/setup.py --- old/jdcal-1.3/setup.py 2016-09-19 07:14:16.000000000 +0200 +++ new/jdcal-1.4/setup.py 2018-04-14 16:42:47.000000000 +0200 @@ -16,7 +16,7 @@ license='BSD', author="Prasanth Nair", author_email="[email protected]", - url='http://github.com/phn/jdcal', + url='https://github.com/phn/jdcal', classifiers=[ 'Development Status :: 6 - Mature', 'Intended Audience :: Science/Research', @@ -24,6 +24,16 @@ 'License :: OSI Approved :: BSD License', 'Topic :: Scientific/Engineering :: Astronomy', 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy', ], py_modules=["jdcal"] ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.3/test_jdcal.py new/jdcal-1.4/test_jdcal.py --- old/jdcal-1.3/test_jdcal.py 2015-11-10 13:20:58.000000000 +0100 +++ new/jdcal-1.4/test_jdcal.py 2018-04-14 16:23:07.000000000 +0200 @@ -94,26 +94,26 @@ assert x[i][3] <= 1e-15 -def pyslalib_un_available(): +def astropy_erfa_un_available(): x = True try: - from pyslalib import slalib - slalib.sla_cldj + from astropy import _erfa + import numpy as np + _erfa.cal2jd + np.allclose x = False except: pass return x [email protected](pyslalib_un_available(), reason="pyslalib not available") -def test_gcal2jd_with_sla_cldj(): - """Compare gcal2jd with slalib.sla_cldj.""" [email protected](astropy_erfa_un_available(), reason="astropy._erfa not available") +def test_gcal2jd_with_astropy_erfa_cal2jd(): + """Compare gcal2jd with astropy._erfa.cal2jd.""" import random - try: - from pyslalib import slalib - except ImportError: - print("SLALIB (PySLALIB not available).") - return 1 + import numpy as np + from astropy import _erfa + n = 1000 mday = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] @@ -128,13 +128,7 @@ if day[i] > mday[month[i]] + x: day[i] = mday[month[i]] - jd_jdc = [gcal2jd(y, m, d)[1] - for y, m, d in zip(year, month, day)] - jd_sla = [slalib.sla_cldj(y, m, d)[0] - for y, m, d in zip(year, month, day)] - diff = [abs(i - j) for i, j in zip(jd_sla, jd_jdc)] - assert max(diff) <= 1e-8 - assert min(diff) <= 1e-8 + jd_jdcal = np.array([gcal2jd(y, m, d) for y, m, d in zip(year, month, day)]) + jd_erfa = np.array(_erfa.cal2jd(year, month, day)).T -if __name__ == '__main__': - pytest.main() + assert np.allclose(jd_jdcal, jd_erfa)
