Accepting request 1088373 from home:crameleon:misc
Introduce python-vagrant OBS-URL: https://build.opensuse.org/request/show/1088373 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vagrant?expand=0&rev=1
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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
16
_service
Normal file
16
_service
Normal file
@@ -0,0 +1,16 @@
|
||||
<services>
|
||||
<service name="obs_scm">
|
||||
<param name="url">https://github.com/pycontribs/python-vagrant</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="revision">refs/tags/v1.1.0</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="changesgenerate">disable</param>
|
||||
</service>
|
||||
<service mode="buildtime" name="tar"/>
|
||||
<service mode="buildtime" name="recompress">
|
||||
<param name="file">python-vagrant*.tar</param>
|
||||
<param name="compression">gz</param>
|
||||
</service>
|
||||
<service mode="buildtime" name="set_version"/>
|
||||
</services>
|
9
python-vagrant.changes
Normal file
9
python-vagrant.changes
Normal file
@@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat May 20 11:45:00 UTC 2023 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
|
||||
|
||||
- Require vagrant
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 18 10:47:12 UTC 2023 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
|
||||
|
||||
- Initial package
|
4
python-vagrant.obsinfo
Normal file
4
python-vagrant.obsinfo
Normal file
@@ -0,0 +1,4 @@
|
||||
name: python-vagrant
|
||||
version: 1.1.0
|
||||
mtime: 1670512321
|
||||
commit: b725a44754403bd174158ff018d4b517f4153a56
|
90
python-vagrant.spec
Normal file
90
python-vagrant.spec
Normal file
@@ -0,0 +1,90 @@
|
||||
#
|
||||
# spec file for package python-vagrant
|
||||
#
|
||||
# Copyright (c) 2023 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 appname vagrant
|
||||
# no tests in OBS, nested virtualization for VirtualBox and internet access for image download from the Vagrant cloud are needed
|
||||
%bcond_with test
|
||||
%if %{with test}
|
||||
%define psuffix -test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%endif
|
||||
Name: python-%{appname}%{psuffix}
|
||||
Version: 1.1.0
|
||||
Release: 0
|
||||
Summary: Python bindings for Vagrant
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/pycontribs/python-vagrant
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: %{pythons}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: vagrant
|
||||
Provides: python3-python-vagrant
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module cachetools}
|
||||
BuildRequires: %{python_module chardet}
|
||||
BuildRequires: %{python_module colorama}
|
||||
BuildRequires: %{python_module pyproject-api}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module tox}
|
||||
BuildRequires: %{python_module vagrant}
|
||||
BuildRequires: vagrant-vbguest
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Python bindings for interacting with Vagrant virtual machines.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
%if !%{with test}
|
||||
%pyproject_wheel
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{appname}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
mkdir /tmp/vagrant
|
||||
export VAGRANT_HOME=/tmp/vagrant
|
||||
%python_expand %{$python} -m pytest tests/test_vagrant.py
|
||||
rm -r /tmp/vagrant
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc CHANGELOG.md README.md
|
||||
%dir %{python_sitelib}/%{appname}
|
||||
%pycache_only %{python_sitelib}/%{appname}/__pycache__
|
||||
%{python_sitelib}/%{appname}/{__init__,compat,test}.py
|
||||
%{python_sitelib}/python_%{appname}-0.0.0.dist-info
|
||||
%endif
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user