commit python-jdcal for openSUSE:Factory
Hello community, here is the log from the commit of package python-jdcal for openSUSE:Factory checked in at 2019-05-24 11:30:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jdcal (Old) and /work/SRC/openSUSE:Factory/.python-jdcal.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-jdcal" Fri May 24 11:30:12 2019 rev:6 rq:704752 version:1.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jdcal/python-jdcal.changes 2018-12-24 11:38:32.317604030 +0100 +++ /work/SRC/openSUSE:Factory/.python-jdcal.new.5148/python-jdcal.changes 2019-05-24 11:30:17.005423491 +0200 @@ -1,0 +2,9 @@ +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 + +------------------------------------------------------------------- Old: ---- jdcal-1.4.tar.gz New: ---- jdcal-1.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jdcal.spec ++++++ --- /var/tmp/diff_new_pack.iSiznQ/_old 2019-05-24 11:30:17.745423300 +0200 +++ /var/tmp/diff_new_pack.iSiznQ/_new 2019-05-24 11:30:17.745423300 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-jdcal # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-jdcal -Version: 1.4 +Version: 1.4.1 Release: 0 Summary: Julian dates from proleptic Gregorian and Julian calendars License: BSD-2-Clause @@ -55,7 +55,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec test_jdcal.py +%pytest %files %{python_files} %doc README.rst ++++++ jdcal-1.4.tar.gz -> jdcal-1.4.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.4/PKG-INFO new/jdcal-1.4.1/PKG-INFO --- old/jdcal-1.4/PKG-INFO 2018-04-14 16:48:01.000000000 +0200 +++ new/jdcal-1.4.1/PKG-INFO 2019-04-24 12:21:00.000000000 +0200 @@ -1,19 +1,18 @@ Metadata-Version: 1.1 Name: jdcal -Version: 1.4 +Version: 1.4.1 Summary: Julian dates from proleptic Gregorian and Julian calendars. Home-page: https://github.com/phn/jdcal Author: Prasanth Nair Author-email: prasanthhn@gmail.com 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: https://pypi.python.org/pypi/pip + .. _pip: https://pypi.org/project/pip/ .. _easy_install: https://setuptools.readthedocs.io/en/latest/easy_install.html .. image:: https://travis-ci.org/phn/jdcal.svg?branch=master @@ -166,12 +165,11 @@ 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 :: 3.7 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.4/README.rst new/jdcal-1.4.1/README.rst --- old/jdcal-1.4/README.rst 2018-04-14 15:48:16.000000000 +0200 +++ new/jdcal-1.4.1/README.rst 2019-04-24 12:02:28.000000000 +0200 @@ -4,7 +4,7 @@ .. _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: https://pypi.python.org/pypi/pip +.. _pip: https://pypi.org/project/pip/ .. _easy_install: https://setuptools.readthedocs.io/en/latest/easy_install.html .. image:: https://travis-ci.org/phn/jdcal.svg?branch=master diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.4/jdcal.egg-info/PKG-INFO new/jdcal-1.4.1/jdcal.egg-info/PKG-INFO --- old/jdcal-1.4/jdcal.egg-info/PKG-INFO 2018-04-14 16:48:01.000000000 +0200 +++ new/jdcal-1.4.1/jdcal.egg-info/PKG-INFO 2019-04-24 12:21:00.000000000 +0200 @@ -1,19 +1,18 @@ Metadata-Version: 1.1 Name: jdcal -Version: 1.4 +Version: 1.4.1 Summary: Julian dates from proleptic Gregorian and Julian calendars. Home-page: https://github.com/phn/jdcal Author: Prasanth Nair Author-email: prasanthhn@gmail.com 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: https://pypi.python.org/pypi/pip + .. _pip: https://pypi.org/project/pip/ .. _easy_install: https://setuptools.readthedocs.io/en/latest/easy_install.html .. image:: https://travis-ci.org/phn/jdcal.svg?branch=master @@ -166,12 +165,11 @@ 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 :: 3.7 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.4/jdcal.py new/jdcal-1.4.1/jdcal.py --- old/jdcal-1.4/jdcal.py 2018-04-14 16:28:36.000000000 +0200 +++ new/jdcal-1.4.1/jdcal.py 2019-04-24 12:12:59.000000000 +0200 @@ -42,17 +42,12 @@ from __future__ import print_function import math -__version__ = "1.4" +__version__ = "1.4.1" MJD_0 = 2400000.5 MJD_JD2000 = 51544.5 -def fpart(x): - """Return fractional part of given number.""" - return math.modf(x)[0] - - def ipart(x): """Return integer part of given number.""" return math.modf(x)[1] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.4/setup.py new/jdcal-1.4.1/setup.py --- old/jdcal-1.4/setup.py 2018-04-14 16:42:47.000000000 +0200 +++ new/jdcal-1.4.1/setup.py 2019-04-24 12:02:28.000000000 +0200 @@ -25,13 +25,12 @@ '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 :: 3.7', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.4/test_jdcal.py new/jdcal-1.4.1/test_jdcal.py --- old/jdcal-1.4/test_jdcal.py 2018-04-14 16:23:07.000000000 +0200 +++ new/jdcal-1.4.1/test_jdcal.py 2019-04-24 12:02:28.000000000 +0200 @@ -2,14 +2,7 @@ import pytest from jdcal import ( - fpart, ipart, is_leap, gcal2jd, jd2gcal, jcal2jd, jd2jcal, MJD_0) - - -def test_fpart(): - assert round(fpart(20.345), 12) == 0.345 - assert round(fpart(-20.345), 12) == -0.345 - assert round(fpart(0.12345), 12) == 0.12345 - assert round(fpart(-0.6789), 12) == -0.6789 + ipart, is_leap, gcal2jd, jd2gcal, jcal2jd, jd2jcal, MJD_0) def test_ipart():
participants (1)
-
root