14
0

Accepting request 811685 from home:pgajdos:python

new python-junos-eznc dependency

OBS-URL: https://build.opensuse.org/request/show/811685
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntc-templates?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2020-06-05 10:20:31 +00:00
committed by Git OBS Bridge
commit f11706da8a
5 changed files with 102 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu Jun 4 10:52:21 UTC 2020 - pgajdos@suse.com
- initial version 1.4.2, required by python-junos-eznc

70
python-ntc-templates.spec Normal file
View File

@@ -0,0 +1,70 @@
#
# spec file for package python-ntc-templates
#
# Copyright (c) 2020 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-ntc-templates
Version: 1.4.2
Release: 0
Summary: Package to return structured data from the output of network devices
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/networktocode/ntc-templates
Source: https://github.com/networktocode/ntc-templates/archive/v%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-textfsm >= 1.1.0
Suggests: python-PyYAML
Suggests: python-black
Suggests: python-pytest
Suggests: python-ruamel.yaml
Suggests: python-yamllint
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module textfsm >= 1.1.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pyaml}
BuildRequires: %{python_module ruamel.yaml}
# /SECTION
%python_subpackages
%description
Package to return structured data from the output of network devices.
%prep
%setup -q -n ntc-templates-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# https://github.com/networktocode/ntc-templates/issues/743
rm tests/cisco_ios/show_access-list/cisco_ios_show_access-list.raw
%pytest -k 'not (arista_eos_show_ip_access-lists or cisco_ios_show_access-list or cisco_nxos_show_ip_bgp_neighbors or cisco_nxos_show_ip_bgp_neighbors_with_policy_names or show_arp)'
%files %{python_files}
%{python_sitelib}/*
%changelog

3
v1.4.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9525fc7ad33c205a773f5f3a160a7c210ce8c4b8d89e65fec34d34e8da532a0c
size 559329