[med-svn] [Git][med-team/pydicom][upstream] New upstream version 2.3.1
Andreas Tille (@tille)
gitlab at salsa.debian.org
Mon Nov 28 17:14:27 GMT 2022
Andreas Tille pushed to branch upstream at Debian Med / pydicom
Commits:
8f3763d5 by Andreas Tille at 2022-11-28T17:58:14+01:00
New upstream version 2.3.1
- - - - -
12 changed files:
- .github/workflows/merge-pytest.yml
- .github/workflows/merge-typing.yml
- .github/workflows/pr-pytest.yml
- .github/workflows/pr-type-lint-spell.yml
- README.md
- doc/release_notes/v2.3.0.rst
- pydicom/_version.py
- pydicom/multival.py
- pydicom/pixel_data_handlers/numpy_handler.py
- pydicom/tests/test_fileset.py
- pydicom/valuerep.py
- setup.py
Changes:
=====================================
.github/workflows/merge-pytest.yml
=====================================
@@ -4,6 +4,7 @@ on:
push:
branches:
- master
+ - 2.3.X
jobs:
test-all:
@@ -12,7 +13,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
- python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
+ python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
include:
- os: ubuntu-latest
python-version: '3.10'
=====================================
.github/workflows/merge-typing.yml
=====================================
@@ -2,7 +2,9 @@ name: type-hints
on:
push:
- branches: [ master ]
+ branches:
+ - master
+ - 2.3.X
jobs:
@@ -12,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10' ]
+ python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10', '3.11' ]
steps:
- uses: actions/checkout at v2
@@ -25,7 +27,7 @@ jobs:
- name: Install typing dependencies
run: |
python -m pip install -U pip
- python -m pip install -U mypy
+ python -m pip install mypy==0.971
python -m pip install -U types-requests types-pkg_resources types-setuptools
- name: Run typing check with mypy
run: |
=====================================
.github/workflows/pr-pytest.yml
=====================================
@@ -2,7 +2,9 @@ name: pr-unit-tests
on:
pull_request:
- branches: [ master ]
+ branches:
+ - master
+ - 2.3.X
jobs:
test-pypy:
@@ -36,7 +38,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
- python-version: ['3.6', '3.7', '3.8', '3.9']
+ python-version: ['3.6', '3.7', '3.8', '3.9', '3.11']
include:
- os: 'ubuntu-latest'
pytest-args: --cov=pydicom --cov-append
=====================================
.github/workflows/pr-type-lint-spell.yml
=====================================
@@ -2,7 +2,9 @@ name: pr-type-lint-spell
on:
pull_request:
- branches: [ master ]
+ branches:
+ - master
+ - 2.3.X
jobs:
@@ -25,7 +27,7 @@ jobs:
- name: Install typing dependencies
run: |
python -m pip install --upgrade pip
- python -m pip install -U mypy
+ python -m pip install mypy==0.971
python -m pip install -U types-requests types-pkg_resources types-setuptools
- name: Run typing check with mypy
=====================================
README.md
=====================================
@@ -4,7 +4,7 @@
[![test-coverage](https://codecov.io/gh/pydicom/pydicom/branch/master/graph/badge.svg)](https://codecov.io/gh/pydicom/pydicom)
[![Python version](https://img.shields.io/pypi/pyversions/pydicom.svg)](https://img.shields.io/pypi/pyversions/pydicom.svg)
[![PyPI version](https://badge.fury.io/py/pydicom.svg)](https://badge.fury.io/py/pydicom)
-[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5164413.svg)](https://doi.org/10.5281/zenodo.5164413)
+[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.6394735.svg)](https://doi.org/10.5281/zenodo.6394735)
[![Gitter](https://badges.gitter.im/pydicom/Lobby.svg)](https://gitter.im/pydicom/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
# *pydicom*
=====================================
doc/release_notes/v2.3.0.rst
=====================================
@@ -1,3 +1,11 @@
+Version 2.3.1
+=================================
+
+Changes
+-------
+* updated for Python 3.11 compatibility
+
+
Version 2.3.0
=================================
=====================================
pydicom/_version.py
=====================================
@@ -3,7 +3,7 @@ import re
from typing import cast, Match
-__version__: str = '2.3.0'
+__version__: str = '2.3.1'
result = cast(Match[str], re.match(r'(\d+\.\d+\.\d+).*', __version__))
__version_info__ = tuple(result.group(1).split('.'))
=====================================
pydicom/multival.py
=====================================
@@ -81,7 +81,9 @@ class MultiValue(MutableSequence[_ItemType]):
"""
self._list.extend([self.type_constructor(x) for x in val])
- def __iadd__(self, other: Iterable[_T]) -> MutableSequence[_ItemType]:
+ def __iadd__( # type: ignore[override]
+ self, other: Iterable[_T]
+ ) -> MutableSequence[_ItemType]:
"""Implement MultiValue() += Iterable[Any]."""
self._list += [self.type_constructor(x) for x in other]
return self
=====================================
pydicom/pixel_data_handlers/numpy_handler.py
=====================================
@@ -184,7 +184,7 @@ def get_pixeldata(ds: "Dataset", read_only: bool = False) -> "np.ndarray":
'SamplesPerPixel', 'PhotometricInterpretation'
]
if px_keyword[0] == 'PixelData':
- # Attributess required by Image Pixel Description Macro Attributes
+ # Attributes required by Image Pixel Description Macro Attributes
required_elements.extend(['PixelRepresentation', 'BitsStored'])
missing = [elem for elem in required_elements if elem not in ds]
if missing:
=====================================
pydicom/tests/test_fileset.py
=====================================
@@ -1,5 +1,6 @@
import os
+import sys
from pathlib import Path
import shutil
from tempfile import TemporaryDirectory
@@ -1225,7 +1226,9 @@ class TestFileSet:
"""Test setting the File-set's path."""
fs = FileSet()
assert fs.path is None
- with pytest.raises(AttributeError, match=r"can't set attribute"):
+ msg = (r"can't set attribute" if sys.version_info < (3, 11)
+ else r"property 'path' of 'FileSet' object has no setter")
+ with pytest.raises(AttributeError, match=msg):
fs.path = tdir.name
# Test with str
=====================================
pydicom/valuerep.py
=====================================
@@ -621,9 +621,9 @@ class TM(_DateTimeBase, datetime.time):
"""
_RE_TIME = re.compile(
r"(?P<h>^([01][0-9]|2[0-3]))"
- r"((?P<m>([0-5][0-9]))?"
- r"(?(5)(?P<s>([0-5][0-9]|60))?)"
- r"(?(7)(\.(?P<ms>([0-9]{1,6})?))?))$"
+ r"((?P<m>([0-5][0-9]))"
+ r"((?P<s>([0-5][0-9]|60))"
+ r"(\.(?P<ms>([0-9]{1,6})?))?)?)?$"
)
def __new__( # type: ignore[misc]
=====================================
setup.py
=====================================
@@ -51,6 +51,7 @@ setup(
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Scientific/Engineering :: Physics",
View it on GitLab: https://salsa.debian.org/med-team/pydicom/-/commit/8f3763d581a1f8ddf2b4313fff46931f58e588bc
--
View it on GitLab: https://salsa.debian.org/med-team/pydicom/-/commit/8f3763d581a1f8ddf2b4313fff46931f58e588bc
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20221128/d29cbc4b/attachment-0001.htm>
More information about the debian-med-commit
mailing list