Skip to content

Commit

Permalink
Lower Python version requirement from 3.10 to 3.9
Browse files Browse the repository at this point in the history
This is in an attempt to allow older Python projects (ones whose Python
version requirements say Python can be as low as `3.9`) to specify it as
a dependency without raising their own Python version requirements.
  • Loading branch information
eecavanna committed Oct 14, 2024
1 parent 2fcfd9f commit 310a26f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish-package-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
# Specify a Python version that satisfies the `tool.poetry.dependencies.python`
# version requirement specified in `pyproject.toml`.
python-version: '3.10'
python-version: '3.9'
- name: Install Poetry # Docs: https://github.com/snok/install-poetry
uses: snok/install-poetry@v1
- name: Install dependencies # Docs: https://python-poetry.org/docs/cli/#install
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ documentation = "https://github.com/microbiomedata/refscan"
keywords = ["mongodb", "mongo", "relationships", "reference", "database", "data", "referential integrity", "scan"]

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.9"
# We use `linkml-runtime` to facilitate using `nmdc-schema`.
# Docs: https://linkml.io/linkml/developers/schemaview.html#linkml_runtime.utils.schemaview.SchemaView
linkml-runtime = "^1.7.5"
Expand Down
2 changes: 1 addition & 1 deletion refscan/refgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def load_template(resource_path: str) -> str:
that the path is accurate both when this script is run in a development
environment and when this script is run when installed from PyPI,
instead of it only being accurate in the former case.
Reference: https://docs.python.org/3.10/library/importlib.html
Reference: https://docs.python.org/3.9/library/importlib.html#importlib.resources.files
"""
package_name = "refscan"
return resources.files(package_name).joinpath(resource_path).read_text(encoding="utf-8")
Expand Down

0 comments on commit 310a26f

Please sign in to comment.