From 176820cd8153b124499d3f86f36962cfc94a823f Mon Sep 17 00:00:00 2001 From: Darryl Nixon Date: Sun, 16 Jul 2023 09:44:55 -0700 Subject: [PATCH] Replace useless pyzfs with TrueNAS's py-libzfs But it's not on pypi :( --- melamine/filesystems/zfs.py | 4 ++-- pyproject.toml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/melamine/filesystems/zfs.py b/melamine/filesystems/zfs.py index 8b4c6c6..2657e9e 100644 --- a/melamine/filesystems/zfs.py +++ b/melamine/filesystems/zfs.py @@ -1,7 +1,7 @@ from collections.abc import Generator from pathlib import Path -import pyzfs +import libzfs class ZFSHandler: @@ -12,7 +12,7 @@ class ZFSHandler: path = path.resolve().absolute() inode = path.stat().st_ino - zfs = pyzfs.ZFS() + zfs = libzfs.ZFS() dataset = zfs.get_dataset_by_path(str(path)) if dataset is not None: pool = dataset.pool diff --git a/pyproject.toml b/pyproject.toml index 0e721d9..3be8c1b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,6 @@ dependencies = [ "loguru==0.7.0", "aiofiles==23.1.0", "uvloop==0.17.0", - "pyzfs==0.2.3", "asyncstdlib==3.10.8", "psutil==5.9.5", ]