2010-11-09 15:29:34 +00:00
|
|
|
#
|
2011-02-27 15:55:13 +00:00
|
|
|
# spec file for package python-virtualenvwrapper
|
2010-11-09 15:29:34 +00:00
|
|
|
#
|
2024-03-08 05:48:36 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2010-11-09 15:29:34 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
2012-04-10 08:56:34 +00:00
|
|
|
|
2018-12-04 14:13:08 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-11-09 15:29:34 +00:00
|
|
|
#
|
|
|
|
|
|
2012-05-12 23:32:03 +00:00
|
|
|
|
2018-01-08 17:33:11 +00:00
|
|
|
%bcond_with test
|
2021-02-13 22:07:24 +00:00
|
|
|
%global pythons python3
|
2011-12-29 03:05:54 +00:00
|
|
|
Name: python-virtualenvwrapper
|
2024-11-05 22:54:13 +00:00
|
|
|
Version: 6.1.1
|
2011-04-13 17:54:38 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Enhancements to virtualenv
|
2018-01-08 17:33:11 +00:00
|
|
|
License: MIT
|
2018-12-04 17:25:16 +00:00
|
|
|
URL: https://virtualenvwrapper.readthedocs.io/
|
2018-01-08 17:33:11 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-%{version}.tar.gz
|
2024-11-05 22:54:13 +00:00
|
|
|
Source99: python-virtualenvwrapper.rpmlintrc
|
2018-01-08 17:33:11 +00:00
|
|
|
BuildRequires: %{python_module pbr}
|
2024-03-08 05:48:36 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
2018-12-04 17:25:16 +00:00
|
|
|
BuildRequires: fdupes
|
2018-01-08 17:33:11 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-12-04 17:25:16 +00:00
|
|
|
Requires: python-stevedore
|
|
|
|
|
Requires: python-virtualenv
|
|
|
|
|
Requires: python-virtualenv-clone
|
|
|
|
|
BuildArch: noarch
|
2018-01-08 17:33:11 +00:00
|
|
|
%if %{with test}
|
|
|
|
|
BuildRequires: %{python_module stevedore}
|
|
|
|
|
BuildRequires: %{python_module virtualenv-clone}
|
|
|
|
|
BuildRequires: %{python_module virtualenv}
|
|
|
|
|
%endif
|
2024-11-05 22:54:13 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
Requires(postun): update-alternatives
|
2018-01-08 17:33:11 +00:00
|
|
|
%python_subpackages
|
2010-11-09 15:29:34 +00:00
|
|
|
|
|
|
|
|
%description
|
2011-04-13 17:54:38 +00:00
|
|
|
virtualenvwrapper is a set of extensions to Ian Bicking's virtualenv
|
|
|
|
|
tool. The extensions include wrappers for creating and deleting virtual
|
|
|
|
|
environments and otherwise managing your development workflow, making it
|
|
|
|
|
easier to work on more than one project at a time without introducing
|
|
|
|
|
conflicts in their dependencies.
|
2010-11-09 15:29:34 +00:00
|
|
|
|
2011-04-13 17:54:38 +00:00
|
|
|
1. Organizes all of your virtual environments in one place.
|
|
|
|
|
2. Wrappers for creating, copying and deleting environments, including
|
|
|
|
|
user-configurable hooks.
|
|
|
|
|
3. Use a single command to switch between environments.
|
|
|
|
|
4. Tab completion for commands that take a virtual environment as
|
|
|
|
|
argument.
|
|
|
|
|
5. User-configurable hooks for all operations.
|
|
|
|
|
6. Plugin system for more creating sharable extensions.
|
2010-11-09 15:29:34 +00:00
|
|
|
|
|
|
|
|
%prep
|
2024-03-08 05:48:36 +00:00
|
|
|
%autosetup -p1 -n virtualenvwrapper-%{version}
|
2016-08-15 18:07:49 +00:00
|
|
|
sed -i -e '1i#!/bin/sh' virtualenvwrapper.sh
|
2010-11-09 15:29:34 +00:00
|
|
|
|
|
|
|
|
%build
|
2024-03-08 05:48:36 +00:00
|
|
|
%pyproject_wheel
|
2010-11-09 15:29:34 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-03-08 05:48:36 +00:00
|
|
|
%pyproject_install
|
2018-01-08 17:33:11 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-05-09 18:52:59 +00:00
|
|
|
mv %{buildroot}%{_bindir}/virtualenvwrapper.sh %{buildroot}%{_bindir}/virtualenvwrapper
|
|
|
|
|
mv %{buildroot}%{_bindir}/virtualenvwrapper_lazy.sh %{buildroot}%{_bindir}/virtualenvwrapper_lazy
|
|
|
|
|
|
|
|
|
|
# Prepare for update-alternatives usage
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
|
|
|
for p in virtualenvwrapper virtualenvwrapper_lazy ; do
|
2018-01-08 17:33:11 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/$p
|
2016-05-09 18:52:59 +00:00
|
|
|
done
|
2013-10-12 16:43:39 +00:00
|
|
|
|
2018-01-08 17:33:11 +00:00
|
|
|
#%%check
|
|
|
|
|
#python3.6 -m venv --system-site-packages --without-pip venvwrapper-3.6
|
|
|
|
|
#sh tests/run_tests $PWD/venvwrapper-3.6
|
2013-10-12 16:43:39 +00:00
|
|
|
|
2018-01-08 17:33:11 +00:00
|
|
|
%post
|
|
|
|
|
%python_install_alternative virtualenvwrapper virtualenvwrapper_lazy
|
2011-04-13 17:54:38 +00:00
|
|
|
|
2018-01-08 17:33:11 +00:00
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative virtualenvwrapper
|
2016-05-09 18:52:59 +00:00
|
|
|
|
2018-01-08 17:33:11 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:25:16 +00:00
|
|
|
%license LICENSE
|
2024-03-08 05:48:36 +00:00
|
|
|
%doc README.es.rst README.ja.rst README.txt
|
2018-01-08 17:33:11 +00:00
|
|
|
%python_alternative %{_bindir}/virtualenvwrapper
|
|
|
|
|
%python_alternative %{_bindir}/virtualenvwrapper_lazy
|
2024-03-08 05:48:36 +00:00
|
|
|
%{python_sitelib}/virtualenvwrapper
|
|
|
|
|
%{python_sitelib}/virtualenvwrapper-%{version}.dist-info
|
2010-11-09 15:29:34 +00:00
|
|
|
|
2011-04-13 17:54:38 +00:00
|
|
|
%changelog
|