Refactor setup (#1034)

* Refactor setup in setup folder

* More refactoring

* Update build process

* Remove need to run setup.sh as sudo

* Update setup.sh

* Update setup.sh

* Fix for unix undel python 3.8

* Update setup.sh

* Updates

* Update setup

* Create setup_common.py

* Fix windows setup

* Updates

* Updates

* Updates

* Refining setup

* Updates

* Updates

---------

Co-authored-by: Your Name <you@example.com>
pull/1044/head
bmaltais 2023-06-22 09:03:29 -04:00 committed by GitHub
parent 551eed76d2
commit 8c3c6a4c57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 21 deletions

View File

@ -1,24 +1,19 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "kohya_ss"
version = "1.0.3"
description = "A GUI wrapper for kohya-ss SD scipts enabling LoRA training with an easy-to-use web application."
authors = [
{name = "bmaltais", email = "bernard@ducourier.com"},
]
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
license = "Apache-2.0"
name = "library"
version = "1.0.3"
description = "Libraries required to run kohya_ss GUI"
authors = ["Bernard Maltais <bernard@ducourier.com>"]
license = "Apache-2.0" # Apache Software License
[tool.setuptools.packages.find]
where = ["library"] # We have to explicitly tell build tools where to look
[[tool.poetry.source]]
name = "library"
path = "library"
[tool.poetry.dependencies]
python = ">=3.9,<3.11"
[tool.poetry.dev-dependencies]

View File

@ -20,7 +20,7 @@ class ImageProcessor:
self.pad = pad
self.caption = caption
self.caption_ext = caption_ext
self.image_extensions = ('.png', '.jpg', '.jpeg', '.gif', '.webp')
self.image_extensions = ('.png', '.jpg', '.jpeg', '.gif', '.webp', '.tiff')
def get_image_paths(self):
images = []