[python-virtualenvcontext] Initial import (#816012)
Ralph Bean
ralph at fedoraproject.org
Wed May 9 17:41:28 UTC 2012
commit 3db008b6333f7f489b8e51466d7596db2f850f03
Author: Ralph Bean <rbean at redhat.com>
Date: Wed May 9 13:41:19 2012 -0400
Initial import (#816012)
.gitignore | 1 +
python-virtualenvcontext.spec | 68 +++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 70 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a293da1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/virtualenvcontext-0.1.4.tar.gz
diff --git a/python-virtualenvcontext.spec b/python-virtualenvcontext.spec
new file mode 100644
index 0000000..e3eef2f
--- /dev/null
+++ b/python-virtualenvcontext.spec
@@ -0,0 +1,68 @@
+%global modname virtualenvcontext
+
+Name: python-virtualenvcontext
+Version: 0.1.4
+Release: 1%{?dist}
+Summary: Switch virtualenvs with a python context manager
+
+Group: Development/Languages
+License: GPLv2+
+URL: http://pypi.python.org/pypi/%{modname}
+Source0: http://pypi.python.org/packages/source/v/%{modname}/%{modname}-%{version}.tar.gz
+
+BuildArch: noarch
+
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+
+Requires: python-virtualenvwrapper
+
+%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..."
+
+%prep
+%setup -q -n virtualenvcontext-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+# Don't run the check section, since it requires a network connection.
+
+%files
+%doc README.rst LICENSE PKG-INFO
+
+%{python_sitelib}/%{modname}
+%{python_sitelib}/%{modname}-%{version}-*.egg-info
+
+
+%changelog
+* Tue May 08 2012 Ralph Bean <rbean at redhat.com> - 0.1.4-1
+- New upstream version to (again) resolve license inconsistency.
+- Included PKG-INFO in files section.
+
+* Mon May 07 2012 Ralph Bean <rbean at redhat.com> - 0.1.3-1
+- New upstream version -- resolves licensing ambiguity.
+- More explicit directory ownership in %%{python_sitelib}
+
+* Wed Apr 25 2012 Ralph Bean <rbean at redhat.com> - 0.1.2-1
+- initial package for Fedora
diff --git a/sources b/sources
index e69de29..f352e67 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a9df60bdf9d5bfae71b8552c974c9827 virtualenvcontext-0.1.4.tar.gz
More information about the scm-commits
mailing list