commit python-pydicom for openSUSE:Factory
Hello community, here is the log from the commit of package python-pydicom for openSUSE:Factory checked in at 2018-08-31 10:47:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pydicom (Old) and /work/SRC/openSUSE:Factory/.python-pydicom.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-pydicom" Fri Aug 31 10:47:50 2018 rev:4 rq:632267 version:1.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pydicom/python-pydicom.changes 2017-10-13 14:16:10.176012405 +0200 +++ /work/SRC/openSUSE:Factory/.python-pydicom.new/python-pydicom.changes 2018-08-31 10:47:52.199452419 +0200 @@ -1,0 +2,14 @@ +Thu Aug 30 08:34:34 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com> + +- Disable test_code_file as it randomly fails in OBS + +------------------------------------------------------------------- +Wed Aug 29 12:04:20 UTC 2018 - tchvatal@suse.com + +- Update to 1.1.0: + * License is distributed + * Various speed improvements +- Add patch to work with python 3.7: + * python37.patch + +------------------------------------------------------------------- Old: ---- license.txt pydicom-0.9.9.tar.gz New: ---- pydicom-1.1.0.tar.gz python37.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pydicom.spec ++++++ --- /var/tmp/diff_new_pack.GqYRyT/_old 2018-08-31 10:47:52.703453041 +0200 +++ /var/tmp/diff_new_pack.GqYRyT/_new 2018-08-31 10:47:52.707453046 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pydicom # -# 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 @@ -18,27 +18,25 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python -%bcond_without test Name: python-pydicom -Version: 0.9.9 +Version: 1.1.0 Release: 0 Summary: Pure python package for DICOM medical file reading and writing License: MIT Group: Development/Languages/Python -Url: https://github.com/darcymason/pydicom +URL: https://github.com/darcymason/pydicom Source: https://files.pythonhosted.org/packages/source/p/pydicom/pydicom-%{version}.tar.gz -# This will be included in the tarball in the next release. It can be removed then. -Source1: license.txt -BuildRequires: %{python_module devel} +Patch0: python37.patch +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch %ifpython2 Obsoletes: %{oldpython}-dicom < %{version} Provides: %{oldpython}-dicom = %{version} %endif -BuildArch: noarch - %python_subpackages %description @@ -52,7 +50,7 @@ %prep %setup -q -n pydicom-%{version} -cp %{SOURCE1} ./ +%autopatch -p1 %build %python_build @@ -61,15 +59,13 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check +# test_code_file - randomly fails in OBS export LANG=en_US.UTF-8 -%python_exec setup.py test -%endif +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} pydicom/tests -k 'not test_code_file' %files %{python_files} -%defattr(-,root,root,-) -%doc license.txt +%license LICENSE %{python_sitelib}/* %changelog ++++++ pydicom-0.9.9.tar.gz -> pydicom-1.1.0.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-pydicom/pydicom-0.9.9.tar.gz /work/SRC/openSUSE:Factory/.python-pydicom.new/pydicom-1.1.0.tar.gz differ: char 5, line 1 ++++++ python37.patch ++++++
From 3ca897f772e0376e83d32897bebe378742b57ce4 Mon Sep 17 00:00:00 2001 From: mrbean-bremen <mrbean-bremen@users.noreply.github.com> Date: Sat, 30 Jun 2018 21:49:24 +0200 Subject: [PATCH] Execute date time tests only for the backport to Python 2 (#670)
- added Travis config for Python 3.7 - fixes #668 --- pydicom/tests/test_fixes.py | 5 +++++ 2 files changed, 12 insertions(+) Index: pydicom-1.1.0/pydicom/tests/test_fixes.py =================================================================== --- pydicom-1.1.0.orig/pydicom/tests/test_fixes.py +++ pydicom-1.1.0/pydicom/tests/test_fixes.py @@ -12,7 +12,10 @@ from datetime import datetime from datetime import timedelta from datetime import tzinfo +import pytest + import pydicom as pydicom_module +from pydicom import compat from pydicom.util.fixes import timezone pickle_choices = [(pickle, pickle, proto) @@ -82,6 +85,8 @@ class USTimeZone(tzinfo): Eastern = USTimeZone(-5, "Eastern", "EST", "EDT") +@pytest.mark.skipif(not compat.in_py2, + reason='only test the backport to Python 2') class TestTimeZone(unittest.TestCase): """Backport of datetime.timezone tests.
participants (1)
-
root