Skip to content

Commit

Permalink
publish
Browse files Browse the repository at this point in the history
  • Loading branch information
e3rd committed Mar 11, 2024
1 parent 180c3c5 commit 33afcce
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/run-unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", 3.11, 3.12]
# python-version: [3.11, 3.12] TODO
python-version: [3.12]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
3 changes: 3 additions & 0 deletions deduplidog/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .deduplidog import Deduplidog

__all__ = ["Deduplidog"]
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
Expand All @@ -12,7 +13,9 @@ license = "GPL-3.0-or-later"
python = ">=3.11"
humanize = "*"
imagehash = "*"
IPython = "*"
ipywidgets = "*"
opencv-python = "*"
PIL = "*"
Pillow = "*"
sh = "*"
tqdm = "*"
4 changes: 3 additions & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ class FileRepresentation:
text_seed: int = 1

def __post_init__(self):
self._mtime = self.path.parent.stat().st_mtime + self.mtime
self._mtime = round(self.path.parent.parent.stat().st_mtime + self.mtime)

def write(self):
"Writes the representation to the disk."
self.path.write_text(self.get_text())
# TODO asi tady vždycky napsat print (self._mtime)
# TODO co zkusit round?
os.utime(self.path, (self._mtime,)*2)
return self

Expand Down

0 comments on commit 33afcce

Please sign in to comment.