Hello community, here is the log from the commit of package python-jdcal for openSUSE:Factory checked in at 2017-05-08 19:02:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jdcal (Old) and /work/SRC/openSUSE:Factory/.python-jdcal.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jdcal" Mon May 8 19:02:23 2017 rev:3 rq:489391 version:1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jdcal/python-jdcal.changes 2015-12-23 08:49:31.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-jdcal.new/python-jdcal.changes 2017-05-08 19:02:49.253781365 +0200 @@ -1,0 +2,6 @@ +Wed Apr 19 15:30:41 UTC 2017 - toddrme2...@gmail.com + +- Update to version 1.3 +- Implement single-spec version. + +------------------------------------------------------------------- Old: ---- jdcal-1.2.tar.gz New: ---- jdcal-1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jdcal.spec ++++++ --- /var/tmp/diff_new_pack.KJkYUf/_old 2017-05-08 19:02:49.813702267 +0200 +++ /var/tmp/diff_new_pack.KJkYUf/_new 2017-05-08 19:02:49.821701137 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-jdcal # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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,24 +16,27 @@ # -# -%define _pyname jdcal +%bcond_without tests -Name: python-%{_pyname} -Version: 1.2 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-jdcal +Version: 1.3 Release: 0 Summary: Julian dates from proleptic Gregorian and Julian calendars License: BSD-2-Clause Group: Development/Languages/Python -Url: http://github.com/phn/%{_pyname} -Source: https://pypi.python.org/packages/source/j/%{_pyname}/%{_pyname}-%{version}.tar.gz -BuildRequires: python-devel +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: %{python_module pytest} +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description This module contains functions for converting between Julian dates and @@ -45,17 +48,23 @@ defined. %prep -%setup -q -n %{_pyname}-%{version} +%setup -q -n jdcal-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with tests} +%check +%python_exec test_jdcal.py +%endif -%files +%files %{python_files} %defattr(-,root,root,-) -%doc README.rst +%doc LICENSE.txt README.rst %{python_sitelib}/* %changelog ++++++ jdcal-1.2.tar.gz -> jdcal-1.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.2/MANIFEST.in new/jdcal-1.3/MANIFEST.in --- old/jdcal-1.2/MANIFEST.in 1970-01-01 01:00:00.000000000 +0100 +++ new/jdcal-1.3/MANIFEST.in 2015-11-11 03:50:54.000000000 +0100 @@ -0,0 +1,3 @@ +include README.rst +include LICENSE.txt +include *jdcal.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.2/PKG-INFO new/jdcal-1.3/PKG-INFO --- old/jdcal-1.2/PKG-INFO 2015-11-11 04:07:34.000000000 +0100 +++ new/jdcal-1.3/PKG-INFO 2016-09-19 08:32:38.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: jdcal -Version: 1.2 +Version: 1.3 Summary: Julian dates from proleptic Gregorian and Julian calendars. Home-page: http://github.com/phn/jdcal Author: Prasanth Nair diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.2/jdcal.egg-info/PKG-INFO new/jdcal-1.3/jdcal.egg-info/PKG-INFO --- old/jdcal-1.2/jdcal.egg-info/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 +++ new/jdcal-1.3/jdcal.egg-info/PKG-INFO 2016-09-19 08:32:38.000000000 +0200 @@ -0,0 +1,167 @@ +Metadata-Version: 1.1 +Name: jdcal +Version: 1.3 +Summary: Julian dates from proleptic Gregorian and Julian calendars. +Home-page: http://github.com/phn/jdcal +Author: Prasanth Nair +Author-email: prasant...@gmail.com +License: BSD +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 + + .. image:: https://travis-ci.org/phn/jdcal.svg?branch=master + :target: https://travis-ci.org/phn/jdcal + + + 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. + + Different regions of the world switched to Gregorian calendar from + Julian calendar on different dates. Having separate functions for Julian + and Gregorian calendars allow maximum flexibility in choosing the + relevant calendar. + + Julian dates are stored in two floating point numbers (double). Julian + dates, and Modified Julian dates, are large numbers. If only one number + is used, then the precision of the time stored is limited. Using two + numbers, time can be split in a manner that will allow maximum + precision. For example, the first number could be the Julian date for + the beginning of a day and the second number could be the fractional + day. Calculations that need the latter part can now work with maximum + precision. + + All the above functions are "proleptic". This means that they work for + dates on which the concerned calendar is not valid. For example, + Gregorian calendar was not used prior to around October 1582. + + A function to test if a given Gregorian calendar year is a leap year is + also defined. + + Zero point of Modified Julian Date (MJD) and the MJD of 2000/1/1 + 12:00:00 are also given as module level constants. + + Examples + -------- + + Some examples are given below. For more information see + http://oneau.wordpress.com/jdcal/. + + Gregorian calendar: + + .. code-block:: python + + >>> from jdcal import gcal2jd, jd2gcal + >>> gcal2jd(2000,1,1) + (2400000.5, 51544.0) + >>> 2400000.5 + 51544.0 + 0.5 + 2451545.0 + + >>> gcal2jd(2000,2,30) + (2400000.5, 51604.0) + >>> gcal2jd(2000,3,1) + (2400000.5, 51604.0) + >>> gcal2jd(2001,2,30) + (2400000.5, 51970.0) + >>> gcal2jd(2001,3,2) + (2400000.5, 51970.0) + + >>> jd2gcal(*gcal2jd(2000,1,1)) + (2000, 1, 1, 0.0) + >>> jd2gcal(*gcal2jd(1950,1,1)) + (1950, 1, 1, 0.0) + + >>> gcal2jd(2000,1,1) + (2400000.5, 51544.0) + >>> jd2gcal(2400000.5, 51544.0) + (2000, 1, 1, 0.0) + >>> jd2gcal(2400000.5, 51544.5) + (2000, 1, 1, 0.5) + >>> jd2gcal(2400000.5, 51544.245) + (2000, 1, 1, 0.24500000000261934) + >>> jd2gcal(2400000.5, 51544.1) + (2000, 1, 1, 0.099999999998544808) + >>> jd2gcal(2400000.5, 51544.75) + (2000, 1, 1, 0.75) + + Julian calendar: + + .. code-block:: python + + >>> jd2jcal(*jcal2jd(2000, 1, 1)) + (2000, 1, 1, 0.0) + >>> jd2jcal(*jcal2jd(-4000, 10, 11)) + (-4000, 10, 11, 0.0) + + Gregorian leap year: + + .. code-block:: python + + >>> from jdcal import is_leap + >>> is_leap(2000) + True + >>> is_leap(2100) + False + + JD for zero point of MJD, and MJD for JD2000.0: + + .. code-block:: python + + >>> from jdcal import MJD_0, MJD_JD2000 + >>> print MJD_0 + 2400000.5 + >>> print MJD_JD2000 + 51544.5 + + + Installation + ------------ + + The module can be installed using `pip`_ or `easy_install`_:: + + $ pip install jdcal + + or, + + :: + + $ easy_install jdcal + + + Tests are in ``test_jdcal.py``. + + Credits + -------- + + 1. A good amount of the code is based on the excellent `TPM`_ C library + by `Jeffrey W. Percival`_. + 2. The inspiration to split Julian dates into two numbers came from the + `IAU SOFA`_ C library. No code or algorithm from the SOFA library is + used in `jdcal`. + + License + ------- + + Released under BSD; see LICENSE.txt. + + 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 +Classifier: Operating System :: OS Independent +Classifier: License :: OSI Approved :: BSD License +Classifier: Topic :: Scientific/Engineering :: Astronomy +Classifier: Programming Language :: Python diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.2/jdcal.egg-info/SOURCES.txt new/jdcal-1.3/jdcal.egg-info/SOURCES.txt --- old/jdcal-1.2/jdcal.egg-info/SOURCES.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/jdcal-1.3/jdcal.egg-info/SOURCES.txt 2016-09-19 08:32:38.000000000 +0200 @@ -0,0 +1,10 @@ +LICENSE.txt +MANIFEST.in +README.rst +jdcal.py +setup.py +test_jdcal.py +jdcal.egg-info/PKG-INFO +jdcal.egg-info/SOURCES.txt +jdcal.egg-info/dependency_links.txt +jdcal.egg-info/top_level.txt \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.2/jdcal.egg-info/dependency_links.txt new/jdcal-1.3/jdcal.egg-info/dependency_links.txt --- old/jdcal-1.2/jdcal.egg-info/dependency_links.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/jdcal-1.3/jdcal.egg-info/dependency_links.txt 2016-09-19 08:32:38.000000000 +0200 @@ -0,0 +1 @@ + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.2/jdcal.egg-info/top_level.txt new/jdcal-1.3/jdcal.egg-info/top_level.txt --- old/jdcal-1.2/jdcal.egg-info/top_level.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/jdcal-1.3/jdcal.egg-info/top_level.txt 2016-09-19 08:32:38.000000000 +0200 @@ -0,0 +1 @@ +jdcal diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.2/jdcal.py new/jdcal-1.3/jdcal.py --- old/jdcal-1.2/jdcal.py 2015-11-11 04:03:41.000000000 +0100 +++ new/jdcal-1.3/jdcal.py 2016-09-19 07:14:37.000000000 +0200 @@ -42,7 +42,7 @@ from __future__ import print_function import math -__version__ = "1.2" +__version__ = "1.3" MJD_0 = 2400000.5 MJD_JD2000 = 51544.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.2/setup.cfg new/jdcal-1.3/setup.cfg --- old/jdcal-1.2/setup.cfg 1970-01-01 01:00:00.000000000 +0100 +++ new/jdcal-1.3/setup.cfg 2016-09-19 08:32:38.000000000 +0200 @@ -0,0 +1,5 @@ +[egg_info] +tag_build = +tag_date = 0 +tag_svn_revision = 0 + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jdcal-1.2/setup.py new/jdcal-1.3/setup.py --- old/jdcal-1.2/setup.py 2015-11-09 08:37:43.000000000 +0100 +++ new/jdcal-1.3/setup.py 2016-09-19 07:14:16.000000000 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python -from distutils.core import setup +from setuptools import setup import jdcal