Skip to content

Commit ec6987d

Browse files
Merge pull request #30 from forrestfwilliams/minver
Bump minimum python version to 3.10
2 parents 55d2680 + 9f52220 commit ec6987d

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

.github/workflows/test-and-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
with:
1818
local_package_name: mulitrtc
1919
python_versions: >-
20-
["3.9", "3.10", "3.11", "3.12"]
20+
["3.10", "3.11", "3.12"]

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
77
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## [0.3.3]
10+
11+
### Changed
12+
* Bumped minimum Python version to >=3.10 to support modern typing
13+
914
## [0.3.2]
1015

1116
### Added

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
- nodefaults
55
dependencies:
66
# For running
7-
- python
7+
- python>=3.10
88
- pip
99
- gdal>=3.0
1010
- numpy>=1.20

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "multirtc"
7-
requires-python = ">=3.9"
7+
requires-python = ">=3.10"
88
authors = [
99
{name="Forrest Williams", email="ffwilliams2@alaska.edu"},
1010
]
@@ -16,7 +16,7 @@ classifiers=[
1616
"Natural Language :: English",
1717
"Operating System :: OS Independent",
1818
"Programming Language :: Python :: 3",
19-
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
2020
]
2121
dependencies = [
2222
"gdal",

src/multirtc/multirtc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import argparse
22
from pathlib import Path
3-
from typing import Optional
43

54
from burst2safe.burst2safe import burst2safe
65
from s1reader.s1_orbit import retrieve_orbit_file
@@ -16,7 +15,7 @@
1615
SUPPORTED = ['S1', 'UMBRA', 'CAPELLA', 'ICEYE']
1716

1817

19-
def prep_dirs(work_dir: Optional[Path] = None) -> tuple[Path, Path]:
18+
def prep_dirs(work_dir: Path | None = None) -> tuple[Path, Path]:
2019
"""Prepare input and output directories for processing.
2120
2221
Args:

src/multirtc/sicd.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from datetime import timedelta
22
from pathlib import Path
3-
from typing import Optional
43

54
import isce3
65
import numpy as np
@@ -55,7 +54,7 @@ def __init__(self, sicd_path: Path):
5554
self.supports_static_tropo = False
5655

5756
def get_xrow_ycol(
58-
self, rowrange: Optional[tuple] = None, colrange: Optional[tuple] = None
57+
self, rowrange: tuple | None = None, colrange: tuple | None = None
5958
) -> tuple[np.ndarray, np.ndarray]:
6059
"""Calculate xrow and ycol index arrrays.
6160
@@ -82,7 +81,7 @@ def get_xrow_ycol(
8281
return xrow, ycol
8382

8483
def load_scaled_data(
85-
self, scale: str, power: bool = False, rowrange: Optional[tuple] = None, colrange: Optional[tuple] = None
84+
self, scale: str, power: bool = False, rowrange: tuple | None = None, colrange: tuple | None = None
8685
) -> np.ndarray:
8786
"""Load scaled data from the SICD file.
8887

0 commit comments

Comments
 (0)