diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d144176c7..db9488de2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,5 +41,7 @@ jobs: - linux: py312-xdist - linux: py312-devdeps-xdist - macos: py312-devdeps-xdist + - linux: py313-devdeps-xdist + - macos: py313-devdeps-xdist - linux: py312-cov-xdist coverage: codecov diff --git a/drizzlepac/updatehdr.py b/drizzlepac/updatehdr.py index 9ef983c4f..e78145eeb 100644 --- a/drizzlepac/updatehdr.py +++ b/drizzlepac/updatehdr.py @@ -549,7 +549,9 @@ def create_unique_wcsname(fimg, extnum, wcsname): uniqname = wcsname else: # setup pattern to match - rpatt = re.compile(wcsname + '_\d') + if wcsname is None: + raise ValueError("wcsname cannot be None") + rpatt = re.compile(wcsname + r'_\d+') index = 0 for wname in wnames: rmatch = rpatt.match(wname) diff --git a/drizzlepac/util.py b/drizzlepac/util.py index abdeaadb1..46abf4e9d 100644 --- a/drizzlepac/util.py +++ b/drizzlepac/util.py @@ -1198,11 +1198,11 @@ def base_taskname(taskname, packagename=None): packagename : str, None (Default = None) Package name. It is assumed that a compound task name is formed by - concatenating ``packagename`` + '.' + ``taskname``\ . If ``packagename`` + concatenating ``packagename`` + '.' + ``taskname``\\ . If ``packagename`` is not ``None``, :py:func:`base_taskname` will check that the string to the left of the right-most dot matches ``packagename`` and will raise an ``AssertionError`` if the package name derived from the - input ``taskname`` does not match the supplied ``packagename``\ . This + input ``taskname`` does not match the supplied ``packagename``\\ . This is intended as a check for discrepancies that may arise during the development of the tasks. If ``packagename`` is ``None``, no such check will be performed. diff --git a/pyproject.toml b/pyproject.toml index 239de120e..0b89ecda8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "drizzlepac" description = " HST image combination using the drizzle algorithm to combine astronomical images, to model image distortion, to remove cosmic rays, and generally to improve the fidelity of data in the final image. " -requires-python = ">=3.10,<3.13" +requires-python = ">=3.10" authors = [ { name = "Megan Sosey" }, { name = "Warren Hack" },