Skip to content

Commit 5ad50e1

Browse files
committed
fix tasks.py
1 parent 6b249c1 commit 5ad50e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
from invoke import task
44
from invoke.context import Context
55

6-
from spacy_to_hf import __version__
7-
86
PACKAGE_NAME = "spacy_to_hf"
97
VERSION_FILE = f"{PACKAGE_NAME}/__init__.py"
108
SOURCES = " ".join(["spacy_to_hf", "tests", "tasks.py"])
@@ -217,6 +215,8 @@ def update_version_number(ctx: Context, part: BumpType = BumpType.MICRO) -> None
217215
Specify the part of the version number to bump. The default is to bump the
218216
micro version number. Other options are major and minor.
219217
"""
218+
from spacy_to_hf import __version__
219+
220220
print(f"Current version: {__version__}")
221221
new_version = _bump_version(__version__, part)
222222
with open(VERSION_FILE, "r") as f:

0 commit comments

Comments
 (0)