Skip to content

Commit

Permalink
Move version to its own module to allow readthedocs environment to im…
Browse files Browse the repository at this point in the history
…port it without having to import everything else from __init__.py
  • Loading branch information
cosminc98 committed Jan 24, 2024
1 parent 6236fe2 commit 1baf202
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import sys

sys.path.append(os.path.join("..", ".."))
from nvcc4jupyter.__init__ import __version__ # noqa: E402
from nvcc4jupyter.version import __version__ # noqa: E402

project = "nvcc4jupyter"
copyright = "2024, Andrei Nechaev & Cosmin Stefan Ciocan"
Expand Down
3 changes: 1 addition & 2 deletions nvcc4jupyter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
"""

from .plugin import NVCCPlugin, load_ipython_extension # noqa: F401

__version__ = "1.0.3"
from .version import __version__ # noqa: F401
3 changes: 3 additions & 0 deletions nvcc4jupyter/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""nvcc4jupyter package version"""

__version__ = "1.0.3"

0 comments on commit 1baf202

Please sign in to comment.