Skip to content

Commit be8b19c

Browse files
committed
refactor version
1 parent 99a5d78 commit be8b19c

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

fastplotlib/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

fastplotlib/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
from pathlib import Path
22

3+
from ._version import __version__, version_info
34
from .utils.gui import run
45
from .graphics import *
56
from .graphics.selectors import *
67
from .legends import *
78
from .layouts import Figure
8-
99
from .widgets import ImageWidget
1010
from .utils import config
1111

1212
import wgpu
1313

1414

15-
with open(Path(__file__).parent.joinpath("VERSION"), "r") as f:
16-
__version__ = f.read().split("\n")[0]
17-
1815
adapters = [a.summary for a in wgpu.gpu.enumerate_adapters()]
1916

2017
if len(adapters) < 1:

fastplotlib/_version.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
__version__ = "0.1.0.a16"
2+
3+
version_info = tuple(
4+
int(i) if i.isnumeric() else i for i in __version__.split("+")[0].split(".")
5+
)

0 commit comments

Comments
 (0)