rpms/python-tg-devtools/devel import.log, NONE, 1.1 python-tg-devtools-sa05.patch, NONE, 1.1 python-tg-devtools-test_admin.patch, NONE, 1.1 python-tg-devtools.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Luke Macken
lmacken at fedoraproject.org
Wed Sep 30 21:39:45 UTC 2009
Author: lmacken
Update of /cvs/pkgs/rpms/python-tg-devtools/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv27422/devel
Modified Files:
.cvsignore sources
Added Files:
import.log python-tg-devtools-sa05.patch
python-tg-devtools-test_admin.patch python-tg-devtools.spec
Log Message:
Initial import of python-tg-devtools (#468804)
--- NEW FILE import.log ---
python-tg-devtools-2_0_2-2_fc11:HEAD:python-tg-devtools-2.0.2-2.fc11.src.rpm:1254331978
python-tg-devtools-sa05.patch:
test_pastetemplate.py | 3 +++
1 file changed, 3 insertions(+)
--- NEW FILE python-tg-devtools-sa05.patch ---
--- devtools/tests/test_pastetemplate.py.orig 2009-06-17 19:31:23.000000000 -0400
+++ devtools/tests/test_pastetemplate.py 2009-06-17 19:31:26.000000000 -0400
@@ -1,3 +1,6 @@
+__requires__ = ['SQLAlchemy>=0.5', 'sqlalchemy-migrate>=0.5.1']
+import pkg_resources
+
from devtools.pastetemplate import TurboGearsTemplate
import os, shutil, urllib
import pkg_resources
python-tg-devtools-test_admin.patch:
test_pastetemplate.py | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
--- NEW FILE python-tg-devtools-test_admin.patch ---
--- devtools/tests/test_pastetemplate.py.orig 2009-06-03 10:41:04.000000000 -0400
+++ devtools/tests/test_pastetemplate.py 2009-06-03 10:41:13.000000000 -0400
@@ -1,5 +1,5 @@
from devtools.pastetemplate import TurboGearsTemplate
-import os, shutil
+import os, shutil, urllib
import pkg_resources
from paste.deploy import loadapp
from webtest import TestApp
@@ -66,10 +66,8 @@
assert '<div id="loginform">' in resp
def test_admin(self):
- resp = self.app.get('/admin/')
- print resp
- assert 'This is a fully-configurable administrative tool to help you administer your website.' in resp
- assert '<li><a href="group/">Groups</a></li><li><a href="user/">Users</a></li><li><a href="permission/">Permissions</a></li>' in resp
+ resp = self.app.get('/admin/', status=302)
+ assert 'The current user must belong to the group \\"managers\\"' in urllib.unquote(resp.cookies_set['webflash'])
#now we run the quickstarted project nosetests
#FIXME, we need a better implementation
--- NEW FILE python-tg-devtools.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
Name: python-tg-devtools
Version: 2.0.2
Release: 2%{?dist}
Summary: Development tools and templates for TurboGears2
Group: Development/Languages
License: MIT
URL: http://www.turbogears.org
Source0: http://www.turbogears.org/2.0/downloads/current/tg.devtools-%{version}.tar.gz
Patch0: %{name}-test_admin.patch
Patch1: %{name}-sa05.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-setuptools-devel python-nose python-coverage
BuildRequires: python-repoze-tm2 python-turbokid python-turbojson
BuildRequires: python-repoze-what-quickstart python-catwalk
BuildRequires: python-zope-sqlalchemy
BuildRequires: python-paste-script python-tempita python-webtest
BuildRequires: python-migrate0.5 python-repoze-who python-repoze-who-testutil
BuildRequires: python-babel
BuildRequires: TurboGears2
Requires: TurboGears2
Requires: python-repoze-what-quickstart >= 1.0
Requires: python-repoze-who >= 1.0.10
Requires: python-repoze-who-testutil
Requires: python-catwalk
%if 0%{?fedora} <= 6
Requires: python-sqlite2
BuildRequires: python-sqlite2
BuildRequires: python-hashlib
Requires: python-hashlib
%endif
%if 0%{?fedora} > 10
Requires: python-sqlalchemy
Requires: python-migrate
%else
BuildRequires: python-sqlalchemy0.5
BuildRequires: python-migrate0.5
# Including these to hack around some setuptools bugs...
BuildRequires: python-sqlalchemy
BuildRequires: python-migrate
Requires: python-sqlalchemy0.5
Requires: python-migrate0.5
%endif
%description
This package contains various paster commands and templates used for
TurboGears2 development.
%prep
%setup -q -n tg.devtools-%{version}
%patch0 -p0 -b .test_admin
%patch1 -p0 -b .sqlalchemy
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%check
PYTHONPATH=$(pwd) %{__python} devtools/tests/test_pastetemplate.py
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc
%{python_sitelib}/devtools/
%{python_sitelib}/tg.devtools-%{version}-py%{pyver}.egg-info/
%changelog
* Tue Sep 01 2009 Luke Macken <lmacken at redhat.com> - 2.0.2-2
- Update SQLAlchemy0.5 patch
- Include both version of SQLAlchemy to get the test suite to run
* Wed Aug 12 2009 Luke Macken <lmacken at redhat.com> - 2.0.2-1
- 2.0.2
* Fri Jun 26 2009 Luke Macken <lmacken at redhat.com> - 2.0-9
- Update the sa05 patch to work with sqlalchemy-migrate 0.4 and 0.5
* Tue Jun 23 2009 Luke Macken <lmacken at redhat.com> - 2.0-8
- Hack around a setuptools bug to get the test suite to pass
with both SQLAlchemy 0.4 and 0.5 installed in the same site-packages
* Wed Jun 17 2009 Luke Macken <lmacken at redhat.com> - 2.0-7
- Add a patch to get things working with SQLAlchemy 0.5
* Wed Jun 03 2009 Luke Macken <lmacken at redhat.com> - 2.0-6
- Add a patch to "fix" the test_pastetemplate.TestQuickStart.test_admin unit test
- Enable the test suite.
* Wed Jun 03 2009 Luke Macken <lmacken at redhat.com> - 2.0-5
- Add python-catwalk to the BuildRequires
- Require python-hashlib on FC6 and below.
* Mon Jun 01 2009 Luke Macken <lmacken at redhat.com> - 2.0-4
- Conditionally require python-sqlite2
* Mon Jun 01 2009 Luke Macken <lmacken at redhat.com> - 2.0-3
- Require python-catwalk
* Mon Jun 01 2009 Luke Macken <lmacken at redhat.com> - 2.0-2
- Require python-repoze-who-testutil
* Sun May 31 2009 Luke Macken <lmacken at redhat.com> - 2.0-1
- Update to 2.0 final
- Sync our requirements
- Remove the setuptools wsgiref patch
- Disable unit tests until Catwalk is packaged
* Tue Oct 28 2008 Luke Macken <lmacken at redhat.com> - 1.9.7-0.2.a4
- Swap out tg.ext.repoze.who for tgext.authorization
* Sun Oct 26 2008 Luke Macken <lmacken at redhat.com> - 1.9.7-0.1.a4
- Initial package
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-tg-devtools/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 29 Sep 2009 19:54:28 -0000 1.1
+++ .cvsignore 30 Sep 2009 21:39:44 -0000 1.2
@@ -0,0 +1 @@
+tg.devtools-2.0.2.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-tg-devtools/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 29 Sep 2009 19:54:28 -0000 1.1
+++ sources 30 Sep 2009 21:39:44 -0000 1.2
@@ -0,0 +1 @@
+0aa191ec9f98158f977a82ca841f93af tg.devtools-2.0.2.tar.gz
More information about the fedora-extras-commits
mailing list