commit e945bc58c8db6092dda41a35360a0d5dea4715ef854c3a9423617b798b4d6895 Author: Matej Cepl Date: Mon May 22 13:31:36 2023 +0000 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 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/_service b/_service new file mode 100644 index 0000000..c5db557 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + https://github.com/pycontribs/python-vagrant + git + @PARENT_TAG@ + refs/tags/v1.1.0 + v(.*) + disable + + + + python-vagrant*.tar + gz + + + diff --git a/python-vagrant.changes b/python-vagrant.changes new file mode 100644 index 0000000..3aac8d4 --- /dev/null +++ b/python-vagrant.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Sat May 20 11:45:00 UTC 2023 - Georg Pfuetzenreuter + +- Require vagrant + +------------------------------------------------------------------- +Thu May 18 10:47:12 UTC 2023 - Georg Pfuetzenreuter + +- Initial package diff --git a/python-vagrant.obsinfo b/python-vagrant.obsinfo new file mode 100644 index 0000000..6d65328 --- /dev/null +++ b/python-vagrant.obsinfo @@ -0,0 +1,4 @@ +name: python-vagrant +version: 1.1.0 +mtime: 1670512321 +commit: b725a44754403bd174158ff018d4b517f4153a56 diff --git a/python-vagrant.spec b/python-vagrant.spec new file mode 100644 index 0000000..21387ca --- /dev/null +++ b/python-vagrant.spec @@ -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