Skip to content

Commit

Permalink
modify the way of importing importlib_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
yihming committed Dec 17, 2020
1 parent ddd10d1 commit 673512a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
5 changes: 4 additions & 1 deletion pegasusio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
from .readwrite import infer_file_type, read_input, write_output, write_scp_file
from .data_aggregation import aggregate_matrices

from importlib_metadata import version, PackageNotFoundError
try:
from importlib.metadata import version, PackageNotFoundError
except ImportError: # < Python 3.8: Use backport module
from importlib_metadata import version, PackageNotFoundError

try:
__version__ = version(__name__)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ numpy
pandas
scipy
setuptools
importlib-metadata
importlib_metadata>=0.7; python_version < '3.8'
zarr
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@
author="Yiming Yang, Joshua Gould and Bo Li",
author_email="cumulus-support@googlegroups.com",
classifiers=[ # https://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 3 - Alpha",
"Development Status :: 4 - Beta",
"Framework :: Jupyter",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Framework :: Jupyter",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Topic :: Software Development :: Build Tools",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
keywords="single cell/nucleus genomics data reading and writing",
Expand Down

0 comments on commit 673512a

Please sign in to comment.