commit c377bc69c62b152cd06da740167269d149300e0a66a187e1033215b8090ded15 Author: Nico Krapp Date: Wed Jun 4 16:00:24 2025 +0000 - fix usage of libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyCondor?expand=0&rev=8 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/PyCondor-0.6.0.tar.gz b/PyCondor-0.6.0.tar.gz new file mode 100644 index 0000000..8bc61a5 --- /dev/null +++ b/PyCondor-0.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3424b8f51ac63a18d3c12e1dae5316a5faa0c1dd1606bb6c1f524df5c031fcb5 +size 30252 diff --git a/python-PyCondor.changes b/python-PyCondor.changes new file mode 100644 index 0000000..a31aadc --- /dev/null +++ b/python-PyCondor.changes @@ -0,0 +1,46 @@ +------------------------------------------------------------------- +Wed Jun 4 15:37:29 UTC 2025 - Felix Stegmeier + +- fix usage of libalternatives + +------------------------------------------------------------------- +Tue May 6 12:36:10 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Fri Aug 19 14:03:26 UTC 2022 - Yogalakshmi Arunachalam + +- Removed python-PyCondor-collections.abc-Iterable.patch. + Already applied upstream + +------------------------------------------------------------------- +Wed Aug 17 22:59:08 UTC 2022 - Yogalakshmi Arunachalam + +- 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`) + +------------------------------------------------------------------- +Wed Jan 26 10:22:01 UTC 2022 - pgajdos@suse.com + +- fix build with newer pythons +- added patches + https://github.com/jrbourbeau/pycondor/commit/b41b17546c898d5cc2368b92fda86473c605e923 + + python-PyCondor-collections.abc-Iterable.patch + +------------------------------------------------------------------- +Tue Aug 4 14:55:54 UTC 2020 - Atri Bhattacharya + +- Initial package. diff --git a/python-PyCondor.spec b/python-PyCondor.spec new file mode 100644 index 0000000..e697c4b --- /dev/null +++ b/python-PyCondor.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-PyCondor +# +# 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/ +# + + +%bcond_without libalternatives +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 pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: alts +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: alts +Requires: python-click >= 7.0 +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 +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%python_clone -a %{buildroot}%{_bindir}/pycondor + +%pre +# Removing old update-alternatives entries. +%python_libalternatives_reset_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}/[Pp]y[Cc]ondor-%{version}*-info/ + +%changelog