Пакет python-module-virtualenv: 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 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 | %define _unpackaged_files_terminate_build 1 %define modulename virtualenv %def_with check Name: python-module-%modulename Version: 16.5.0 Release: alt1 Summary: Virtual Python Environment builder License: MIT Group: Development/Python # git://github.com/pypa/virtualenv.git Url: http://pypi.python.org/pypi/virtualenv Source: %name-%version.tar.gz Patch: %name-%version-alt.patch BuildRequires(pre): rpm-build-python3 %if_with check BuildRequires: python2.7(coverage) BuildRequires: python2.7(json) BuildRequires: python2.7(mock) BuildRequires: python2.7(nose) BuildRequires: python2.7(pip) BuildRequires: python2.7(pytest_timeout) BuildRequires: python2.7(pytest-xdist) BuildRequires: python3(coverage) BuildRequires: python3(nose) BuildRequires: python3(pip) BuildRequires: python3(pytest_timeout) BuildRequires: python3(pytest-xdist) BuildRequires: python3(tox) %endif BuildArch: noarch # json is not direct dep, but it is required to # use bundled 'pip' whl package, otherwise installation fails Requires: python-modules-json %description Tool to create isolated Python environments. With virtualenv it is became possible to keep separate set of python libraries for each of your project. Just exec "virtualenv /your/dir" and whole python enviroment (including setuptools and easy_install) will be installed there. You could exec scripts in newly created environment by invoking /your/dir/bin/python %description -l ru_RU.UTF-8 Утилита для создания изолированных окружений для Python. С Virtualenv вы можете создать независимые наборы библиотек для каждого вашего проекта. Опционально вы можете запретить использование системных библиотек. Просто выполните "virtualenv /your/dir" и полное виртуальное окружение Python будет создано в каталоге, который вы указали (setuptools и easy_install будут также установлены и при вызове будут устанавливать новые библиотеки в ваше виртуальное окружение). Чтобы выполнить ваши скрипты в вновь созданном окружение запускайте их при помощи /your/dir/bin/python %package -n python3-module-%modulename Summary: Virtual Python 3 Environment builder Group: Development/Python3 %description -n python3-module-%modulename Tool to create isolated Python environments. With virtualenv it is became possible to keep separate set of python libraries for each of your project. Just exec "virtualenv /your/dir" and whole python enviroment (including setuptools and easy_install) will be installed there. You could exec scripts in newly created environment by invoking /your/dir/bin/python %prep %setup %patch -p1 # to reflect virtualenv_embedded/ updates on virtualenv.py # if any file was changed under this directory then it's # hash is updated in virtualenv.py and returns 1 otherwise 0 python3 tasks/update_embedded.py || python3 tasks/update_embedded.py rm -rf ../python3 cp -a . ../python3 %build %python_build pushd ../python3 %python3_build popd %install pushd ../python3 %python3_install mv %buildroot%_bindir/{virtualenv,virtualenv3} popd %python_install %check # we don't package pytest 4.x yet grep -qsF 'pytest >= 4.0.0, <5' setup.cfg || exit 1 sed -i 's/pytest >= 4.0.0, <5/pytest/g' setup.cfg # another one workaround for pytest 3.x grep -rlF 'monkeypatch.chdir(tmp_path)' | \ xargs sed -i 's/monkeypatch.chdir(tmp_path)/monkeypatch.chdir(str(tmp_path))/g' sed -i '/\[testenv\]/a whitelist_externals =\ \/bin\/cp\ \/bin\/sed\ commands_pre =\ \/bin\/cp %_bindir\/coverage \{envbindir\}\/coverage\ \/bin\/sed -i \x271c #!\{envpython\}\x27 \{envbindir\}\/coverage' tox.ini export PIP_NO_INDEX=YES export PIP_FIND_LINKS=`pwd`/build/lib/virtualenv_support export TOX_TESTENV_PASSENV='PIP_NO_INDEX PIP_FIND_LINKS' export TOXENV=py%{python_version_nodots python},py%{python_version_nodots python3} tox.py3 --sitepackages -p auto -o -vr %files %doc docs/* *.txt *.rst %_bindir/virtualenv %exclude %_bindir/virtualenv3 %python_sitelibdir/virtualenv.py* %python_sitelibdir/virtualenv-*.egg-info/ %python_sitelibdir/virtualenv_support/ %files -n python3-module-%modulename %doc docs/* *.txt *.rst %_bindir/virtualenv3 %python3_sitelibdir/virtualenv.py %python3_sitelibdir/virtualenv-*.egg-info/ %python3_sitelibdir/virtualenv_support/ %python3_sitelibdir/__pycache__/virtualenv.* %changelog * Thu May 09 2019 Stanislav Levin <slev@altlinux.org> 16.5.0-alt1 - 16.4.3 -> 16.5.0. * Sun Mar 24 2019 Stanislav Levin <slev@altlinux.org> 16.4.3-alt1 - 16.1.0 -> 16.4.3. * Thu Nov 01 2018 Stanislav Levin <slev@altlinux.org> 16.1.0-alt1 - 16.0.0 -> 16.1.0. * Thu May 31 2018 Stanislav Levin <slev@altlinux.org> 16.0.0-alt1 - 15.1.0 -> 16.0.0 * Thu Mar 29 2018 Stanislav Levin <slev@altlinux.org> 15.1.0-alt3 - Fix system sys.path down to virtualenv - Cleanup patches * Sun Mar 25 2018 Stanislav Levin <slev@altlinux.org> 15.1.0-alt2 - Fix installation within the bare virtualenv under python3 - Cleanup spec * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 15.1.0-alt1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Mon Aug 14 2017 Fr. Br. George <george@altlinux.ru> 15.1.0-alt1 - Autobuild version bump to 15.1.0 * Fri Jul 14 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 15.0.3-alt2 - Fixed build spec with py.test3 * Thu Sep 01 2016 Fr. Br. George <george@altlinux.ru> 15.0.3-alt1 - Autobuild version bump to 15.0.3 - Fix build/tests * Wed Aug 31 2016 Denis Medvedev <nbr@altlinux.org> 13.1.0-alt2 - fixed sitelibs for python3 * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 13.1.0-alt1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Wed Aug 12 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 13.1.0-alt1 - Version 13.1.0 * Mon Jan 19 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 12.0.5-alt1 - Version 12.0.5 * Thu Dec 25 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 12.0.4-alt1 - Version 12.0.4 * Tue Dec 23 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 12.0.1-alt1 - Version 12.0.1 * Fri Oct 17 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.11.6-alt1 - Version 1.11.6 * Mon Aug 18 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9.1-alt2 - Added provides '%modulename' for Python 3 * Thu Nov 28 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9.1-alt1.1 - Fixed build * Tue Apr 02 2013 Aleksey Avdeev <solo@altlinux.ru> 1.9.1-alt1 - 1.9.1 (Closes: #28670) * Sun Mar 03 2013 Aleksey Avdeev <solo@altlinux.ru> 1.8.4-alt1 - 1.8.4 * Mon May 07 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.7-alt1.1 - Added module for Python 3 * Wed Feb 08 2012 Vladimir V. Kamarzin <vvk@altlinux.org> 1.7-alt1 - New version (Closes: #26819) * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.3.3-alt1.1.1 - Rebuild with Python-2.7 * Wed Nov 18 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.3.3-alt1.1 - Rebuilt with python 2.6 * Sun May 17 2009 Maxim Ivanov <redbaron at altlinux.org> 1.3.3-alt1 - Bump to 1.3.3 - added docs * Wed Sep 17 2008 Maxim Ivanov <redbaron at altlinux.org> 1.2-alt1 - Initial build for Sisyphus |