1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-09-13 09:09:58 +00:00

1 Commits

Author SHA1 Message Date
dependabot[bot]
1d70acdab5 Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 18:06:42 +00:00
6 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
platformdirs==4.3.8
appdirs==1.4.4
argcomplete==3.0.8
blinker==1.6.2
click==8.1.3

View File

@@ -43,7 +43,7 @@ install_requires =
python-barcode>=0.15.0,<1
setuptools
six
platformdirs
appdirs
PyYAML
argcomplete
importlib_resources

View File

@@ -13,10 +13,9 @@ from typing import Any, Dict, Optional, Type
import importlib_resources
import yaml
if environ.get("ESCPOS_CAPABILITIES_DEBUG", 0):
logging.basicConfig()
logging.basicConfig()
logger = logging.getLogger(__name__)
pickle_dir = environ.get("ESCPOS_CAPABILITIES_PICKLE_DIR", mkdtemp())
pickle_path = path.join(pickle_dir, f"{platform.python_version()}.capabilities.pickle")
# get a temporary file from importlib_resources if no file is specified in env

View File

@@ -5,7 +5,7 @@ This module contains the implementations of abstract base class :py:class:`Confi
import os
import pathlib
import platformdirs
import appdirs
import yaml
from . import exceptions, printer
@@ -55,7 +55,7 @@ class Config:
if not config_path:
config_path = os.path.join(
platformdirs.user_config_dir(self._app_name), self._config_file
appdirs.user_config_dir(self._app_name), self._config_file
)
if isinstance(config_path, pathlib.Path):
# store string if posixpath

View File

@@ -8,7 +8,7 @@
"""
import pathlib
import platformdirs
import appdirs
import pytest
import escpos.exceptions
@@ -80,7 +80,7 @@ def test_config_load_from_appdir() -> None:
# generate a dummy config
config_file = (
pathlib.Path(platformdirs.user_config_dir(config.Config._app_name))
pathlib.Path(appdirs.user_config_dir(config.Config._app_name))
/ config.Config._config_file
)

View File

@@ -55,6 +55,7 @@ deps = mypy
types-six
types-mock
types-PyYAML
types-appdirs
types-Pillow
types-pyserial
types-pywin32>=306.0.0.6