From 59bd1b6029f729443d9353e370d8f3028a80eec5 Mon Sep 17 00:00:00 2001 From: gryf Date: Thu, 25 Sep 2025 18:50:26 +0200 Subject: [PATCH] Make tempfile prefixed with fs-uae-wrapper string. Also, included test requirements into tox file, and fixed docs. --- README.rst | 2 +- fs_uae_wrapper/base.py | 2 +- test-requirements.txt | 5 ----- tox.ini | 7 ++++++- 4 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 test-requirements.txt diff --git a/README.rst b/README.rst index ee90224..aca4a1f 100644 --- a/README.rst +++ b/README.rst @@ -377,8 +377,8 @@ To leverage more pleasant UX, additionally those bits should be installed (or - copied into base image filesystem): - ``Assign`` and whatever commands you'll be use in scripts from your copy of -- `uaequit`_ - this will allow to quit emulator, after quiting game Workbench +- `uaequit`_ - this will allow to quit emulator, after quiting game - `kgiconload`_ - tool for reading icon and executing *default tool* with optionally defined tool types as parameters (in this case: WHDLoad) - `SKick`_ optionally - for kickstart relocations. Also images of corresponding diff --git a/fs_uae_wrapper/base.py b/fs_uae_wrapper/base.py index 77c8011..1978cd0 100644 --- a/fs_uae_wrapper/base.py +++ b/fs_uae_wrapper/base.py @@ -44,7 +44,7 @@ class Base(object): if not self._validate_options(): return False - self.dir = tempfile.mkdtemp() + self.dir = tempfile.mkdtemp(prefix='fs-uae-wrapper-') self._normalize_options() self._set_assets_paths() diff --git a/test-requirements.txt b/test-requirements.txt deleted file mode 100644 index fbc7649..0000000 --- a/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -pytest -pytest-cov -pytest-pep8 -coverage -flake8 diff --git a/tox.ini b/tox.ini index 0659f33..4270053 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,12 @@ usedevelop=True setenv = COVERAGE_FILE = .coverage commands = py.test --cov=fs_uae_wrapper --cov-report=term-missing -deps = -r{toxinidir}/test-requirements.txt +deps = + pytest + pytest-cov + pytest-pep8 + coverage + flake8 [testenv:py3-flake8] basepython = python3