commit 7fd1ef03cf32375e6f9c4099be463583e57d928694ec158d10ee1ee2cb594404 Author: Robert Schweikert Date: Wed Oct 4 22:54:53 2023 +0000 Accepting request 1115617 from home:glaubitz:branches:devel:languages:python - Initial build + Version 0.0.30 OBS-URL: https://build.opensuse.org/request/show/1115617 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycomposefile?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/p_fix-version-number.patch b/p_fix-version-number.patch new file mode 100644 index 0000000..acc03a9 --- /dev/null +++ b/p_fix-version-number.patch @@ -0,0 +1,12 @@ +diff -Nru pycomposefile-0.0.30.orig/setup.py pycomposefile-0.0.30/setup.py +--- pycomposefile-0.0.30.orig/setup.py 2023-01-17 17:59:29.000000000 +0100 ++++ pycomposefile-0.0.30/setup.py 2023-10-04 15:16:46.064028015 +0200 +@@ -3,7 +3,7 @@ + + long_desc = open("README.md").read() + required = ['pyyaml'] # Comma seperated dependent libraries name +-version = os.environ.get("BUILD_TAG", "0.0.1a1").lstrip("v") ++version = os.environ.get("BUILD_TAG", "0.0.30").lstrip("v") + + setuptools.setup( + name="pycomposefile", diff --git a/pycomposefile-0.0.30.tar.gz b/pycomposefile-0.0.30.tar.gz new file mode 100644 index 0000000..e18d0f5 --- /dev/null +++ b/pycomposefile-0.0.30.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:190a2920ef05f86e620f3e0d1761931c2a57a38baa2877472337df69c8a1ca53 +size 15893 diff --git a/python-pycomposefile.changes b/python-pycomposefile.changes new file mode 100644 index 0000000..47259ba --- /dev/null +++ b/python-pycomposefile.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Oct 4 13:22:09 UTC 2023 - John Paul Adrian Glaubitz + +- Initial build + + Version 0.0.30 diff --git a/python-pycomposefile.spec b/python-pycomposefile.spec new file mode 100644 index 0000000..e3268a9 --- /dev/null +++ b/python-pycomposefile.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-pycomposefile +# +# 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/ +# + + +Name: python-pycomposefile +Version: 0.0.30 +Release: 0 +Summary: Structured deserialization of Docker Compose files +License: MIT +URL: https://github.com/smurawski/pycomposefile +Source: https://files.pythonhosted.org/packages/source/p/pycomposefile/pycomposefile-%{version}.tar.gz +# PATCH-FIX-UPSTREAM p_fix-version-number.patch +# https://github.com/smurawski/pycomposefile/issues/29 +Patch: p_fix-version-number.patch +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module PyYAML} +# /SECTION +BuildRequires: fdupes +Requires: python-PyYAML +BuildArch: noarch +%python_subpackages + +%description +Structured deserialization of Docker Compose files. + +%prep +%autosetup -p1 -n pycomposefile-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +# Tests currently fail due to missing files in PyPi tarball +# see: https://github.com/smurawski/pycomposefile/issues/28 +#%%check +#%%pyunittest -v + +%files %{python_files} +%doc README.md +%exclude %{python_sitelib}/tests +%{python_sitelib}/pycomposefile +%{python_sitelib}/pycomposefile-%{version}.dist-info + +%changelog