Skip to content

Commit cd20cba

Browse files
authored
Merge pull request #554 from NASA-AMMOS/issue-551-2.x_updated
Issue-551: Restricting python version and removing pkg_resources (2.x)
2 parents 97d1e81 + 8659692 commit cd20cba

13 files changed

Lines changed: 1565 additions & 433 deletions

File tree

.github/workflows/full_build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: ["3.7", "3.8", "3.9", "3.10"]
14+
python-version: ["3.10","3.11"]
1515
runs-on: "ubuntu-latest"
1616
steps:
1717
- uses: actions/checkout@v3

.python-version

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
3.7.15
2-
3.8.15
3-
3.9.15
4-
3.10.8
1+
3.10.20
2+
3.11

ait/core/cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"""
2020
import os
2121
import struct
22+
from importlib.resources import files
2223
from io import IOBase
2324

24-
import pkg_resources
2525
import yaml
2626

2727
import ait
@@ -518,7 +518,7 @@ def getDefaultDictFilename(): # noqa
518518

519519

520520
def getDefaultSchema(): # noqa
521-
return pkg_resources.resource_filename("ait.core", "data/cmd_schema.json")
521+
return str(files("ait.core").joinpath("data/cmd_schema.json"))
522522

523523

524524
def getMaxCmdSize(): # noqa

ait/core/evr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"""
1919
import os
2020
import re
21+
from importlib.resources import files
2122

22-
import pkg_resources
2323
import yaml
2424

2525
import ait.core
@@ -75,7 +75,7 @@ def toJSON(self): # noqa
7575

7676

7777
def getDefaultSchema(): # noqa
78-
return pkg_resources.resource_filename("ait.core", "data/evr_schema.json")
78+
return str(files("ait.core").joinpath("data/evr_schema.json"))
7979

8080

8181
def getDefaultDict(reload=False): # noqa

ait/core/limits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
6969
"""
7070
import os
71+
from importlib.resources import files
7172
from io import IOBase
7273

73-
import pkg_resources
7474
import yaml
7575

7676
import ait
@@ -224,7 +224,7 @@ def getDefaultDict(reload=False): # noqa
224224

225225

226226
def getDefaultSchema(): # noqa
227-
return pkg_resources.resource_filename("ait.core", "data/limits_schema.json")
227+
return str(files("ait.core").joinpath("data/limits_schema.json"))
228228

229229

230230
def getDefaultDictFilename(): # noqa

ait/core/tlm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
import csv
2323
import os
2424
import struct
25+
from importlib.resources import files
2526
from io import IOBase
2627

27-
import pkg_resources
2828
import yaml
2929

3030
import ait
@@ -1096,7 +1096,7 @@ def getDefaultDict(reload=False): # noqa
10961096

10971097

10981098
def getDefaultSchema(): # noqa
1099-
return pkg_resources.resource_filename("ait.core", "data/tlm_schema.json")
1099+
return str(files("ait.core").joinpath("data/tlm_schema.json"))
11001100

11011101

11021102
def getDefaultDictFilename(): # noqa

config/leapseconds.dat

-497 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)