Commit Graph
45 Commits
Author SHA1 Message Date
Vincent Jacques 63a56e074a Add a customizable User-Agent (issue #109) 2012-11-19 21:18:43 +01:00
Vincent Jacques f6dc7b43fd Merge branch 'develop' into topic/UnauthenticatedRateLimitedRequests 2012-11-19 20:13:08 +01:00
Michael Woodworth 4f2030ad6c added client_id and client_secret auth option 2012-11-07 18:15:27 -05:00
Zearin 4c6a70c24a Add encoding comment to source files
This is a minor thing.  It’s a convention, not a rule (obviously)—but it’s also a best practice.

Many text editors look for this kind of comment as the first line—or second line, if there is a shebang (the `#!/usr/bin/env python`, or whatever else)—and make use of this to determine the file’s encoding.
2012-11-01 11:43:56 -04:00
Vincent Jacques 1867f461ed Restore support of Python 2.5 2012-10-28 11:13:21 +01:00
Vincent Jacques af98e6d1d4 Implement optional revert of #102 (issue #104) 2012-10-28 10:12:25 +01:00
Vincent Jacques 531c3f2d32 Improve comformance to pep8 (+dos2unix)
PyGithub is now a public projects with several public contibutors,
I have to abandon my very personal coding conventions.
2012-09-17 20:37:22 +02:00
Vincent Jacques ef403a1594 Do all paginated calls inside PaginatedList
This was already the case for Legacy.PaginatedList.

Doing it in PaginatedList.PaginatedList reduces the amount of
repeated code and will allow a generic solution for issue #77
2012-09-11 23:47:08 +02:00
Vincent Jacques b758b24bdb Implement https://api.github.com/hooks (issue #35) 2012-09-08 19:35:58 +02:00
Dima Kukushkin 6515629975 Add timeout option 2012-08-25 23:34:19 +04:00
Steve English 7456c1e49b Specify a server url for Github.
Allows connection to GitHub Enterprise installs on local URLs.
2012-07-23 17:39:56 +01:00
Vincent Jacques 9c4a3a0bba Merge branch 'topic/Markdown' into develop 2012-07-13 20:42:26 +02:00
Vincent Jacques 478c0aaa2b Implement markdown rendering (Issue #56) 2012-07-13 18:13:43 +02:00
Vincent Jacques 5cbee7346f Small clean-up + type fixes 2012-07-10 20:37:49 +01:00
Vincent Jacques d40bec470e Urlquote the keyword in legacy search APIs 2012-06-29 19:45:14 +01:00
Vincent Jacques d8882e53ed Improve legacy APIs:
- add a legacy_ prefix (avoir future name clashes)
- add the language parameter to Github.legacy_search_repos
- prepare legacy pagination
2012-06-29 18:09:43 +01:00
Vincent Jacques 37c06ea4fc Convert legacy objects to v3 ones
Still needed:
- test completion of objects returned by legacy API
- implement legacy pagination
2012-06-29 07:44:10 +02:00
Vincent Jacques ed31abe6de Add 4 (failing) tests for legacy search API (issue #49)
Naïve implementation done in this commit will not work:
- pagination is managed another way
- users, repositories and issues do not have the standard format
2012-06-28 22:06:05 +01:00
Vincent Jacques bdad6a4612 Create documentation and method stubs for issue #49 (legacy search api) 2012-06-28 21:27:53 +01:00
Vincent Jacques 41c2b94f95 Add a copyright and license notice (issue #16) 2012-06-03 19:56:33 +01:00
Vincent Jacques d261b4ba46 Factorize checking of status 2012-06-03 11:33:37 +02:00
Vincent Jacques dbad46e856 Test more exceptions 2012-06-02 13:26:09 +01:00
Vincent Jacques 9820c58477 Move generated code to 'github' instead of 'src/github' 2012-06-02 13:06:28 +01:00
Vincent Jacques d631e83b79 Move files around 2012-05-10 18:10:17 +02:00
Vincent Jacques 07e994823e Fix testGists 2012-05-08 08:36:50 +01:00
Vincent Jacques c3dd5cd2f1 Fix testGistsAll, improve testEvents 2012-05-05 16:43:13 +02:00
Vincent Jacques f0430bb535 Restore some tests and explain why others are failing 2012-05-04 16:28:12 +02:00
Vincent Jacques 229b218ce6 Simplify 2012-05-04 14:02:07 +02:00
Vincent Jacques edad378e7b Fix github.get_organization => fix testOrganizationDetails! 2012-05-03 22:40:28 +01:00
Vincent Jacques 46883927a6 Fix github.get_user( login ) 2012-05-03 22:30:39 +01:00
Vincent Jacques 04cde900a0 On the way to code generation instead of meta-description
(lots of useless eratic history squashed together in one commit)
2012-05-03 21:51:19 +01:00
Vincent Jacques e5ae923a68 Add facilities for uniform debug printing 2012-04-17 18:47:11 +01:00
Vincent Jacques a91131be42 Finaly do a poor implementation of Github.get_gists 2012-03-19 20:01:46 +01:00
Vincent Jacques 832605afcb Gists 2012-02-28 20:24:00 +00:00
Vincent Jacques 1f43877343 Extract Requester from Github 2012-02-18 04:44:20 +00:00
Vincent Jacques 74618d316e Raise on 404 error when getting data 2012-02-18 04:39:41 +00:00
Vincent Jacques 439e43233e Add unit tests for requests 2012-02-18 04:36:37 +00:00
Vincent Jacques 6bc581a263 Rewrite asserts 2012-02-16 22:58:51 +01:00
Vincent Jacques fcbcd145bb Reimplement networking with httplib instead of urllib2
This will allow real access to HTTP headers and status
2012-02-13 22:19:40 +01:00
Vincent Jacques 2b31f2e9c3 AuthenticatedUser.add_following and .remove_following 2012-02-13 21:43:45 +01:00
Vincent Jacques c0c2f50416 Fix previous commit 2012-02-13 20:56:57 +01:00
Vincent Jacques 5f36cbc957 Add organizations 2012-02-12 20:04:25 +01:00
Vincent Jacques 34f59de12d ExtendedScalarAttributes in Repository 2012-02-12 19:47:10 +01:00
Vincent Jacques 88ef264264 Retrieve user by login 2012-02-12 18:22:30 +01:00
Vincent Jacques d9e79948b9 First integration test 2012-02-12 16:33:27 +01:00