forked from bunchesofdonald/photohash
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved the metadata into
PEP 621
-compliant pyproject.toml
. Dropped…
… package building with Python 2 and old versions of Python 3 which are unsupported by `setuptools` that has `PEP 621` implemented.
- Loading branch information
Showing
3 changed files
with
45 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,44 @@ | ||
[build-system] | ||
requires = ["setuptools>=42.2"] | ||
requires = ["setuptools>=61.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ImageHash" | ||
version = "4.3.0" | ||
authors = [{name = "Johannes Buchner", email = "[email protected]"}] | ||
license = {text = "BSD-2-Clause"} | ||
description = "Image Hashing library" | ||
readme = "README.rst" | ||
dependencies = ["numpy", "scipy", "pillow", "PyWavelets"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/JohannesBuchner/imagehash" | ||
|
||
[project.optional-dependencies] | ||
testing = ["pytest>=3"] | ||
|
||
[tool.setuptools] | ||
packages = ["imagehash"] | ||
script-files = ["find_similar_images.py"] | ||
include-package-data = true | ||
|
||
[tool.setuptools.package-data] | ||
imagehash = ["py.typed"] | ||
|
||
[tool.distutils.bdist_wheel] | ||
universal = 1 | ||
|
||
[tool.flake8] | ||
count = true | ||
statistics = true | ||
max-line-length = 127 | ||
max-complexity = 10 | ||
avoid-escape = true | ||
# This ignore differs than autopep8's ignore as to not autofix tabs to spaces, but still warn when mixed | ||
ignore = ''' | ||
A001, ; variable "hash" is shadowing a python builtin | ||
W191,E111 ; tabs are prefered indentation; | ||
E117 ; Bug with pycodestyle for Python 2.7 where it thinks everything is over-indented with tabs''' | ||
per-file-ignores = """ | ||
; False positive with multiline strings https://github.com/PyCQA/pycodestyle/issues/376 | ||
find_similar_images.py: E101""" |