Merge pull request #2441 from inkstitch/bkmgit/remove-stringcase-dependency

Drop stringcase dependency
bkmgit/replace-colormath-by-colorspacious
Benson Muite 2023-08-01 17:53:03 +03:00 zatwierdzone przez GitHub
commit ce7ec2b981
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -7,7 +7,6 @@ import os
import inkex
from lxml.etree import Comment
from stringcase import snakecase
from ..commands import is_command, layer_commands
from ..elements import EmbroideryElement, nodes_to_elements
@ -32,7 +31,9 @@ class InkstitchExtension(inkex.EffectExtension):
@classmethod
def name(cls):
return snakecase(cls.__name__)
# Convert CamelCase to snake_case
return cls.__name__[0].lower() + ''.join([x if x.islower() else f'_{x.lower()}'
for x in cls.__name__[1:]])
def hide_all_layers(self):
for g in self.document.getroot().findall(SVG_GROUP_TAG):

Wyświetl plik

@ -18,7 +18,6 @@ requests
# we need already submitted fixes - so let's grab them from the github repository
colormath @ git+https://github.com/gtaylor/python-colormath.git@4a076831fd5136f685aa7143db81eba27b2cd19a
stringcase
flask>=2.2.0
fonttools
trimesh>=3.15.2