Skip to content

Commit

Permalink
feature: remove netifaces dependency
Browse files Browse the repository at this point in the history
This commit removes netifaces from the cloud-init dependency lists
  • Loading branch information
catmsred committed Dec 4, 2023
1 parent 5b3565e commit c55c07a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module = [
"debconf",
"httplib",
"jsonpatch",
"netifaces",
"paramiko.*",
"pip.*",
"pycloudlib.*",
Expand Down
9 changes: 0 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,3 @@ jsonpatch

# For validating cloud-config sections per schema definitions
jsonschema

# Used by DataSourceVMware to inspect the host's network configuration during
# the "setup()" function.
#
# This allows a host that uses DHCP to bring up the network during BootLocal
# and still participate in instance-data by gathering the network in detail at
# runtime and merge that information into the metadata and repersist that to
# disk.
netifaces>=0.10.4
2 changes: 1 addition & 1 deletion tests/unittests/sources/test_vmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def common_patches():
),
mock.patch(
"cloudinit.netinfo.netdev_info",
return_value=[],
return_value={},
),
mock.patch(
"cloudinit.sources.DataSourceVMware.getfqdn",
Expand Down
1 change: 0 additions & 1 deletion tools/build-on-netbsd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ pkgs="
${py_prefix}-oauthlib
${py_prefix}-requests
${py_prefix}-setuptools
${py_prefix}-netifaces
${py_prefix}-yaml
${py_prefix}-jsonschema
sudo
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ deps =
requests==2.18.4
jsonpatch==1.16
jsonschema==2.6.0
netifaces==0.10.4
# test-requirements
pytest==3.3.2
pytest-cov==2.5.1
Expand Down

0 comments on commit c55c07a

Please sign in to comment.