From 2d112a5a56f7d0273b36c7f9d34b7f8423546155f2d722e14916eae51a7363ad Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Thu, 13 Feb 2025 20:49:16 +0000 Subject: [PATCH] =?UTF-8?q?-=20Update=20to=20version=200.0.32=20=20=20*=20?= =?UTF-8?q?Update=20build.yaml=20=20=20*=20Updates=20=20=20*=20Bump=20publ?= =?UTF-8?q?ish=20=20=20*=20Update=20publish=20with=203.10=20(quotes)=20-?= =?UTF-8?q?=20from=20version=200.0.31=20=20=20*=20Create=20LICENSE=20=20?= =?UTF-8?q?=20*=20Replace=20import=20of=20=E2=80=9Csrc.pycomposefile?= =?UTF-8?q?=E2=80=9D=20in=20a=20test=20=20=20*=20Resolved=20error=20when?= =?UTF-8?q?=20environment=20variable=20value=20contains=20equal=20sign=20-?= =?UTF-8?q?=20Refresh=20p=5Ffix-version-number.patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycomposefile?expand=0&rev=5 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + p_fix-version-number.patch | 12 +++++++ pycomposefile-0.0.30.tar.gz | 3 ++ pycomposefile-0.0.32.tar.gz | 3 ++ python-pycomposefile.changes | 25 ++++++++++++++ python-pycomposefile.spec | 66 ++++++++++++++++++++++++++++++++++++ 7 files changed, 133 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 p_fix-version-number.patch create mode 100644 pycomposefile-0.0.30.tar.gz create mode 100644 pycomposefile-0.0.32.tar.gz create mode 100644 python-pycomposefile.changes create mode 100644 python-pycomposefile.spec 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..50ea9c0 --- /dev/null +++ b/p_fix-version-number.patch @@ -0,0 +1,12 @@ +diff -Nru pycomposefile-0.0.32.orig/setup.py pycomposefile-0.0.32/setup.py +--- pycomposefile-0.0.32.orig/setup.py 2024-10-22 21:45:01.000000000 +0200 ++++ pycomposefile-0.0.32/setup.py 2025-02-13 09:44:53.716839775 +0100 +@@ -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.32").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/pycomposefile-0.0.32.tar.gz b/pycomposefile-0.0.32.tar.gz new file mode 100644 index 0000000..4a2cd9f --- /dev/null +++ b/pycomposefile-0.0.32.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a355d515c4c4ff92ee5a16590de8b367a3be4827046592d0870f8cb6ac4a6e34 +size 15946 diff --git a/python-pycomposefile.changes b/python-pycomposefile.changes new file mode 100644 index 0000000..7715aba --- /dev/null +++ b/python-pycomposefile.changes @@ -0,0 +1,25 @@ +------------------------------------------------------------------- +Thu Feb 13 20:48:26 UTC 2025 - John Paul Adrian Glaubitz + +- Update to version 0.0.32 + * Update build.yaml + * Updates + * Bump publish + * Update publish with 3.10 (quotes) +- from version 0.0.31 + * Create LICENSE + * Replace import of “src.pycomposefile” in a test + * Resolved error when environment variable value contains equal sign +- Refresh p_fix-version-number.patch + +------------------------------------------------------------------- +Wed Mar 6 14:58:59 UTC 2024 - John Paul Adrian Glaubitz + +- Switch package to modern Python Stack on SLE-15 + + Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +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..a39f96e --- /dev/null +++ b/python-pycomposefile.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-pycomposefile +# +# Copyright (c) 2025 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-pycomposefile +Version: 0.0.32 +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_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# 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