forked from pool/python-PyCondor
- Removed python-PyCondor-collections.abc-Iterable.patch.
Already applied upstream
- update to 0.6.0
* Bug fix release to get development started again.
New Features:
* No new features added
Changes:
* Transition to pycondor namespace (See :pr:`149`)
Improvements to testing and infrastructure (See :pr:`135`, :pr:`148`, :pr:`149`, :pr:`141`, and :pr:`152`)
Use sphinx extlinks in the changelog (See :pr:`130`)
Bug Fixes:
* Fix counting of unready jobs in monitor (See :pr:`138`)
* Updates to the logging setup (See :pr:`129`)
* Fix issue in python 3.8 (See :pr:`140`)
Documentation:
* Migrate documentation to readthedocs (See :pr:`150`)
OBS-URL: https://build.opensuse.org/request/show/998187
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyCondor?expand=0&rev=4
74 lines
2.2 KiB
RPMSpec
74 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-PyCondor
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%global modname PyCondor
|
|
Name: python-PyCondor
|
|
Version: 0.6.0
|
|
Release: 0
|
|
Summary: Python utility for HTCondor
|
|
License: MIT
|
|
URL: https://github.com/jrbourbeau/pycondor
|
|
Source: https://files.pythonhosted.org/packages/source/P/PyCondor/PyCondor-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
BuildArch: noarch
|
|
# SECTION For tests
|
|
BuildRequires: %{python_module click >= 7.0}
|
|
BuildRequires: %{python_module pytest}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
PyCondor (Python HTCondor) is a tool to help build and submit workflows to HTCondor in a straight-forward manner with minimal hassle.
|
|
|
|
%prep
|
|
%setup -q -n PyCondor-%{version}
|
|
sed -Ei "1{/^#!\/usr\/bin\/env python/d}" pycondor/tests/example_script.py
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pycondor
|
|
|
|
%post
|
|
%python_install_alternative pycondor
|
|
|
|
%postun
|
|
%python_uninstall_alternative pycondor
|
|
|
|
%check
|
|
# We cannot actually submit jobs, so disable these tests
|
|
%pytest -k 'not (test_monitor_file_raises or test_submit_file_raises)'
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%python_alternative %{_bindir}/pycondor
|
|
%{python_sitelib}/pycondor/
|
|
%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/
|
|
|
|
%changelog
|