commit d97c1945b7d11209363ffe9e395a337ed8a2bc85099baf180b08c8834a77b43b Author: Tomáš Chvátal Date: Mon Sep 30 10:05:22 2019 +0000 Accepting request 733923 from home:mnhauke:network:automation Initial package for python-pyeapi OBS-URL: https://build.opensuse.org/request/show/733923 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyeapi?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pyeapi-0.8.2.tar.gz b/pyeapi-0.8.2.tar.gz new file mode 100644 index 0000000..6845f06 --- /dev/null +++ b/pyeapi-0.8.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5be222c290e9e14827ee15541f0e61e290e0223bdead6151233aa7baa5b1b3c8 +size 133732 diff --git a/python-pyeapi.changes b/python-pyeapi.changes new file mode 100644 index 0000000..d019ae3 --- /dev/null +++ b/python-pyeapi.changes @@ -0,0 +1,17 @@ +------------------------------------------------------------------- +Sun Sep 29 17:21:29 UTC 2019 - Martin Hauke + +- Update to version 0.8.2 +- Specfile cleanup + +------------------------------------------------------------------- +Mon Aug 7 07:47:52 UTC 2017 - mardnh@gmx.de + +- Update to version 0.8.1 +- Convert to singlespec + +------------------------------------------------------------------- +Wed Aug 31 10:46:45 UTC 2016 - mardnh@gmx.de + +- initial package, version 0.6.1 + diff --git a/python-pyeapi.spec b/python-pyeapi.spec new file mode 100644 index 0000000..36c50ad --- /dev/null +++ b/python-pyeapi.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-pyeapi +# +# Copyright (c) 2017-2019, Martin Hauke +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pyeapi +Version: 0.8.2 +Release: 0 +Summary: Python Client for eAPI +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/arista-eosplus/pyeapi +Source: https://files.pythonhosted.org/packages/source/p/pyeapi/pyeapi-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module netaddr} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: %{python_module netaddr} +BuildArch: noarch +%python_subpackages + +%description +The Python Client for eAPI (pyeapi) is a native Python library wrapper around +Arista EOS eAPI. It provides a set of Python language bindings for configuring +Arista EOS nodes. + +The Python library can be used to communicate with EOS either locally +(on-box) or remotely (off-box). It uses a standard INI-style configuration file +to specify one or more nodes and connection profiles. + +The pyeapi library also provides an API layer for building native Python +objects to interact with the destination nodes. The API layer is a convenient +implementation for working with the EOS configuration and is extensible for +developing custom implementations. + +%prep +%setup -q -n pyeapi-%{version} + +%build +%python_build + +%install +%python_install +%fdupes %{buildroot} + +%check +%pytest test/unit + +%files %{python_files} +%license LICENSE +%doc CHANGELOG.md README.md +%doc examples +%{python_sitelib}/* + +%changelog