Commit graph

194 commits

Author SHA1 Message Date
cf2e308713
cmdtest.py: suppress traceback with expected non-zero exit val 2024-03-08 14:13:23 +00:00
2d89d6c920
various fixes and cleanups 2024-02-28 09:26:31 +00:00
de346d1470
minor fixes and cleanups 2024-02-24 14:17:31 +00:00
79f1bac97f
main.py, exec_wrapper.py: improve error output 2024-02-22 12:48:14 +00:00
cb8b697fe2
cmdtest autosign: squelch runtime msg for signing thread 2024-02-22 12:48:13 +00:00
ab71e8581d
various Python 3.9 changes 2024-02-10 15:10:43 +00:00
ea1e8d1228
bip_hd: a minimal, easy-to-use BIP-32/BIP-44 implementation
- this is a work in progress, only a few coins are currently supported

Testing:

    $ test/unit_tests.py -v bip_hd

Examples:

    $ PYTHONPATH=. examples/bip_hd.py
2024-01-26 10:54:03 +00:00
8e46932475
update copyright dates 2024-01-19 11:05:10 +00:00
ArchLinux Container
e847f8802d
scripts/create-token.py: silence Solidity warnings 2023-12-12 10:19:51 +00:00
4c49a6e59c
launch test and helper scripts with main.launch() 2023-12-12 10:19:51 +00:00
64d7434f59
scripts: add script_init mod 2023-12-12 10:19:50 +00:00
7140b76100
minor cleanups 2023-12-12 10:19:49 +00:00
48636ff2e0
update headers: mmgen -> mmgen-wallet 2023-11-17 13:35:42 +00:00
653827c15e
test suite: minor fixes and cleanups 2023-10-13 09:51:14 +00:00
6a21044127
test suite: improve initialization of sys.path and repo_root 2023-10-13 09:51:14 +00:00
60ce46c768
test rename: test.py -> cmdtest.py 2023-10-13 09:51:14 +00:00
2076c0308b
pylint (test suite) - various cleanups 2023-10-11 12:58:53 +00:00
9a8f6216f7
pylint (test suite) - f-strings 2023-10-11 12:58:52 +00:00
32593cd205
remove scripts/uninstall-mmgen.py 2023-10-11 12:58:52 +00:00
7b32c412d5
pylint (test suite) - imports 2023-10-11 12:58:51 +00:00
01430166e5
whitespace, comments, docstrings (test suite) 2023-10-11 12:58:51 +00:00
4f42233836
pylint throughout (excluding tests) - imports 2023-10-11 12:58:48 +00:00
ae533adb3a
test suite: exception handling fixes 2023-10-04 13:58:40 +00:00
f626fc2e05
missing import fixes throughout 2023-10-03 14:27:57 +00:00
11ee212fe8
helper scripts: import cleanups 2023-10-03 14:27:56 +00:00
31390cfa33
exec_wrapper.py: sys.path fixup for test scripts 2023-10-03 14:27:55 +00:00
6c249dec5b
load dev tools only when MMGEN_DEVTOOLS env var is set 2023-09-30 15:36:41 +00:00
f720b8e48e
test suite: prune sys.path, set PYTHONPATH to overlay root
- when running scripts under the exec wrapper, ensure that directories in
  `sys.path` contain no potentially importable names not present in the
  production environment
2023-09-29 12:24:22 +00:00
6a84ade2c7
exec_wrapper.py, test_init.py: minor cleanups 2023-09-29 12:24:22 +00:00
f9ee86a98a
test.py, exec_wrapper.py: improve error handling 2023-09-29 12:24:22 +00:00
a0ffe37a58
test.py: log, error filename cleanups 2023-09-29 12:24:21 +00:00
c0cfbdbb32
scripts/exec_wrapper.py: variable renames 2023-09-29 12:24:21 +00:00
31a6e62a24
test suite: sys.path, overlay, PYTHONPATH cleanups 2023-09-26 10:23:40 +00:00
19dc7eac26
minor fixes and cleanups 2023-05-23 12:12:32 +00:00
f1b427fd9c
scripts/exec_wrapper.py: sys -> exec_wrapper_sys 2023-04-04 16:04:12 +00:00
9e1935ad19
opts.init() -> Config() 2023-04-04 16:04:10 +00:00
93bcc92534
globalvars.py -> cfg.py 2023-04-04 16:04:10 +00:00
c7adb56e38
Config API, Part I
This patch eliminates the global configuration variables `opt` and `g`, making
all functions and class instances locally configurable.  Configuration data is
passed to functions and constructors via the `cfg` parameter and made available
to methods in `self.cfg`.

Local configuration free from dependence on the command line will enable the
creation of multiple, independently configured instances of MMGen’s data
objects within a single process.

Potential applications include testing (tracking wallets configured to interact
with spawned processes, for example) and the use of MMGen as a library for
other projects.

This patch completes most of the work required to enable the API.  The full
implementation will appear in a forthcoming commit.
2023-03-28 18:14:37 +00:00
c3ce1ab8e3
globalvars.py: new GlobalConstants (gc), GlobalVars (gv) classes
- The attributes of GlobalConstants are non-configurable.  They’re constant
  for a given machine, user, executable and MMGen release.

- The attributes of GlobalVars, `stderr` and `stdout`, are used by the test
  suite to redirect msg() and friends to /dev/null.

- All the aforementioned attributes formerly belonged to GlobalConfig.
2023-03-28 18:14:36 +00:00
78e882143c
whitespace, cleanups, imports throughout [73 files changed] 2023-03-27 10:49:04 +00:00
1aeefd64ae
update copyright dates 2023-01-03 10:36:07 +00:00
20f4b12832
module docstring cleanups [134 files] 2022-11-14 09:54:07 +00:00
9a1ea34309
initialize developer tools via builtins; add test 2022-10-20 18:14:15 +00:00
c3dbd720c6
minor fixes and changes 2022-10-20 18:14:14 +00:00
1d8b908c7c
util.py: relocate user-prompting functions to ui.py 2022-10-17 18:37:22 +00:00
9888fe4c65
util.py: relocate lesser-used functions to util2.py 2022-10-17 18:37:22 +00:00
6653cff8b0
Python 3.7, 3.8 compatibility fix 2022-08-16 20:35:49 +00:00
3f2acde7a8
test suite: minor changes and cleanups 2022-08-04 13:44:31 +00:00
1db6076410
scripts/exec_wrapper.py: improve traceback handling
- new environment var: EXEC_WRAPPER_TRACEBACK
2022-07-29 16:45:31 +00:00
401744bf88
minor fixes and cleanups 2022-07-27 17:08:59 +00:00