1
0

Accepting request 645900 from devel:languages:python

- Update to 1.2.0:
  * No obvious upstream changelog
- Drop python37.patch should be fixed upstream

OBS-URL: https://build.opensuse.org/request/show/645900
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydicom?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2018-11-08 08:48:13 +00:00 committed by Git OBS Bridge
commit 8546cae505
5 changed files with 13 additions and 44 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9e3cb1d4e2f46203bf2785cf26d3897868e40e167110e4559603b20eff9bc1ec
size 6724086

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 1 14:01:20 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.2.0:
* No obvious upstream changelog
- Drop python37.patch should be fixed upstream
-------------------------------------------------------------------
Thu Aug 30 08:34:34 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -12,21 +12,20 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-pydicom
Version: 1.1.0
Version: 1.2.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
Source: https://files.pythonhosted.org/packages/source/p/pydicom/pydicom-%{version}.tar.gz
Patch0: python37.patch
Source: https://github.com/pydicom/pydicom/archive/v%{version}.tar.gz
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@ -50,7 +49,6 @@ and radiotherapy objects.
%prep
%setup -q -n pydicom-%{version}
%autopatch -p1
%build
%python_build

View File

@ -1,36 +0,0 @@
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.

3
v1.2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:56068467f6d339223349717fe2a4f6edd219bb299eed8f15a9a875a357942949
size 7041217