From a2fcb1cf2f0c650e53f2fc7811c354fb65251048 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Tue, 14 Mar 2023 18:08:21 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=20Migrate=20from=20netifaces=20to=20n?= =?UTF-8?q?etifaces2=20(#4743)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The original project has been abandoned two years ago: https://pypi.org/project/netifaces/ The new project claims to be nearly fully API-compatible: https://pypi.org/project/netifaces2/ Note the differences regarding `gateways` function and `AF_` constants. The OctoPrint code however does not seem to use any of those, I tested the web interface without facing issues or errors, so given the CI/CD is passed, it should be fine. Signed-off-by: MichaIng --- THIRDPARTYLICENSES.md | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/THIRDPARTYLICENSES.md b/THIRDPARTYLICENSES.md index 0222b3f5c..60a831de5 100644 --- a/THIRDPARTYLICENSES.md +++ b/THIRDPARTYLICENSES.md @@ -55,7 +55,7 @@ * [futures](https://github.com/agronholm/pythonfutures): Python * [monotonic](https://github.com/atdt/monotonic): Apache License 2.0 * [netaddr](https://github.com/drkjam/netaddr/): BSD - * [netifaces](https://bitbucket.org/al45tair/netifaces): MIT + * [netifaces2](https://github.com/SamuelYvon/netifaces-2): MIT * [pathvalidate](https://pathvalidate.readthedocs.io/en/latest/index.html): MIT * [pkginfo](http://pypi.python.org/pypi/pkginfo/): Python * [psutil](https://github.com/giampaolo/psutil): BSD diff --git a/setup.py b/setup.py index b49350cc8..b989800a3 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ core_deps = [ "future>=0.18.3,<1", # not really needed anymore, but leaving in for py2/3 compat plugins "markdown>=3.4.1,<4", "netaddr>=0.8,<0.9", # changelog hints at breaking changes on minor version increases - "netifaces>=0.11,<1", + "netifaces2>=0.0.14,<0.1", "passlib>=1.7.4,<2", "pathvalidate>=2.5.2,<3", "pkginfo>=1.9.6,<2",