2022-07-03 10:50:54 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-pegasus-wms.api
|
|
|
|
|
#
|
2024-02-16 15:31:50 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2022-07-03 10:50:54 +00:00
|
|
|
#
|
|
|
|
|
# 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-pegasus-wms.api
|
2024-02-16 15:31:50 +00:00
|
|
|
Version: 5.0.6
|
2022-07-03 10:50:54 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Pegasus Workflow Management System Python API
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
URL: http://pegasus.isi.edu
|
2022-10-29 09:59:52 +00:00
|
|
|
Source0: pegasus-wms.api-gh-%{version}.tar.xz
|
|
|
|
|
Source1: pegasus-schema-yaml-%{version}.tar.xz
|
2024-02-16 15:31:50 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2022-07-03 10:50:54 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-02-16 15:31:50 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2022-10-29 09:59:52 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-07-03 10:50:54 +00:00
|
|
|
# SECTION test requirements
|
2024-02-16 15:31:50 +00:00
|
|
|
BuildRequires: %{python_module pegasus-wms.common}
|
2022-07-03 10:50:54 +00:00
|
|
|
BuildRequires: %{python_module jsonschema}
|
2022-10-29 09:59:52 +00:00
|
|
|
BuildRequires: %{python_module pytest-mock}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
2022-07-03 10:50:54 +00:00
|
|
|
# /SECTION
|
|
|
|
|
BuildRequires: fdupes
|
2024-02-16 15:31:50 +00:00
|
|
|
Requires: python-pegasus-wms.common
|
2022-07-03 10:50:54 +00:00
|
|
|
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
|
2024-02-16 15:31:50 +00:00
|
|
|
%pyproject_wheel
|
2022-07-03 10:50:54 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-02-16 15:31:50 +00:00
|
|
|
%pyproject_install
|
2022-07-03 10:50:54 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2024-02-16 15:31:50 +00:00
|
|
|
# same output but different order in 'uses' field (full name in one string is not excluded on Leap)
|
|
|
|
|
donttest="test_workflow and to_subworkflow_conversion_in_write"
|
2022-07-03 10:50:54 +00:00
|
|
|
%pytest -v -k "not ($donttest)"
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%dir %{python_sitelib}/Pegasus
|
|
|
|
|
%{python_sitelib}/Pegasus/api
|
2024-02-16 15:31:50 +00:00
|
|
|
%{python_sitelib}/pegasus_wms.api-%{version}.dist-info
|
2022-07-03 10:50:54 +00:00
|
|
|
|
|
|
|
|
%changelog
|