From 7871583eaac3f86fb8d3b17eead00cc5767a00b1 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Wed, 18 Oct 2023 12:11:49 +0000 Subject: [PATCH] add `xmr-requirements.txt` file --- mmgen/rpc.py | 2 +- setup.cfg | 1 - xmr-requirements.txt | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 xmr-requirements.txt diff --git a/mmgen/rpc.py b/mmgen/rpc.py index 3487bac2..cb1ef2e3 100755 --- a/mmgen/rpc.py +++ b/mmgen/rpc.py @@ -146,7 +146,7 @@ class RPCBackends: if caller.auth_type: auth = 'HTTP' + caller.auth_type.capitalize() + 'Auth' self.session.auth = getattr(requests.auth,auth)(*caller.auth) - if self.proxy: + if self.proxy: # used only by XMR for now: requires pysocks package self.session.proxies.update({ 'http': f'socks5h://{self.proxy}', 'https': f'socks5h://{self.proxy}' diff --git a/setup.cfg b/setup.cfg index 3def017a..2f3c3bd1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -38,7 +38,6 @@ install_requires = ecdsa aiohttp requests - pysocks # xmrwallet.py pexpect scrypt; platform_system != "Windows" # must be installed by hand on MSYS2 semantic-version; platform_system != "Windows" # scripts/create-token.py diff --git a/xmr-requirements.txt b/xmr-requirements.txt new file mode 100644 index 00000000..02c50b62 --- /dev/null +++ b/xmr-requirements.txt @@ -0,0 +1,2 @@ +pycryptodomex +pysocks