rpms/python-twitter/devel import.log, NONE, 1.1 python-twitter-0.5-fixjsontests.patch, NONE, 1.1 python-twitter.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Tom Callaway
spot at fedoraproject.org
Thu Nov 20 19:05:52 UTC 2008
- Previous message: rpms/hdhomerun/devel .cvsignore, 1.5, 1.6 hdhomerun.spec, 1.5, 1.6 sources, 1.5, 1.6
- Next message: rpms/python-twitter/EL-4 python-twitter-0.5-fixjsontests.patch, NONE, 1.1 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: spot
Update of /cvs/extras/rpms/python-twitter/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16949/devel
Modified Files:
.cvsignore sources
Added Files:
import.log python-twitter-0.5-fixjsontests.patch
python-twitter.spec
Log Message:
initial import
--- NEW FILE import.log ---
python-twitter-0_5-1_fc10:HEAD:python-twitter-0.5-1.fc10.src.rpm:1227207804
python-twitter-0.5-fixjsontests.patch:
--- NEW FILE python-twitter-0.5-fixjsontests.patch ---
diff -up python-twitter-0.5/twitter_test.py.BAD python-twitter-0.5/twitter_test.py
--- python-twitter-0.5/twitter_test.py.BAD 2008-10-20 15:02:40.000000000 -0400
+++ python-twitter-0.5/twitter_test.py 2008-10-20 15:04:53.000000000 -0400
@@ -17,7 +17,7 @@ import twitter
class StatusTest(unittest.TestCase):
- SAMPLE_JSON = '''{"created_at": "Fri Jan 26 23:17:14 +0000 2007", "id": 4391023, "text": "A l\u00e9gp\u00e1rn\u00e1s haj\u00f3m tele van angoln\u00e1kkal.", "user": {"description": "Canvas. JC Penny. Three ninety-eight.", "id": 718443, "location": "Okinawa, Japan", "name": "Kesuke Miyagi", "profile_image_url": "http:\/\/twitter.com\/system\/user\/profile_image\/718443\/normal\/kesuke.png", "screen_name": "kesuke", "url": "http:\/\/twitter.com\/kesuke"}}'''
+ SAMPLE_JSON = '''{"created_at": "Fri Jan 26 23:17:14 +0000 2007", "id": 4391023, "text": "A l\u00e9gp\u00e1rn\u00e1s haj\u00f3m tele van angoln\u00e1kkal.", "user": {"description": "Canvas. JC Penny. Three ninety-eight.", "id": 718443, "location": "Okinawa, Japan", "name": "Kesuke Miyagi", "profile_image_url": "http://twitter.com/system/user/profile_image/718443/normal/kesuke.png", "screen_name": "kesuke", "url": "http://twitter.com/kesuke"}}'''
def _GetSampleUser(self):
return twitter.User(id=718443,
@@ -146,7 +146,7 @@ class StatusTest(unittest.TestCase):
class UserTest(unittest.TestCase):
- SAMPLE_JSON = '''{"description": "Indeterminate things", "id": 673483, "location": "San Francisco, CA", "name": "DeWitt", "profile_image_url": "http:\/\/twitter.com\/system\/user\/profile_image\/673483\/normal\/me.jpg", "screen_name": "dewitt", "status": {"created_at": "Fri Jan 26 17:28:19 +0000 2007", "id": 4212713, "text": "\\"Select all\\" and archive your Gmail inbox. The page loads so much faster!"}, "url": "http:\/\/unto.net\/"}'''
+ SAMPLE_JSON = '''{"description": "Indeterminate things", "id": 673483, "location": "San Francisco, CA", "name": "DeWitt", "profile_image_url": "http://twitter.com/system/user/profile_image/673483/normal/me.jpg", "screen_name": "dewitt", "status": {"created_at": "Fri Jan 26 17:28:19 +0000 2007", "id": 4212713, "text": "\\"Select all\\" and archive your Gmail inbox. The page loads so much faster!"}, "url": "http://unto.net/"}'''
def _GetSampleStatus(self):
return twitter.Status(created_at='Fri Jan 26 17:28:19 +0000 2007',
--- NEW FILE python-twitter.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-twitter
Summary: A python wrapper around the Twitter API
Version: 0.5
Release: 1%{?dist}
License: ASL 2.0
Group: System Environment/Libraries
Source0: http://python-twitter.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0: python-twitter-0.5-fixjsontests.patch
URL: http://code.google.com/p/python-twitter/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel, python-setuptools, python-simplejson
Requires: python-simplejson
%description
This library provides a pure python interface for the Twitter API. Twitter
(http://twitter.com) provides a service that allows people to connect via the
web, IM, and SMS. Twitter exposes a web services API
(http://twitter.com/help/api) and this library is intended to make it even
easier for python programmers to use.
%prep
%setup -q
%patch0 -p1
chmod -x README
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
chmod +x $RPM_BUILD_ROOT%{python_sitelib}/twitter.py
%check
export PYTHONPATH=$RPM_BUILD_ROOT/%{python_sitelib}
%{__python} setup.py test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README PKG-INFO
%{python_sitelib}/twitter.*
%{python_sitelib}/python_twitter-%{version}-py*.egg-info
%changelog
* Mon Oct 20 2008 Tom "spot" Callaway <tcallawa at redhat.com> 0.5-1
- Initial package for Fedora
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-twitter/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 20 Nov 2008 18:53:37 -0000 1.1
+++ .cvsignore 20 Nov 2008 19:05:21 -0000 1.2
@@ -0,0 +1 @@
+python-twitter-0.5.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-twitter/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 20 Nov 2008 18:53:37 -0000 1.1
+++ sources 20 Nov 2008 19:05:21 -0000 1.2
@@ -0,0 +1 @@
+d4fe92ca630a7339a064cef8e91af2b9 python-twitter-0.5.tar.gz
- Previous message: rpms/hdhomerun/devel .cvsignore, 1.5, 1.6 hdhomerun.spec, 1.5, 1.6 sources, 1.5, 1.6
- Next message: rpms/python-twitter/EL-4 python-twitter-0.5-fixjsontests.patch, NONE, 1.1 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list