Skip to content

Commit

Permalink
Im/python37 (#334)
Browse files Browse the repository at this point in the history
* update

* python37 is back

* fix for python37

* another small fix in toml for 3.10

* need semvar notation

* update poetry
  • Loading branch information
ismael-mendoza authored Jul 11, 2022
1 parent 90622dc commit a9ec44a
Show file tree
Hide file tree
Showing 8 changed files with 400 additions and 236 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]

steps:
- name: Checkout github repo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# This workflow will install Python dependencies, lint with Python 3.9
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: lint
Expand All @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
python-version: [3.9]

steps:
- name: Checkout github repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
python-version: [3.7, 3.8, 3.9, 3.10]

steps:
- name: Checkout github repo (+ download lfs dependencies)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]

steps:
- name: Checkout github repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
python-version: [3.7, 3.8, 3.9, "3.10"]

steps:
- name: Checkout github repo
Expand Down
5 changes: 4 additions & 1 deletion btk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
providing a framework to test user defined detection/deblending/measurement
algorithms.
"""
from importlib import metadata
try:
from importlib import metadata
except ImportError: # for Python<3.8
import importlib_metadata as metadata

__author__ = "btk developers"
__email__ = "[email protected]"
Expand Down
Loading

0 comments on commit a9ec44a

Please sign in to comment.