Adding README.md, .gitignore, .gitattributes; adding python-netifaces2 files
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
_buildconfig-*
|
||||||
|
_buildinfo-*
|
||||||
|
*.obscpio
|
||||||
|
python-netifaces2/
|
27
README.md
Normal file
27
README.md
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# python-netifaces2
|
||||||
|
|
||||||
|
URL: [netifaces-2](https://github.com/SamuelYvon/netifaces-2)
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
## NOTE(s):
|
||||||
|
* 20251007: "This repository was archived by the owner on Sep 30, 2025. It is now read-only."
|
||||||
|
|
||||||
|
### What is this?
|
||||||
|
|
||||||
|
netifaces reborn
|
||||||
|
|
||||||
|
The original [netifaces](https://github.com/al45tair/netifaces) was abandoned by it's maintainer, leaving us without the option to get network addresses of any kind in Python. Unfortunately, the original sources are more akin to arcane magic, so picking where it's been left off is a difficult task.
|
||||||
|
|
||||||
|
I decided to rewrite netifaces, keeping the almost exact same API and adding the following:
|
||||||
|
|
||||||
|
* Support for future python versions
|
||||||
|
* Type annotations
|
||||||
|
* Maybe a more "queryable" API in the future
|
||||||
|
|
||||||
|
This project aims to be a drop-in replacement for those project who use netifaces, but I do not guarantee anything.
|
||||||
|
|
||||||
|
### What is not working right-now
|
||||||
|
|
||||||
|
* The gateways API is only working if your system has a /proc/net/route file or the ip tool
|
||||||
|
* The windows gateways API is non-functional
|
9
_service
Normal file
9
_service
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<services>
|
||||||
|
<service name="download_files" mode="manual" />
|
||||||
|
<service name="cargo_vendor" mode="manual">
|
||||||
|
<!--
|
||||||
|
<param name="srcdir">fish</param>
|
||||||
|
-->
|
||||||
|
<param name="srctar">netifaces2-*.tar.gz</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
BIN
netifaces2-0.0.22.tar.gz
(Stored with Git LFS)
Normal file
BIN
netifaces2-0.0.22.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
9
python-netifaces2.changes
Normal file
9
python-netifaces2.changes
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 31 19:17:39 UTC 2024 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Adding 'Conflicts: python3-netifaces'
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 31 18:14:41 UTC 2024 - Scott Bradnick <scott.bradnick@suse.com>
|
||||||
|
|
||||||
|
- Initial version from upstream
|
86
python-netifaces2.spec
Normal file
86
python-netifaces2.spec
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-netifaces2
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define skip_python311 1
|
||||||
|
%define skip_python312 1
|
||||||
|
%define orig_name netifaces
|
||||||
|
%define short_name netifaces2
|
||||||
|
|
||||||
|
Name: python-netifaces2
|
||||||
|
Version: 0.0.22
|
||||||
|
Release: 0
|
||||||
|
Summary: Reborn version of original/archived netifaces
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/SamuelYvon/netifaces-2
|
||||||
|
Source0 https://files.pythonhosted.org/packages/source/n/netifaces2/netifaces2-%{version}.tar.gz
|
||||||
|
Source1: vendor.tar.zst
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module maturin}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: cargo
|
||||||
|
BuildRequires: cargo-packaging
|
||||||
|
BuildRequires: meson
|
||||||
|
BuildRequires: rust
|
||||||
|
BuildRequires: fdupes
|
||||||
|
Conflicts: python3-netifaces
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
1. What is this?
|
||||||
|
|
||||||
|
The original netifaces was abandoned by it's maintainer, leaving us without
|
||||||
|
the option to get network addresses of any kind in Python. Unfortunately,
|
||||||
|
the original sources are more akin to arcane magic, so picking where it's
|
||||||
|
been left off is a difficult task.
|
||||||
|
|
||||||
|
I decided to rewrite netifaces, keeping the almost exact same API and adding
|
||||||
|
the following:
|
||||||
|
|
||||||
|
* Support for future python versions
|
||||||
|
* Type annotations
|
||||||
|
* Maybe a more "queryable" API in the future
|
||||||
|
|
||||||
|
This project aims to be a drop-in replacement for those project who use
|
||||||
|
netifaces, but I do not guarantee anything.
|
||||||
|
|
||||||
|
1.1 What is not working right-now
|
||||||
|
|
||||||
|
* The gateways API is only working if your system has a /proc/net/route
|
||||||
|
file or the ip tool
|
||||||
|
* The windows gateways API is non-functional
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -a1 -n %{short_name}-%{version}
|
||||||
|
#find . -type f -exec sed -i 's@#!%%{_bindir}/env python$@#!%%{_bindir}/python@' {} +
|
||||||
|
#find . -type f -exec sed -i 's@#!%%{_bindir}/env python3$@#!%%{_bindir}/python3@' {} +
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%{python_sitearch}/%{orig_name}
|
||||||
|
%dir %{python_sitearch}/%{short_name}-%{version}.dist-info
|
||||||
|
%{python_sitearch}/%{short_name}-%{version}.dist-info/*
|
||||||
|
|
||||||
|
%changelog
|
BIN
vendor.tar.zst
(Stored with Git LFS)
Normal file
BIN
vendor.tar.zst
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user