Skip to content

Commit

Permalink
Merge pull request #26 from makermelissa/master
Browse files Browse the repository at this point in the history
Fix for click 8.0.0
  • Loading branch information
hathach committed May 18, 2021
2 parents 9c66aa3 + c9d4ebf commit fd00af3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions nordicsemi/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class nRFException(Exception):


def int_as_text_to_int(value):
value = str(value)
try:
if value[:2].lower() == '0x':
return int(value[2:], 16)
Expand All @@ -60,6 +61,7 @@ class BasedIntOrNoneParamType(click.ParamType):
name = 'Int or None'

def convert(self, value, param, ctx):
value = str(value)
try:
if value.lower() == 'none':
return 'none'
Expand Down
2 changes: 1 addition & 1 deletion nordicsemi/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@

""" Version definition for nrfutil. """

NRFUTIL_VERSION = "0.5.3.post15"
NRFUTIL_VERSION = "0.5.3.post16"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyserial >= 2.7
click == 7.1.2
click >= 5.1
ecdsa >= 0.13
behave
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def run_tests(self):
include_package_data=False,
install_requires=[
"pyserial >= 2.7",
"click == 7.1.2",
"click >= 5.1",
"ecdsa >= 0.13",
],
tests_require=[
Expand Down

0 comments on commit fd00af3

Please sign in to comment.