Пакет python3-module-GitPython: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | %define _unpackaged_files_terminate_build 1 %define pypi_name GitPython %def_without check Name: python3-module-%pypi_name Version: 3.1.42 Release: alt0.p10.1 Summary: GitPython is a python library used to interact with Git repositories License: BSD Group: Development/Python3 Url: https://pypi.org/project/GitPython/ VCS: https://github.com/gitpython-developers/GitPython BuildArch: noarch Source: %name-%version.tar Source1: git-history-tests.tar Source2: %pyproject_deps_config_name Patch0: %name-%version-alt.patch %pyproject_runtimedeps_metadata Requires: /usr/bin/git # PyPI names Provides: python3-module-gitpython = %EVR %py3_provides GitPython %py3_provides gitpython BuildRequires(pre): rpm-build-pyproject %pyproject_builddeps_build %if_with check BuildRequires: /proc BuildRequires: /usr/bin/git BuildRequires: /usr/sbin/git-daemon # not packaged and seems unmaintained %pyproject_builddeps_metadata %pyproject_builddeps_check BuildRequires: python3-module-gitdb-tests %endif %description %pypi_name is a python library used to interact with git repositories, high-level like git-porcelain, or low-level like git-plumbing. It provides abstractions of git objects for easy access of repository data, and additionally allows you to access the git repository more directly using either a pure python implementation, or the faster, but more resource intensive git command implementation. The object database implementation is optimized for handling large quantities of objects and large datasets, which is achieved by using low-level structures and data streaming. %prep %setup -a 1 %autopatch -p1 %pyproject_deps_resync_build %pyproject_deps_resync_metadata %if_with check %pyproject_deps_resync_check_pipreqfile test-requirements.txt %endif # unbundle rm -vr git/ext/* %build %pyproject_build %install %pyproject_install %check # Tests expect project's own git repo + submodules export GIT_CONFIG_GLOBAL=~/.gitconfig cat test/fixtures/.gitconfig > "$GIT_CONFIG_GLOBAL" git config --global user.email "someone@somewhere.com" git config --global user.name "someone" # prepare test git repo TEST_REPO="$(pwd)/test_repo" rm -rf "$TEST_REPO" mkdir "$TEST_REPO" cp -a .git "$TEST_REPO"/ pushd "$TEST_REPO" # see .github/workflows/pythonpackage.yml TRAVIS=yes ../init-tests-after-clone.sh popd export GIT_PYTHON_TEST_GIT_REPO_BASE="$TEST_REPO" # /usr/sbin/git-daemon export PATH=$PATH:%_sbindir export NO_SUBMODULES=YES %pyproject_run_pytest \ -vra \ --ignore test/test_installation.py \ --ignore test/test_submodule.py %files %python3_sitelibdir/git/ %python3_sitelibdir/%pypi_name-%version.dist-info/ %changelog * Wed Feb 21 2024 Andrey Cherepanov <cas@altlinux.org> 3.1.42-alt0.p10.1 - Backport new version to p10. * Fri Feb 16 2024 Stanislav Levin <slev@altlinux.org> 3.1.42-alt1 - 3.1.41 -> 3.1.42. * Wed Feb 14 2024 Stanislav Levin <slev@altlinux.org> 3.1.41-alt1 - 3.1.40 -> 3.1.41 (closes: #49418). * Thu Nov 30 2023 Andrey Cherepanov <cas@altlinux.org> 3.1.40-alt0.p10.1 - Backport to p10 branch without tests. * Tue Oct 31 2023 Stanislav Levin <slev@altlinux.org> 3.1.40-alt1 - 3.1.32 -> 3.1.40 (closes: #48252). * Thu Jul 27 2023 Stanislav Levin <slev@altlinux.org> 3.1.32-alt1 - 3.1.31 -> 3.1.32. * Fri Apr 28 2023 Stanislav Levin <slev@altlinux.org> 3.1.31-alt1 - 3.1.30 -> 3.1.31. * Fri Jan 20 2023 Stanislav Levin <slev@altlinux.org> 3.1.30-alt1 - 3.1.29 -> 3.1.30. * Tue Oct 11 2022 Stanislav Levin <slev@altlinux.org> 3.1.29-alt1 - 3.1.28 -> 3.1.29. * Fri Oct 07 2022 Stanislav Levin <slev@altlinux.org> 3.1.28-alt1 - 3.1.27 -> 3.1.28. * Fri Feb 25 2022 Stanislav Levin <slev@altlinux.org> 3.1.27-alt1 - 3.1.14 -> 3.1.27. * Wed Apr 21 2021 Vitaly Lipatov <lav@altlinux.ru> 3.1.14-alt1 - new version - build python3 module standalone * Fri May 25 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 2.1.10-alt1 - Updated to upstream version 2.1.10. * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 2.1.5-alt1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Wed Aug 09 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 2.1.5-alt1 - Updated to upstream version 2.1.5. * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.3.6-alt1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Fri Jan 23 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.3.6-alt1 - Version 0.3.6 - Added module for Python 3 * Thu Nov 28 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.3.2-alt1rc1.2 - Fixed build * Mon Jul 16 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 0.3.2-alt1rc1.1 - merge upstream/master * Fri Jul 13 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 0.3.2-alt0rc1.1 - 0.3.2-rc1 * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.3.0-alt1.1 - Rebuild with Python-2.7 * Fri Oct 08 2010 Vitaly Lipatov <lav@altlinux.ru> 0.3.0-alt1 - new version * Fri Nov 20 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.1.4.1-alt1.1 - Rebuilt with python 2.6 * Fri Nov 28 2008 Dmitry M. Maslennikov <rlz at altlinux.org> 0.1.4.1-alt1 - Initial build for ALTLinux Sisyphus |