-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (112 loc) · 2.95 KB
/
pyproject.toml
File metadata and controls
123 lines (112 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "photomapai"
version = "1.0.4"
description = "AI-based image clustering and exploration tool"
authors = [
{ name = "Lincoln Stein", email = "lincoln.stein@gmail.com" }
]
readme = { content-type = "text/markdown", file = "README.md" }
license = { text = "MIT" }
requires-python = ">=3.10, <3.14"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Multimedia :: Graphics :: Viewers",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"Pillow",
"clip-anytorch",
"colorama",
"dash",
"fastapi",
"jinja2",
"networkx",
"numpy",
"pandas",
"pillow-heif",
"platformdirs",
"pydantic",
"python-multipart",
"PyYAML",
"requests",
"scikit-learn",
"setuptools<67", # Avoid deprecation warning from CLIP dependency
"torch",
"tqdm",
"umap-learn",
"uvicorn",
"psutil", # Add this for process management
"packaging", # Add this for version checking
]
[project.urls]
Homepage = "https://github.com/lstein/PhotoMapAI"
[project.optional-dependencies]
testing = [
"pytest",
"pytest-cov",
"httpx",
"asynctest",
"pytest-asyncio",
]
development = [
"build",
"mkdocs-material",
"twine",
"pymdown-extensions",
"pyinstaller",
"ruff",
]
[tool.setuptools.packages.find]
where = ["."] # Look in the current directory (repo root)
include = ["photomap*"] # Include photomap package and subpackages
# Include package data files
[tool.setuptools.package-data]
"photomap.frontend" = ["static/**", "templates/**"]
[project.scripts]
index_images = "photomap.backend.imagetool:main"
update_images = "photomap.backend.imagetool:main"
search_images = "photomap.backend.imagetool:main"
search_text = "photomap.backend.imagetool:main"
find_duplicate_images = "photomap.backend.imagetool:main"
start_photomap = "photomap.backend.photomap_server:main"
[tool.ruff]
# Set line length to match the project's style
line-length = 120
target-version = "py310"
# Enable selected rule sets
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import sorting)
"UP", # pyupgrade
"B", # flake8-bugbear
]
# Ignore certain rules
lint.ignore = [
"E501", # Line too long (handled by formatter)
]
# Exclude directories
exclude = [
".git",
".github",
"__pycache__",
"build",
"dist",
"*.egg-info",
".pytest_cache",
".venv",
"venv",
]
[tool.ruff.lint.isort]
known-first-party = ["photomap"]