Skip to content

Commit

Permalink
Merge pull request #79 from NASA-PDS/78-py39
Browse files Browse the repository at this point in the history
78 standardize on python 3.9
  • Loading branch information
alexdunnjpl authored Sep 19, 2023
2 parents 60a4f66 + 2f3de5a commit 5d4789f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/branch_cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: '3.10'
python-version: '3.9'
-
name: 💵 Python Cache
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# -----
#
# We use a slim python-enabled base image.
FROM python:3.10-slim-bullseye
FROM python:3.9-slim-bullseye

ENV INSTALL_WORKDIR=/tmp/registry-sweepers

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ url = https://github.com/NASA-PDS/registry-sweepers
download_url = https://github.com/NASA-PDS/registry-sweepers/releases/
classifiers =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.9
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent

Expand Down
3 changes: 2 additions & 1 deletion src/pds/registrysweepers/utils/db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from typing import List
from typing import Mapping
from typing import Optional
from typing import Union

from opensearchpy import OpenSearch
from pds.registrysweepers.utils.db.update import Update
Expand Down Expand Up @@ -137,7 +138,7 @@ def write_updated_docs(
client: OpenSearch,
updates: Iterable[Update],
index_name: str = "registry",
bulk_chunk_max_update_count: int | None = None,
bulk_chunk_max_update_count: Union[int, None] = None,
):
log.info("Updating a lazily-generated collection of product documents...")
updated_doc_count = 0
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py310, docs, lint
envlist = py39, docs, lint
isolated_build = True

[testenv]
Expand All @@ -19,6 +19,6 @@ commands=
skip_install = true

[testenv:dev]
basepython = python3.10
basepython = python3.9
usedevelop = True
deps = .[dev]

0 comments on commit 5d4789f

Please sign in to comment.