removed support for python 3.5 and added 3.8

This commit is contained in:
Gonçalo Valério 2019-11-25 19:23:59 +00:00
parent 11388498cf
commit 58f1fc6cfc
5 changed files with 6 additions and 8 deletions

View File

@ -3,9 +3,9 @@
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
env:
- DJANGO_VERSION=django-22

View File

@ -11,9 +11,7 @@ def verify_signature(address: str, challenge: str, signature: str) -> bool:
host = settings.MONERO_WALLET_RPC_HOST
user = settings.MONERO_WALLET_RPC_USER
pwd = settings.MONERO_WALLET_RPC_PASS
wallet_rpc = AuthServiceProxy(
"{}://{}:{}@{}/json_rpc".format(protocol, user, pwd, host)
)
wallet_rpc = AuthServiceProxy("{protocol}://{user}:{pwd}@{host}/json_rpc")
result = wallet_rpc.verify(
{"data": challenge, "address": address, "signature": signature}

View File

@ -68,8 +68,8 @@ setup(
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
)

View File

@ -50,4 +50,4 @@ def test_invalid_address(network, address, settings):
with pytest.raises(ValidationError) as error:
validate_monero_address(address)
assert "Invalid address for {}".format(network) in str(error.value)
assert f"Invalid address for {network}" in str(error.value)

View File

@ -1,6 +1,6 @@
[tox]
envlist =
{py35,py36,py37}-django-22
{py36,py37,py38}-django-22
[testenv]
setenv =
@ -9,6 +9,6 @@ commands = pytest --cov=django_cryptolock tests/
deps =
-r {toxinidir}/requirements_test.txt
basepython =
py38: python3.8
py37: python3.7
py36: python3.6
py35: python3.5