-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[change] Update dependencies #203 #206
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can you also update the dependency monitoring service as done in openwisp/openwisp-utils@243f119?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also update the other outdated deps, see https://libraries.io/github/openwisp/netjsonconfig#repository_dependencies.
Yeah, sure I will. 👍🏻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yashikajotwani12 the latest version of jsonschema
is 4.4.0
. We should update that as well.
netjsonconfig/requirements.txt
Lines 1 to 3 in ca737e3
jinja2~=3.0.0 | |
jsonschema>=3.0,<3.3 | |
six |
@nemesisdesign I think it will be save to remove six
from the requirements. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nemesisdesign I think it will be save to remove
six
from the requirements. What do you think?
Yes we can remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hostname
validation has been updated in jsonschema
.
00436f8
to
c92cb14
Compare
updated the other outdated deps Fixes openwisp#203
The hostname validation has been adapted from jsonschema~=3.2.0 (jsonschema._format.is_host_name). The newer versions of jsonschema enforces FQDN validation which is not always required in OpenWISP. E.g. setting up hostname of a device.
I have fixed the failing tests. @yashikajotwani12 see 98d2ea4. Thank you for contributing. 😄 |
.github/workflows/ci.yml
Outdated
@@ -11,7 +11,7 @@ on: | |||
|
|||
jobs: | |||
build: | |||
name: Python==${{ matrix.python-version }} | |||
name: Python==${{ matrix.python-version }} | ${{ matrix.django-version }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yashikajotwani12 why did you made this change? This module is not dependent on Django.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I made it by mistake, I will take care next time, Thanks for the information
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 👍
for component in components: | ||
if len(component) > 63: | ||
return False | ||
return True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great, thanks! 👍
Fixes #203