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

fix import issue #39

Merged
merged 3 commits into from
Oct 10, 2022
Merged
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
### Changes
- moved neptune_fastai package to src dir ([#37](https://github.com/neptune-ai/neptune-fastai/pull/37))

### Fixes
- Fixed NeptuneCallback import error - now possible to directly import with `from neptune_fastai import NeptuneCallback`
([#39](https://github.com/neptune-ai/neptune-fastai/pull/39))

## neptune-fastai 0.10.3

### Changes
Expand Down
14 changes: 5 additions & 9 deletions src/neptune_fastai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@
# limitations under the License.
#

from neptune_fastai._version import get_versions

__all__ = [
"__version__",
]

__version__ = get_versions()["version"]

del get_versions
from neptune_fastai.impl import (
NeptuneCallback,
__version__,
retrieve_fit_index,
)
9 changes: 6 additions & 3 deletions src/neptune_fastai/impl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

__all__ = ["NeptuneCallback", "retrieve_fit_index"]
__all__ = ["NeptuneCallback", "retrieve_fit_index", "__version__"]

import hashlib
import time
Expand All @@ -38,8 +38,6 @@
trainable_params,
)

from neptune_fastai import __version__

try:
# neptune-client=0.9.0+ package structure
import neptune.new as neptune
Expand All @@ -55,6 +53,11 @@
from neptune.types import File # isort:skip


from neptune_fastai._version import get_versions

__version__ = get_versions()["version"]


INTEGRATION_VERSION_KEY = "source_code/integrations/neptune-fastai"


Expand Down