gryf
118d758ec7
Trailing space
2024-09-14 10:57:50 +02:00
gryf
3b597e34ee
Fix some lint errors and warnings
2024-09-14 10:53:58 +02:00
gryf
7b40974779
Fixed imports order
2024-09-14 09:22:41 +02:00
gryf
b4ab8ac4f5
Change GH action icon location
2024-09-13 21:29:54 +02:00
gryf
8d8d38d5c0
Move from travis to gh actions
2024-09-13 21:27:40 +02:00
gryf
bd0aa3dee4
Changed name for the tests workflow
2024-09-13 21:25:00 +02:00
gryf
d2a9f39fd9
Create python-app.yml
2024-09-13 21:02:58 +02:00
gryf
f1f64cf4d4
Added WHDLoad support
2024-09-13 18:18:35 +02:00
gryf
a5606272cd
Fix unit tests
2024-09-13 18:16:45 +02:00
gryf
463f6ed705
Fixed deduction of archive name.
...
When in different directory, the archive name and config need to be
treated differently. This commit unify behavior for both cases.
Also, changing a bit logging format and added some more debugging
messages.
2024-09-12 20:29:34 +02:00
gryf
148d28dac2
Make archive name and archiver for savestate optional.
2024-09-11 21:23:49 +02:00
gryf
60139d1728
Move to pyproject.
2024-09-11 19:53:52 +02:00
gryf
1559591417
Changed python3 interpreter to default.
...
Currently, as a python3 interpreter, specific version has been chosen.
As fs-uae-wrapper doesn't use any special features from latest version
of the python3, it doesn't make sense to have fixed version of it. Just
let operating system pick right python 3 interpreter.
2019-10-06 18:09:32 +02:00
gryf
193e487bb9
Fix download link and typo in readme
2017-06-19 19:55:02 +02:00
gryf
eb9012f3fa
Readme update
2017-01-12 21:09:12 +01:00
gryf
efbb5f6f05
Readme update
2017-01-09 06:41:16 +01:00
gryf
00e3cf9801
Introduced new configuration variable $WRAPPER
...
Calculation of file path may be performed in two different places -
first is the original location of the config file, second is on copied
one. Adding new option WRAPPER will take the same role as $CONFIG,
except it will be only parsed on copied configuration file.
An alternative would be to check existence in both places, but I'd like
to have it explicit.
2017-01-08 19:40:27 +01:00
gryf
388a8cc835
Fix for interpolate_variables function
2017-01-08 15:38:59 +01:00
gryf
83185011aa
Fix for config options containing HOME variable
2017-01-08 15:37:29 +01:00
gryf
152446abbe
Use logging for displaying messages
...
Also added debug logs
2017-01-08 13:58:47 +01:00
gryf
a918e4c9ff
Added logging module
2017-01-08 13:17:41 +01:00
gryf
7931022777
Additional tests for util module
2017-01-08 12:35:51 +01:00
gryf
1a67b355ae
Removed unused run function from savestate wrapper
2017-01-08 12:01:25 +01:00
gryf
6a026ecff1
Fix for typo in attribute name
2017-01-08 11:59:43 +01:00
gryf
bd0e3ea56a
Added more tests for file_archive module
2017-01-08 11:56:40 +01:00
gryf
8a6ddda7c8
Make plain wrapper module use base.Base class
2017-01-08 11:21:43 +01:00
gryf
a14871c52f
Get rid of run function for every wrapper module
2017-01-08 11:20:33 +01:00
gryf
8528d28a42
Get rid of unneeded _run_emulator parameter
2017-01-08 11:17:37 +01:00
gryf
ab4042f880
Refactor wrapper modules to have a main class with the same name
2017-01-07 13:13:18 +01:00
gryf
8892940339
Normalize paths for config options
...
Removing _kickstart_option in favor of _normalize_options method to
detect and replace relative paths with absolute ones. Dictionary with
changed options lands as a commandline switches for fs-uae during
execution.
2017-01-07 13:13:06 +01:00
gryf
853dca385e
Readme update
2017-01-07 09:55:22 +01:00
gryf
334b56bad3
Version bump
2017-01-07 09:45:37 +01:00
gryf
6d84fc4b8a
Make wrapper_archiver option mandatory in savestare module
2017-01-07 09:43:53 +01:00
gryf
c5ce27e637
Added savestate wrapper module
2017-01-07 09:31:59 +01:00
gryf
ae6e00ea1c
Added gitignore
2017-01-07 09:29:18 +01:00
gryf
f1fb43ca64
Extract new base class for archive wrapper module
2017-01-07 09:10:03 +01:00
gryf
77cf10cee7
Fixed issue with compressing files with tar.*
...
This changeset fixes tar behavior on creating archive, like:
tar cf foo.tar .
which include also archive file itself, so that tar reports an error
`file changed as we read it` during appending archive file to itself.
This changest is fixing that by replacing dot with list of items to be
added to the archive (similar as in RarArchive.create).
2017-01-06 16:53:49 +01:00
gryf
250b1c4c2c
Version bump
2017-01-03 20:07:01 +01:00
gryf
0cbe6fc9d0
Added wrapper_save_state option
2017-01-03 19:34:42 +01:00
gryf
0b831e5b10
Setting assets paths in base class
2017-01-03 18:49:18 +01:00
gryf
1d35436dee
Fixed tests for wrapper modules
...
Exchanged os.rename with shutil.move since there was a problem with
moving files between different filesystems.
2017-01-03 06:01:30 +01:00
gryf
db7b8e347a
Version bump
2017-01-02 20:19:30 +01:00
gryf
994768806c
Parametrize extract and create methods for Archive base class
2017-01-02 20:17:13 +01:00
gryf
19acb789b6
Added wrapper_archiver option
...
To give user a possibility to choose what archiver he can use another
options was introduced for cd32 and archive wrapper modules. This option
will indicate what archiver should be used for compressing the save
state directories.
2017-01-02 20:08:50 +01:00
gryf
5f98e9b794
Moved save state out of _make_archive method
...
Now _save_save method will be called from run() method.
2017-01-02 19:30:09 +01:00
gryf
3906e4c80b
Moved which function to another module
2017-01-02 19:27:49 +01:00
gryf
38a2322e98
Fix for file_archive tests
2017-01-02 16:05:18 +01:00
gryf
48bb1b1e1f
Bumped version, readme update
2017-01-02 15:46:07 +01:00
gryf
ee65e7ed7f
Added support for zip archiver
...
Also fixed issue with extension get from regexp
2017-01-02 15:39:28 +01:00
gryf
230ec154b6
Fix for archives like .tar.bz2
2017-01-02 14:06:34 +01:00
gryf
77dd4dfaf4
Added new function for creating archives
2017-01-02 13:50:39 +01:00
gryf
22d152bb64
Extract getting the title to a new method in wrapper base class
2017-01-02 13:48:24 +01:00
gryf
38a9604916
Implementation for saving changes in archive wrapper module
2017-01-02 13:47:07 +01:00
gryf
251fab377b
Non existed archive will not be fatal
...
Moved logic which check for archive file explicitly to extract method.
That way get_archiver will return archiver for not (yet) existed
archives.
2017-01-02 13:13:55 +01:00
gryf
252c013fc4
New wrapper module - for archived fs
2017-01-02 11:03:27 +01:00
gryf
dcf2ab0634
Cleaned up tests
2017-01-02 11:02:49 +01:00
gryf
026dbf6abd
Added tests for file_archive module
2017-01-02 10:53:16 +01:00
gryf
c8fa2d7ad4
Added archive file handler
2017-01-02 10:01:10 +01:00
gryf
ab71e270d8
Removed archive from utils
2017-01-02 10:00:35 +01:00
gryf
989c268b56
Added test for base wrapper class
...
Moved most tests from cd32 module to base one. Added missing tests for
cd32 module.
2017-01-01 18:33:31 +01:00
gryf
fa7afcb73b
Adjust existing cd32 module for base class
...
Fix failing tests for small changes in utils and cd32/base modules
2017-01-01 17:31:40 +01:00
gryf
47787a3ab2
Added base class for wrapper modules
2017-01-01 17:31:25 +01:00
gryf
4c39e572a6
Removed six as a dependency
...
Changed logic for checking if run_command argument is a list. Fixed
tests and refactoring save_save() method in cd32 module.
2017-01-01 14:13:48 +01:00
gryf
ef5631de3c
Added additional tests for cd32 module
...
Also, new command was added to utils - run_command which is an
generalized subprocess.call function.
Requirements is now added with module six, which was needed to detect
string-like objects in sane way.
2016-12-31 20:20:07 +01:00
gryf
364bb9ae59
Added test for run emulator for cd32 module
2016-12-31 19:25:41 +01:00
gryf
d4844bb0fb
Added test for extract for cd32 module
2016-12-31 19:02:10 +01:00
gryf
fe83ae1813
Added copy_conf method test
2016-12-31 18:47:55 +01:00
gryf
1878fd48a1
Fix for case when there is no archiver found on the system
2016-12-28 19:26:57 +01:00
gryf
6667f5c5be
README update
2016-12-27 22:13:39 +01:00
gryf
c6522061c8
Added cd32 wrapper module
2016-12-27 21:44:44 +01:00
gryf
71e0319e1f
Added tests for utils module
2016-12-27 21:22:12 +01:00
gryf
124fc2ed9d
Make message close method bit more bulletproof
...
Noe, it it possible to create Message object and perform close() on it,
even if show() wasn't called before. It have a bit more sense since it
should be harmless for closing possibly non existent message.
2016-12-27 20:41:29 +01:00
gryf
988784dbf3
Fixed occasionally failing tests caused by the wrong list order
2016-12-27 20:24:18 +01:00
gryf
11202903d5
Added simple test for plain module
2016-12-27 20:10:39 +01:00
gryf
36fe31c99e
Refactoring wrapper
2016-12-27 20:02:12 +01:00
gryf
c8b4207040
Utils refactoring.
...
Added safe guards for get_config function, introduced CmdOption class
for convenient accessing options as a dict keys with option to make them
as a list of commandline options suitable for passing to fs-uae.
2016-12-27 19:58:30 +01:00
gryf
f616a8db06
Removed bloated class and replace it with pure functions in 'plain' module
2016-12-27 19:57:34 +01:00
gryf
cadcc30734
Added utility module with common functions
2016-12-25 19:03:30 +01:00
gryf
4da34da59e
Moved constant to the module init
2016-12-25 19:02:41 +01:00
gryf
9bbe39b059
Extracted some methods to utils module
2016-12-25 16:21:57 +01:00
gryf
8b51979dc5
Using configparser for getting options from config file
2016-12-25 11:21:53 +01:00
gryf
517831796e
Changed behavior of parse args
2016-12-25 10:57:14 +01:00
gryf
8999c361a2
Added conditional for gui tests, which depends on graphical environment
2016-12-24 10:28:13 +01:00
gryf
0c1bfa3620
Added ability to show and destroy message windows
2016-12-23 19:22:37 +01:00
gryf
7f8c4d2f6a
Added missing space in message
2016-12-23 18:47:42 +01:00
gryf
b3cbd915a5
Added plain module to the docs
2016-12-23 18:46:53 +01:00
gryf
abff0fb62b
Added tests for wrapper module finctions
2016-12-20 20:05:20 +01:00
gryf
60b192403b
Added mock as test dependency to Python2 environment
2016-12-20 20:01:55 +01:00
gryf
9037f013d3
Added travis conf
2016-12-19 20:27:52 +01:00
gryf
acb056f112
Added plain module - for running fs-uae directly
2016-12-19 20:23:44 +01:00
gryf
b14a9f0156
Added wrapper module
2016-12-19 20:23:04 +01:00
gryf
38d6bde19c
Added tests for the wrapper
2016-12-19 20:22:41 +01:00
gryf
68049a6eb8
Added tox, setup.py, executable, test-req
2016-12-19 20:22:22 +01:00
gryf
e3cfd02686
Readme update
2016-12-19 18:24:37 +01:00
gryf
a70befad3b
Initial commit
2016-12-18 20:42:04 +01:00