From 731ac2868e30dbccf5771abf79564d8bab1156c2 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 27 Jul 2025 07:28:20 +0200 Subject: rename pyembroidery to pystitch (#3889) ... and remove it as a submodule (use pip to install) --- bin/pyembroidery-convert | 6 ------ bin/pyembroidery-gettext | 10 ---------- bin/pystitch-convert | 6 ++++++ bin/pystitch-gettext | 10 ++++++++++ bin/style-check | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) delete mode 100755 bin/pyembroidery-convert delete mode 100755 bin/pyembroidery-gettext create mode 100755 bin/pystitch-convert create mode 100755 bin/pystitch-gettext (limited to 'bin') diff --git a/bin/pyembroidery-convert b/bin/pyembroidery-convert deleted file mode 100755 index ac58e3e5..00000000 --- a/bin/pyembroidery-convert +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env python - -import sys -import pyembroidery - -pyembroidery.convert(sys.argv[1], sys.argv[2]) diff --git a/bin/pyembroidery-gettext b/bin/pyembroidery-gettext deleted file mode 100755 index f4e844b9..00000000 --- a/bin/pyembroidery-gettext +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env python - -import pyembroidery - - -# generate fake python code containing the descriptions of pyembroidery formats -# as gettext calls so that pybabel will extract them into messages.po -for format in pyembroidery.supported_formats(): - print("# L10N description for pyembroidery file format: %s" % format['extension']) - print("_(%s)" % repr(format['description'])) diff --git a/bin/pystitch-convert b/bin/pystitch-convert new file mode 100755 index 00000000..92e814a2 --- /dev/null +++ b/bin/pystitch-convert @@ -0,0 +1,6 @@ +#!/usr/bin/env python + +import sys +import pystitch + +pystitch.convert(sys.argv[1], sys.argv[2]) diff --git a/bin/pystitch-gettext b/bin/pystitch-gettext new file mode 100755 index 00000000..06871527 --- /dev/null +++ b/bin/pystitch-gettext @@ -0,0 +1,10 @@ +#!/usr/bin/env python + +import pystitch + + +# generate fake python code containing the descriptions of pystitch formats +# as gettext calls so that pybabel will extract them into messages.po +for format in pystitch.supported_formats(): + print("# L10N description for pystitch file format: %s" % format['extension']) + print("_(%s)" % repr(format['description'])) diff --git a/bin/style-check b/bin/style-check index bdac3a76..fa4cc745 100755 --- a/bin/style-check +++ b/bin/style-check @@ -5,4 +5,4 @@ # Instead of files, "--diff" may be passed to check only the lines changed # by a diff piped to standard input. -flake8 --count --max-complexity=10 --max-line-length=150 --statistics --exclude=pyembroidery,__init__.py,build,src,dist,./*-metadata.py,./pyembroidery-format-descriptions.py "${@:-.}" +flake8 --count --max-complexity=10 --max-line-length=150 --statistics --exclude=__init__.py,build,src,dist,./*-metadata.py,./pystitch-format-descriptions.py "${@:-.}" -- cgit v1.2.3