Skip to content

Commit

Permalink
Removing pkg_resources (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnmitchell authored Dec 14, 2023
1 parent 0301fca commit 948dd7c
Show file tree
Hide file tree
Showing 13 changed files with 1,116 additions and 515 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v1
Expand Down
6 changes: 3 additions & 3 deletions lusSTR/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Development Center.
# -------------------------------------------------------------------------------------------------

from pkg_resources import resource_filename
import importlib.resources
from lusSTR import cli
from lusSTR._version import get_versions

Expand All @@ -19,8 +19,8 @@


def snakefile(workflow="strs"):
return resource_filename("lusSTR", f"workflows/{workflow}.smk")
return importlib.resources.files("lusSTR") / f"workflows/{workflow}.smk"


def wrapper(label):
return resource_filename("lusSTR", f"wrappers/{label}.py")
return importlib.resources.files("lusSTR") / f"wrappers/{label}.py"
Loading

0 comments on commit 948dd7c

Please sign in to comment.