Browse Source

add `xmr-requirements.txt` file

The MMGen Project 1 year ago
parent
commit
7871583eaa
3 changed files with 3 additions and 2 deletions
  1. 1 1
      mmgen/rpc.py
  2. 0 1
      setup.cfg
  3. 2 0
      xmr-requirements.txt

+ 1 - 1
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}'

+ 0 - 1
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

+ 2 - 0
xmr-requirements.txt

@@ -0,0 +1,2 @@
+pycryptodomex
+pysocks