-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
184 lines (168 loc) · 3.83 KB
/
setup.cfg
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[metadata]
name = photomanager
author = Aaron Kollasch
author_email = [email protected]
description = Collect photos into a central repository
long_description = file: README.rst, CHANGES.rst
long_description_content_type = text/x-rst; charset=UTF-8
version = attr: photomanager.version
url = https://github.com/aaronkollasch/photomanager
project_urls =
Source = https://github.com/aaronkollasch/photomanager
Tracker = https://github.com/aaronkollasch/photomanager/issues
license = MIT
keywords = photo video manager archive duplicate async checksum database
platforms = any
classifiers =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
License :: OSI Approved :: MIT License
Operating System :: OS Independent
[options]
setup_requires =
setuptools_scm
setuptools_scm_git_archive
install_requires =
tqdm>=4.59.0
click>=7.1.2
orjson>=3.5.2
zstandard>=0.15.2
xxhash>=2.0.2
blake3~=0.3.0
python_requires = >=3.8
package_dir =
= src
packages = find:
include_package_data = True
scripts =
dbless
[options.packages.find]
where = src
exclude =
tests
stubs
[options.entry_points]
console_scripts =
photomanager = photomanager.__main__:main
[options.extras_require]
test =
tox
pytest
pytest-datafiles
coverage
check-mi =
ffmpeg-python
Pillow-SIMD ; platform_machine=="i386"
Pillow-SIMD ; platform_machine=="x86"
Pillow-SIMD ; platform_machine=="x64"
Pillow-SIMD ; platform_machine=="x86_64"
Pillow ; platform_machine=="arm"
Pillow ; platform_machine=="arm32"
Pillow ; platform_machine=="armv7l"
Pillow ; platform_machine=="aarch64"
Pillow ; platform_machine=="armv8b"
Pillow ; platform_machine=="armv8l"
Pillow ; platform_machine=="arm64"
pypdf
Wand
filetype
pyheif
psutil
# content of: tox.ini , put in same dir as setup.py
[tox:tox]
envlist = linters, twine, py38, py39, py310, coverage-report
[gh-actions]
python =
3.8: py38,
3.9: py39,
3.10: py310, linters
[testenv]
# install pytest in the virtualenv where commands will be executed
deps =
pytest
pytest-datafiles
coverage
extras =
check-mi
;install_command = pip install --no-compile {opts} {packages}
commands =
coverage run -m pytest
[testenv:linters]
deps =
black
isort
flake8
flake8-black
mypy
types-pillow
types-tqdm
types-xxhash
ruff
commands =
black --check --diff .
isort --check --diff .
ruff check --diff .
flake8 --count src tests benchmarks
mypy src
[testenv:twine]
deps =
build>=0.4.0
twine>=3.4.1
skip_install = true
commands =
python -m build --sdist --wheel .
python -m twine check dist/*
[testenv:coverage-report]
deps = coverage
skip_install = true
parallel_show_output = true
depends =
py38
py39
py310
commands =
coverage combine
coverage report
[flake8]
max-line-length = 88
ignore =
per-file-ignores = __init__.py:F401
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,W503
extend-exclude =
src/photomanager/_version.py
src/photomanager/check_media_integrity
[coverage:run]
branch = True
parallel = True
source = photomanager
omit =
*/photomanager/_version.py
[coverage:paths]
source =
src
.tox/*/site-packages
[coverage:report]
show_missing = true
skip_covered = true
omit =
src/photomanager/actions/migrate.py
src/photomanager/check_media_integrity/*
exclude_lines =
pragma: no cover
if TYPE_CHECKING:
raise NotImplementedError
return NotImplemented
if __name__ == .__main__.:
# typing-related code
^if (False|TYPE_CHECKING):
: \\.\\.\\.$
^ +\\.\\.\\.$
-> ['\"]?NoReturn['\"]?:
[bdist_wheel]
universal = 1
[pycodestyle]
max-line-length = 88