Skip to content

Commit 2c72c1f

Browse files
committed
convert to pyproject.toml
1 parent 2f246b6 commit 2c72c1f

File tree

7 files changed

+41
-2431
lines changed

7 files changed

+41
-2431
lines changed

MANIFEST.in

-2
This file was deleted.

ipfsspec/__init__.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
from .async_ipfs import AsyncIPFSFileSystem, AsyncIPNSFileSystem
2+
from importlib.metadata import version, PackageNotFoundError
23

3-
from ._version import get_versions
4-
__version__ = get_versions()['version']
5-
del get_versions
4+
try:
5+
__version__ = version("package-name")
6+
except PackageNotFoundError:
7+
# package is not installed
8+
pass
69

710
__all__ = ["__version__", "AsyncIPFSFileSystem", "AsyncIPNSFileSystem"]

0 commit comments

Comments
 (0)