diff --git a/.github/workflows/run-unittest.yml b/.github/workflows/run-unittest.yml index 46179fa..1da2119 100644 --- a/.github/workflows/run-unittest.yml +++ b/.github/workflows/run-unittest.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", 3.11, 3.12] + python-version: [3.11, 3.12] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} diff --git a/deduplidog/__init__.py b/deduplidog/__init__.py new file mode 100644 index 0000000..80f936a --- /dev/null +++ b/deduplidog/__init__.py @@ -0,0 +1,3 @@ +from .deduplidog import Deduplidog + +__all__ = ["Deduplidog"] diff --git a/pyproject.toml b/pyproject.toml index 4717927..b17ef87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,6 +3,7 @@ requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.poetry] +name = "deduplidog" version = "0.5.0" description = "Deduplicate folders" authors = ["Edvard Rejthar "] @@ -12,7 +13,9 @@ license = "GPL-3.0-or-later" python = ">=3.11" humanize = "*" imagehash = "*" +IPython = "*" +ipywidgets = "*" opencv-python = "*" -PIL = "*" +Pillow = "*" sh = "*" tqdm = "*" \ No newline at end of file diff --git a/tests.py b/tests.py index c695de7..321209f 100644 --- a/tests.py +++ b/tests.py @@ -27,7 +27,9 @@ def __post_init__(self): def write(self): "Writes the representation to the disk." self.path.write_text(self.get_text()) - os.utime(self.path, (self._mtime,)*2) + # TODO asi tady vždycky napsat print (self._mtime) + # TODO co zkusit round? + os.utime(self.path, (round(self._mtime),)*2) return self def check(self, test: TestCase):