Fixes the following error when executing the tests during a Nix build:
Traceback (most recent call last):
File "/build/inkstitch/lib/elements/element.py", line 714, in handle_unexpected_exceptions
yield
File "/build/inkstitch/lib/elements/element.py", line 650, in embroider
stitch_groups = self._load_cached_stitch_groups(previous_stitch, next_element)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build/inkstitch/lib/debug/debug.py", line 172, in decorated
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/build/inkstitch/lib/elements/element.py", line 541, in _load_cached_stitch_groups
stitch_groups = get_stitch_plan_cache().get(cache_key)
^^^^^^^^^^^^^^^^^^^^^^^
File "/build/inkstitch/lib/utils/cache.py", line 31, in get_stitch_plan_cache
cache_dir = get_user_dir('cache')
^^^^^^^^^^^^^^^^^^^^^
File "/build/inkstitch/lib/utils/paths.py", line 50, in get_user_dir
os.makedirs(path)
File "<frozen os>", line 215, in makedirs
File "<frozen os>", line 215, in makedirs
File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
Fixes the following error when attempting to build the Nix package:
python bin/generate-inx-files;
Traceback (most recent call last):
File "/build/inkstitch/bin/generate-inx-files", line 59, in <module>
from lib.inx.generate import generate_inx_files
File "/build/inkstitch/lib/inx/generate.py", line 6, in <module>
from .extensions import generate_extension_inx_files
File "/build/inkstitch/lib/inx/extensions.py", line 10, in <module>
from ..commands import (COMMANDS, GLOBAL_COMMANDS, LAYER_COMMANDS,
File "/build/inkstitch/lib/commands.py", line 16, in <module>
from .i18n import N_, _
File "/build/inkstitch/lib/i18n.py", line 10, in <module>
from .utils import cache, get_resource_dir
File "/build/inkstitch/lib/utils/__init__.py", line 6, in <module>
from . import cache as cache_module # Slight hack to allow cache to be imported for monkeypatching
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build/inkstitch/lib/utils/cache.py", line 13, in <module>
from lib.utils.settings import global_settings
File "/build/inkstitch/lib/utils/settings.py", line 84, in <module>
global_settings = GlobalSettings()
^^^^^^^^^^^^^^^^
File "/build/inkstitch/lib/utils/settings.py", line 48, in __init__
self.__settings_file = os.path.join(get_user_dir(), "settings.json")
^^^^^^^^^^^^^^
File "/build/inkstitch/lib/utils/paths.py", line 50, in get_user_dir
os.makedirs(path)
File "<frozen os>", line 215, in makedirs
File "<frozen os>", line 215, in makedirs
File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
This commit reverts 4cfb02c370
which did not fix anything as far as I can tell.
The inkex.Color constructor has been doing the same split
logic since 2018 and the used ColorCMS class isn't available
in the inkex that's bundled with Inkscape which breaks
packaging for Linux distros such as NixOS.
To prevent such breakages from being introduce accidentally
in the future the pinned inkex version is changed to the git tagged
version EXTENSIONS_AT_INKSCAPE_1.4.1.
Fixes#3824.
This introduces a new workflow that just runs the tests
on pull requests and pushes and takes ~1min30s in the GitHub CI.
The previous build workflow didn't run on PRs and takes an hour.
While the trims default was changed in pyembroidery back in 2019
with c4242f0f940c86766c0c27f65b5a09641b0af4bd that change only
made it into the used Ink/Stitch fork of pyembroidery in 2022
with 28534cf1a8.
So trims have been broken in Ink/Stitch since v2.2.0.
Fixes#2813.
* firststeps
* Update element_info.py
* Update element_info.py
* Update element_info.py
add some help
* make style...
* rename a variable and fix a mistake
* make headline nicer
* first steps
* Update lettering_svg_font_to_layers.py
* add more user parameters
* Update lettering_svg_font_to_layers.py
* round the horiz_adv_x
* remove scoriers
* better handle the case when the reference glyph is not in the font
* removed strip flag from linux pyinstaller that caused numpy import issue
* test numpy binary with strip flag
* added clean flag to pyinstaller args
* done testing removed strip flag from pyinstaller args
---------
Co-authored-by: rejbasket <rejbasket@users.noreply.github.com>