diff --git a/README.md b/README.md index e69de29..d902a49 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,12 @@ +# melamine + +todo! + +## install + +```bash +sudo apt install --yes --no-install-recommends build-essential python3-dev libzfslinux-dev && \ +sudo pip3 install Cython && \ +git clone https://github.com/truenas/py-libzfs && \ +cd py-libzfs && ./configure --prefix=/usr && sudo make install +``` diff --git a/melamine/filesystems/ext23.py b/melamine/filesystems/ext23.py index e895583..010778b 100644 --- a/melamine/filesystems/ext23.py +++ b/melamine/filesystems/ext23.py @@ -39,7 +39,7 @@ class ext2_inode_large_p(ctypes.POINTER(ext2_inode_large)): class EXT23Handler: - def __init__(self, fs: str) -> None: + def __init__(self) -> None: self.fs = "ext2/ext3" self.libext2fs = ctypes.CDLL("libext2fs.so.2") self.libext2fs.ext2fs_open.restype = ctypes.c_int diff --git a/melamine/filesystems/zfs.py b/melamine/filesystems/zfs.py index 2657e9e..e6c39bc 100644 --- a/melamine/filesystems/zfs.py +++ b/melamine/filesystems/zfs.py @@ -5,7 +5,7 @@ import libzfs class ZFSHandler: - def __init__(self, fs: str) -> None: + def __init__(self) -> None: self.fs = "zfs" async def get_hardlinks(self, path: Path) -> Generator: diff --git a/pyproject.toml b/pyproject.toml index 3be8c1b..13a0fb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,13 +10,13 @@ description = "A comprehensive file shredder for Linux" readme = "README.md" requires-python = ">=3.9" license = { text = "MIT" } -dependencies = [ - "loguru==0.7.0", - "aiofiles==23.1.0", - "uvloop==0.17.0", - "asyncstdlib==3.10.8", - "psutil==5.9.5", -] + +[project.dependencies] +loguru = "0.7.0" +aiofiles = "23.1.0" +uvloop = "0.17.0" +asyncstdlib = "3.10.8" +psutil = "5.9.5" [project.scripts] melamine = "melamine.cli:run"