- Converted to singlespec to generate a python3 package - Update to 4.8.2 * Merged in jeffwidman/virtualenvwrapper-2/jeffwidman/update-rtd-url-they-now-use-io-rather-t-1505539237232 (pull request #63) * Merged in jeffwidman/virtualenvwrapper-1/jeffwidman/add-python-36-to-pypi-trove-classifiers-1505539102243 (pull request #62) * Merged in jeffwidman/virtualenvwrapper/jeffwidman/update-readme-with-current-test-status--1505538852189 (pull request #61) * Update RTD url * Add python 3.6 to Pypi trove classifiers * Update readme with current test status - Update to 4.8.1 * New PBR doesn’t like provides_dist - Update to 4.8.0 * Merged in fix/263 (pull request #60) * Merged in fix/296 (pull request #59) * Fixing Documentation * Update supported versions * Adding python 3.6 * Fixing run_hook and tab_completion * First shot at Fixing #263 * Adding a note about package managers * Merged in zmwangx/virtualenvwrapper/always-export-virtualenvwrapper_hook_dir (pull request #55) * Typo fix * Merged in lendenmc/virtualenvwrapper (pull request #51) * Merged in SpotlightKid/virtualenvwrapper/bugfix/distutils-sysconfig (pull request #56) * Merged in dougharris/virtualenvwrapper (pull request #53) * Merged in kk6/virtualenvwrapper/fix/wipeenv_ignore_setuptools_dependencies (pull request #57) * Merged in erickmk/virtualenvwrapper/erickmk/command_refrst-edited-online-with-bitbuc-1491225971803 (pull request #58) * Update sentence to make it more clear * command_ref.rst edited online with Bitbucket * Fixes Issue #291 wipeenv ignore setuptools’s dependencies * Import distutils.sysconfig properly (fixes #167) OBS-URL: https://build.opensuse.org/request/show/562589 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenvwrapper?expand=0&rev=57
101 lines
3.5 KiB
RPMSpec
101 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package python-virtualenvwrapper
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%bcond_with test
|
|
Name: python-virtualenvwrapper
|
|
Version: 4.8.2
|
|
Release: 0
|
|
Summary: Enhancements to virtualenv
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Url: https://virtualenvwrapper.readthedocs.io/
|
|
Source: https://files.pythonhosted.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-%{version}.tar.gz
|
|
Patch: virtualenvwrapper-4.2-fix-bashisms.patch
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pbr}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: python-rpm-macros
|
|
%if %{with test}
|
|
BuildRequires: %{python_module stevedore}
|
|
BuildRequires: %{python_module virtualenv-clone}
|
|
BuildRequires: %{python_module virtualenv}
|
|
%endif
|
|
BuildRequires: fdupes
|
|
Requires: python-stevedore
|
|
Requires: python-virtualenv
|
|
Requires: python-virtualenv-clone
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
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.
|
|
|
|
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.
|
|
|
|
%prep
|
|
%setup -q -n virtualenvwrapper-%{version}
|
|
%patch -p1
|
|
sed -i -e '1i#!/bin/sh' virtualenvwrapper.sh
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
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
|
|
%python_clone -a %{buildroot}%{_bindir}/$p
|
|
done
|
|
|
|
#%%check
|
|
#python3.6 -m venv --system-site-packages --without-pip venvwrapper-3.6
|
|
#sh tests/run_tests $PWD/venvwrapper-3.6
|
|
|
|
%post
|
|
%python_install_alternative virtualenvwrapper virtualenvwrapper_lazy
|
|
|
|
%postun
|
|
%python_uninstall_alternative virtualenvwrapper
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS ChangeLog LICENSE README.es.rst README.ja.rst README.txt
|
|
%python_alternative %{_bindir}/virtualenvwrapper
|
|
%python_alternative %{_bindir}/virtualenvwrapper_lazy
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|