From 90a99cb6fb957850f5cd7dd35e5a3202aa03cef77053cfbca675e3b47b771084 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Sun, 3 Jul 2022 10:50:54 +0000 Subject: [PATCH] Accepting request 986256 from home:bnavigator:branches:science Required by PyCBC OBS-URL: https://build.opensuse.org/request/show/986256 OBS-URL: https://build.opensuse.org/package/show/science/python-pegasus-wms.api?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + _service | 29 +++++++++++ pegasus-schema-yaml-5.0.2.tar.xz | 3 ++ pegasus-wms.api-gh-5.0.2.tar.xz | 3 ++ python-pegasus-wms.api.changes | 5 ++ python-pegasus-wms.api.spec | 82 ++++++++++++++++++++++++++++++++ 7 files changed, 146 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 pegasus-schema-yaml-5.0.2.tar.xz create mode 100644 pegasus-wms.api-gh-5.0.2.tar.xz create mode 100644 python-pegasus-wms.api.changes create mode 100644 python-pegasus-wms.api.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/_service b/_service new file mode 100644 index 0000000..58cd81f --- /dev/null +++ b/_service @@ -0,0 +1,29 @@ + + + git + https://github.com/pegasus-isi/pegasus.git + packages/pegasus-api + @PARENT_TAG@ + @PARENT_TAG@ + pegasus-wms.api-gh + + + pegasus-wms.api-gh*.tar + xz + + + pegasus-wms.api-gh + + + git + https://github.com/pegasus-isi/pegasus.git + share/pegasus/schema/yaml + @PARENT_TAG@ + @PARENT_TAG@ + pegasus-schema-yaml + + + pegasus-schema-yaml*.tar + xz + + diff --git a/pegasus-schema-yaml-5.0.2.tar.xz b/pegasus-schema-yaml-5.0.2.tar.xz new file mode 100644 index 0000000..4ffc0dc --- /dev/null +++ b/pegasus-schema-yaml-5.0.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a27b2a0af49d7ea3a05a079b40c8d6e6668d35c020e0456a34d0f0abe7fe449a +size 2956 diff --git a/pegasus-wms.api-gh-5.0.2.tar.xz b/pegasus-wms.api-gh-5.0.2.tar.xz new file mode 100644 index 0000000..718dfa3 --- /dev/null +++ b/pegasus-wms.api-gh-5.0.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6d524e124ccf204022d525d8cab1d4c907a554ca105c7583773ea2ed774242d +size 57560 diff --git a/python-pegasus-wms.api.changes b/python-pegasus-wms.api.changes new file mode 100644 index 0000000..c7dde35 --- /dev/null +++ b/python-pegasus-wms.api.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Jul 1 14:15:25 UTC 2022 - Ben Greiner + +- Initial specfile for version 5.0.2 +- Required by PyCBC diff --git a/python-pegasus-wms.api.spec b/python-pegasus-wms.api.spec new file mode 100644 index 0000000..eaedfdc --- /dev/null +++ b/python-pegasus-wms.api.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-pegasus-wms.api +# +# Copyright (c) 2022 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() python3-%{**}} +%define skip_python2 1 +Name: python-pegasus-wms.api +Version: 5.0.2 +Release: 0 +Summary: Pegasus Workflow Management System Python API +License: Apache-2.0 +URL: http://pegasus.isi.edu +Source0: pegasus-wms.api-gh-%{version}.tar.xz +Source1: pegasus-schema-yaml-%{version}.tar.xz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module pegasus-wms.common < 5.1} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module jsonschema} +# /SECTION +BuildRequires: fdupes +Requires: python-pegasus-wms.common < 5.1 +BuildArch: noarch +%python_subpackages + +%description +This package contains the Python APIs for Pegasus WMS, including: + +The DAX API (Versions 2 and 3) +The PDAX API (Version 2) +The monitoring API +The Stampede database API +The Pegasus statistics API +The Pegasus plots API +Misc. Pegasus utilities +The pegasus service, including the ensemble manager and dashboard + +%prep +%setup -q -n pegasus-wms.api-gh-%{version} -b1 +# replace ties to global git repository with our limited package subset +sed -i 's|version=read_version(),|version="%{version}",|' setup.py +# replaces paths in two lines +sed -i test/api/conftest.py \ + -e 's|"packages/pegasus-api/test/api"|"pegasus-wms.api-gh-%{version}/test/api"|' \ + -e 's|"share/pegasus/schema/yaml"|"pegasus-schema-yaml-%{version}"|' + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# same output but different order in 'uses' field +donttest="test_workflow_to_subworkflow_conversion_in_write" +%pytest -v -k "not ($donttest)" + +%files %{python_files} +%doc README.md +%license LICENSE +%dir %{python_sitelib}/Pegasus +%{python_sitelib}/Pegasus/api +%{python_sitelib}/pegasus_wms.api-%{version}*-info + +%changelog