🛠️ Add pyproject.toml and use uv

This commit is contained in:
Mike Gerber 2026-09-02 16:42:53 +02:00
parent 82248deb8d
commit fccb0a672d
5 changed files with 41 additions and 5 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
__pycache__
*.egg-info/

1
.python-version Normal file
View file

@ -0,0 +1 @@
3.14

5
git-annex-duplicates → main.py Executable file → Normal file
View file

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import subprocess
import collections
import re
@ -30,7 +29,3 @@ def main(exclude, arguments):
for f in files[k]:
print(f)
print()
if __name__ == "__main__":
main()

15
pyproject.toml Normal file
View file

@ -0,0 +1,15 @@
[project]
name = "git-annex-duplicates"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"click>=8.5.0",
]
[tool.uv]
package = true
[project.scripts]
git-annex-duplicates = "main:main"

23
uv.lock generated Normal file
View file

@ -0,0 +1,23 @@
version = 1
revision = 3
requires-python = ">=3.11"
[[package]]
name = "click"
version = "8.5.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/c7/0e/7fa0ef50764b67090eca4114772a2abf8b6148198475e54c660b97caeee6/click-8.5.0.tar.gz", hash = "sha256:ba0d2089de75ea0310e2dde03160e6ca10009947fb95a182f9b54021bb272e34", size = 382235, upload-time = "2026-08-26T13:33:14.56Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/58/50/6c0d534c5f134586a8e1ba4e330569e32f057e33372ae556463212fb4cd3/click-8.5.0-py3-none-any.whl", hash = "sha256:255bc9599cf7748b4b1a446ccc735421bd08a2ae529a8b88597d3de5664ee360", size = 125251, upload-time = "2026-08-26T13:33:12.928Z" },
]
[[package]]
name = "git-annex-duplicates"
version = "0.1.0"
source = { editable = "." }
dependencies = [
{ name = "click" },
]
[package.metadata]
requires-dist = [{ name = "click", specifier = ">=8.5.0" }]