Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37854075
en ru br
ALT Linux repos
S:0.3.2-alt1

Group :: Development/Python3
RPM: python3-module-tox-console-scripts

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname tox-console-scripts

%def_with check

Name: python3-module-%oname
Version: 0.3.2
Release: alt1

Summary: Tox plugin for installation of console scripts for system site packages
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/tox-console-scripts/

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

BuildRequires(pre): rpm-build-python3

%if_with check
BuildRequires: python3(tox)
BuildRequires: python3(pytest)
BuildRequires: python3(pytest_mock)
%endif

%py3_provides %oname

BuildArch: noarch

%description
It's possible to use system site packages within Python virtual environment,
but there is no way to install console or gui scripts into such environment.

With the help of this plugin the corresponding scripts will be automatically
generated for system site packages calculated as dependencies of current
environment.

%prep
%setup
%autopatch -p1

%build
%python3_build

%install
%python3_install

%check
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3

tox.py3 --sitepackages -vvr

%files
%python3_sitelibdir/tox_console_scripts/
%python3_sitelibdir/tox_console_scripts-%version-py%_python3_version.egg-info/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin