Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
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
1 change: 1 addition & 0 deletions .github/workflows/install_doctest_lint_typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,6 @@ jobs:
- name: mypy
run: |
pip install numpy # for the typing stubs
pip install importlib_metadata # for the typing stubs
python -m pip install pandas-stubs types-setuptools
mypy ncls
4 changes: 2 additions & 2 deletions ncls/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import importlib_metadata
import numpy as np
import pkg_resources

__version__ = pkg_resources.get_distribution("ncls").version
__version__ = importlib_metadata.version("ncls")

from ncls.src.ncls import NCLS64 # type: ignore
from ncls.src.ncls32 import NCLS32 # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers = [
"Topic :: Scientific/Engineering"
]
keywords = ["ncls", "interval-tree", "genomics"]
dependencies = ["numpy"]
dependencies = ["numpy", "importlib_metadata"]

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