Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing pkg_resources #65

Merged
merged 10 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading