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

Disable cache on the CI #2083

Merged
merged 20 commits into from
Jan 28, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Trying to tweak version import
  • Loading branch information
ZanSara committed Jan 28, 2022
commit 63d9e6275946c7b2865866253936125138e9b272
5 changes: 3 additions & 2 deletions haystack/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from typing import Union
from types import ModuleType

__version__ = None
try:
import importlib.metadata as metadata
__version__ = metadata.version('farm-haystack')
except ModuleNotFoundError:
# Python <= 3.7
import importlib_metadata as metadata # type: ignore

__version__ = metadata.version('farm-haystack')
__version__ = metadata.version('haystack')

# This configuration must be done before any import to apply to all submodules
import logging
Expand Down