Skip to content

Commit

Permalink
Requires python 3.9 in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
beringueb committed Apr 25, 2024
1 parent db83614 commit 9a1cf2c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
9 changes: 2 additions & 7 deletions fgspectra/power.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,15 @@
"""

import os

try:
from importlib.resources import files as ilr
except ImportError:
from importlib_resources import files as ilr

import importlib.resources as ilr

import numpy as np
from .model import Model


def _get_power_file(model):
"""File path for the named model"""
data_path = ilr("fgspectra") / "data"
data_path = ilr.files("fgspectra") / "data"
filename = os.path.join(data_path, "cl_%s.dat" % model)
if os.path.exists(filename):
return filename
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies = [
requires-python = ">=3.9"

[project.optional-dependencies]
dev = ["black", "bumpver", "isort", "pip-tools", "pytest", "importlib-resources"]
dev = ["black", "bumpver", "isort", "pip-tools", "pytest"]

[project.urls]
"Homepage" = "https://github.com/simonsobs/fgspectra"
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
author="Simons Observatory fgspectra crew",
author_email="",
packages=["fgspectra"],
python_requires=">3.5",
python_requires=">3.9",
install_requires=[
"scipy",
"pyyaml",
"importlib-resources;python_version<'3.9'",
],
include_package_data=True,
)

0 comments on commit 9a1cf2c

Please sign in to comment.