Skip to content

Commit

Permalink
Replace pkg_resources with importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed May 13, 2024
1 parent 65c0f6a commit 17871c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alephclient/api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import importlib
import json
import uuid
import logging
import pkg_resources
from itertools import count
from pathlib import Path
from urllib.parse import urlencode, urljoin
Expand All @@ -17,7 +17,7 @@

log = logging.getLogger(__name__)
MIME = "application/octet-stream"
VERSION = pkg_resources.get_distribution("alephclient").version
VERSION = importlib.metadata.version("alephclient")


class APIResultSet(object):
Expand Down Expand Up @@ -342,7 +342,7 @@ def _bulk_chunk(
entityset_id: Optional[str] = None,
force: bool = False,
unsafe: bool = False,
cleaned: bool = False
cleaned: bool = False,
):
for attempt in count(1):
url = self._make_url(f"collections/{collection_id}/_bulk")
Expand Down

0 comments on commit 17871c5

Please sign in to comment.