Репозиторий Sisyphus
Последнее обновление: 17 октября 2018 | Пакетов: 18649 | Посещений: 12381012
en ru br
Репозитории ALT
S:1.7.0-alt1
5.1: 1.0.2-alt1.svn20090913
www.altlinux.org/Changes

Группа :: Development/Tools
Пакет: py

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

%def_with check

Name: py
Version: 1.6.0
Release: alt1

Summary: Testing and distributed programming library
License: MIT
Group: Development/Tools
# Source-git: https://github.com/pytest-dev/py.git
Url: https://github.com/pytest-dev/py

Source: %name-%version.tar
Patch: %name-%version-alt.patch

BuildRequires(pre): rpm-build-python3
BuildRequires: python-module-setuptools_scm
BuildRequires: python3-module-setuptools_scm

%if_with check
BuildRequires: subversion
BuildRequires: subversion-server-common
BuildRequires: python-module-tox
BuildRequires: python-module-virtualenv
BuildRequires: python-module-attrs
BuildRequires: python-module-pytest
BuildRequires: python-module-decorator
BuildRequires: python-module-jinja2
BuildRequires: python3-module-tox
BuildRequires: python3-module-virtualenv
BuildRequires: python3-module-attrs
BuildRequires: python3-module-pytest
BuildRequires: python3-module-decorator
BuildRequires: python3-module-jinja2
%endif

BuildArch: noarch
Requires: python-module-%name = %EVR

%py_provides py.apipkg py.builtin py.code py.error py.iniconfig py.io py.log py.path py.process py.std py.xmlgen

%description
The py lib has several namespaces which help with testing, generating
and distributing code across machines.

%package -n python3-module-%name
Summary: Python 3 module of testing and distributed programming library
Group: Development/Python3
%add_python3_req_skip compiler
%py3_provides py.apipkg py.builtin py.code py.error py.iniconfig py.io py.log py.path py.process py.std py.xmlgen

%description -n python3-module-%name
The %name lib has several namespaces which help with testing, generating
and distributing code across machines.

This package contains python module of %name lib.

%package -n python-module-%name
Summary: Python module of testing and distributed programming library
Group: Development/Python
Conflicts: %name

%description -n python-module-%name
The py lib has several namespaces which help with testing, generating
and distributing code across machines.

This package contains python module of %name lib.

%prep
%setup
%patch0 -p1

rm -rf ../python3
cp -a . ../python3

%build
# SETUPTOOLS_SCM_PRETEND_VERSION: when defined and not empty,
# its used as the primary source for the version number in which
# case it will be a unparsed string
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
%python_build

pushd ../python3
%python3_build
popd

%install
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
%python_install

pushd ../python3
%python3_install

popd

%check
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
export LC_ALL=en_US.UTF-8
export PIP_INDEX_URL=http://host.invalid./
export PYTHONPATH=`pwd`

# copy necessary exec deps

TOX_TESTENV_PASSENV='LC_ALL SETUPTOOLS_SCM_PRETEND_VERSION PYTHONPATH' tox \
--sitepackages -e py%{python_version_nodots python} --notest
cp -f %_bindir/py.test .tox/py%{python_version_nodots python}/bin/

TOX_TESTENV_PASSENV='LC_ALL SETUPTOOLS_SCM_PRETEND_VERSION PYTHONPATH' tox \
--sitepackages -e py%{python_version_nodots python} -v -- -v

pushd ../python3
export PYTHONPATH=`pwd`
TOX_TESTENV_PASSENV='LC_ALL SETUPTOOLS_SCM_PRETEND_VERSION PYTHONPATH' tox.py3\
--sitepackages -e py%{python_version_nodots python3} --notest
cp -f %_bindir/py.test3 .tox/py%{python_version_nodots python3}/bin/py.test

TOX_TESTENV_PASSENV='LC_ALL SETUPTOOLS_SCM_PRETEND_VERSION PYTHONPATH' tox.py3\
--sitepackages -e py%{python_version_nodots python3} -v -- -v
popd

%files -n python-module-%name
%doc AUTHORS CHANGELOG LICENSE *.rst
%python_sitelibdir/py/
%python_sitelibdir/py-*.egg-info/

%files -n python3-module-%name
%doc AUTHORS CHANGELOG LICENSE *.rst
%python3_sitelibdir/py/
%python3_sitelibdir/py-*.egg-info/

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin