Skip to content

Commit

Permalink
Switch to using importlib.resources
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Oct 26, 2023
1 parent 4611a21 commit 777b457
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions python/cuxfilter/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os.path
import importlib.resources

with open(os.path.join(os.path.dirname(__file__), "VERSION")) as version_file:
__version__ = version_file.read().strip()
__version__ = (
importlib.resources.files("cuxfilter")
.joinpath("VERSION")
.read_text()
.strip()
)
__git_commit__ = ""

0 comments on commit 777b457

Please sign in to comment.