15
0

Accepting request 825360 from home:badshah400:branches:science

PyCondor (Python HTCondor) is a tool to help build and submit workflows to HTCondor in a straight-forward manner with minimal hassle.

OBS-URL: https://build.opensuse.org/request/show/825360
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyCondor?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2020-08-10 11:52:53 +00:00
committed by Git OBS Bridge
commit a9aa54dc5d
5 changed files with 104 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
PyCondor-0.5.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9cf8b54159fe3a654d71ffc815840c642f3bd0c89edb401952d6b9092abf0cc2
size 28231

4
python-PyCondor.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Aug 4 14:55:54 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
- Initial package.

73
python-PyCondor.spec Normal file
View File

@@ -0,0 +1,73 @@
#
# spec file for package python-PyCondor
#
# Copyright (c) 2020 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.5.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