diff --git python-virtualenvcontext/python-virtualenvcontext.spec python-virtualenvcontext/python-virtualenvcontext.spec.tmp index 95bd90c5f9..7a72ade003 100644 --- python-virtualenvcontext/python-virtualenvcontext.spec +++ python-virtualenvcontext/python-virtualenvcontext.spec.tmp @@ -2,7 +2,7 @@ Name: python-virtualenvcontext Version: 0.1.6 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Switch virtualenvs with a python context manager Group: Development/Languages @@ -16,26 +16,33 @@ BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools -Requires: python-virtualenvwrapper - -%description -Switch virtualenvs with a python context manager: - ->>> from virtualenvcontext import VirtualenvContext +%global _description\ +Switch virtualenvs with a python context manager:\ +\ +>>> from virtualenvcontext import VirtualenvContext\ +\ +>>> try:\ +>>> import kitchen\ +>>> except ImportError as e:\ +>>> print "kitchen is definitely not installed in system-python"\ +\ +>>> with VirtaulenvContext("my-venv"):\ +>>> import kitchen\ +>>> print "But it *is* installed in my virtualenv"\ +\ +>>> try:\ +>>> import kitchen\ +>>> except ImportError as e:\ +>>> print "But once I exit that block, I lose my powers again..." ->>> try: ->>> import kitchen ->>> except ImportError as e: ->>> print "kitchen is definitely not installed in system-python" +%description %_description ->>> with VirtaulenvContext("my-venv"): ->>> import kitchen ->>> print "But it *is* installed in my virtualenv" +%package -n python2-virtualenvcontext +Summary: %summary +Requires: python-virtualenvwrapper +%{?python_provide:%python_provide python2-virtualenvcontext} ->>> try: ->>> import kitchen ->>> except ImportError as e: ->>> print "But once I exit that block, I lose my powers again..." +%description -n python2-virtualenvcontext %_description %prep %setup -q -n virtualenvcontext-%{version} @@ -48,7 +55,7 @@ Switch virtualenvs with a python context manager: # Don't run the check section, since it requires a network connection. -%files +%files -n python2-virtualenvcontext %doc README.rst LICENSE PKG-INFO %{python_sitelib}/%{modname} @@ -56,6 +63,10 @@ Switch virtualenvs with a python context manager: %changelog +* Tue Aug 08 2017 Zbigniew Jędrzejewski-Szmek - 0.1.6-10 +- Python 2 binary package renamed to python2-virtualenvcontext + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 0.1.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild