Commit Graph
33 Commits
Author SHA1 Message Date
Mike Miller 9aed19ddbe Use 'requests' instead of 'httplib' (#664)
* works (but tests fail)

* Refactor to use python requests rather than httplib

* add requests dependency in setup.py

* touch so travis-ci will run

* clean up some unused comments

* Handle HTTP vs HTTPS; handle custom base_url

* Use requests session

* Don't use a persistent session in tests (which don't use the real requests library)

* Use an older version of requests for python 3.2

Requests dropped support for Python 3.2 in the 2.10 series (though it
didn't detect this until 2.11).

PyGithub probably doesn't need to support Python 3.2 at all; it's quite
old, with negligably few users, but that should be addressed elsewhere.

* Revert "Use an older version of requests for python 3.2"

This reverts commit fb0367614f5413968eeab98f4094e710aa1bc2d1.

* Improve readability

* Update requirements.txt

* Disable custom proxy handling code (unneeded and broken); use requests'

* Remove comment and superflous code

* Fix iteritems() removal from Python3

* pin requests to 2.14.0 or greater in prep for no_proxy

* pin requests to 2.14.0 or greater in prep for no_proxy
2018-04-17 10:25:42 +08:00
Wan Liuyang ae261c821e Fix a bug for test recording when input is None 2018-03-22 16:38:19 +08:00
sfdye 365a0a24d3 Apply fix_headers script to update copyright info 2018-03-17 20:06:16 +08:00
sfdye 58e1ef9ccb Fix copyright formatting 2018-03-13 22:30:47 +08:00
sfdye 020c136a40 Update doc link in copyright text 2018-03-13 22:07:38 +08:00
Simon 6bc804dc15 ♻️ Fix all pep8 coding conventions 2018-01-16 13:41:02 -08:00
Hugo 6735be4933 Drop support for EOL Python 2.5-2.6 and 3.2-3.3 (#674) 2017-12-20 22:52:00 -08:00
Chris McBride 52449649a4 Add ability to access github Release Asset API. (#525)
* Add ability to access github Release Asset API.
See: https://developer.github.com/v3/repos/releases
2017-11-27 10:01:03 -06:00
Peter Buckley cb0cf0a680 update doc url everywhere (#420) 2016-07-12 16:38:02 -04:00
Uriel Corfa b4de74531a Add support to record tests using the oauth token instead of a
username/password. This lets people whose account uses 2-factor
authentication record tests.
2015-03-26 21:17:57 -07:00
Vincent Jacques abca7a026e pep8
This is strange, maybe Cygwin's version is stricter.
No time to investigate.
2014-05-04 12:54:05 -07:00
Vincent Jacques 5c475c7683 First review of #192 (pep8, headers... nothing important)
./manage.sh check
./manage.sh fix_headers
2013-08-22 10:12:38 +02:00
AKFish aa3025271c Assert response headers 2013-08-21 21:11:12 +08:00
AKFish e06257d060 Enable debug in TestCase 2013-08-21 20:58:29 +08:00
Vincent Jacques 06a3d87098 Change source file header format 2013-07-13 19:03:53 +02:00
Vincent Jacques db5560bd65 Add a script to check copyrights with git log. And fix copyrights. 2013-03-29 16:54:15 +01:00
Vincent Jacques 1c47be4e89 Document #pragma no covers (Issue #154) 2013-03-28 21:50:17 +01:00
Vincent Jacques 8a9afbb1aa Remove branches for hypothetical unknown Authorization headers 2013-03-28 21:49:39 +01:00
Vincent Jacques 1d18bd66f3 Add a test that would have caught #153 2013-03-28 21:23:03 +01:00
Vincent Jacques d9b29851dd Fix tests for Python 2.5 2013-03-22 00:33:13 +01:00
Vincent Jacques f962bc71fe Fix tests for Python 2.5 2013-03-22 00:29:44 +01:00
Vincent Jacques 7a9c0b916c Fix tests on Python 3.3 (issue #149)
The output order of dicts has changed
2013-03-21 23:18:21 +01:00
Vincent Jacques 82ce7b1ee3 Fix tests for Python 3.2 on Windows 2013-03-21 22:06:24 +01:00
Vincent Jacques 0ddb34d987 Fix decoding on Python3 (bytes instead of str) (Issue #142) 2013-03-03 18:32:10 +01:00
Vincent Jacques 7a415fda66 Change home page 2013-02-16 21:19:49 +01:00
Vincent Jacques f024950884 First implementation of PubSubHubbub (un)subscription (Issue #129)
This will need 'some' refactoring.
2013-02-05 19:23:20 +01:00
Vincent Jacques 5b52f652e0 Github.get_gitignore_template[s] (issue #120) 2012-12-21 21:10:53 +01:00
Vincent Jacques 0038aea74e Add tests for pull #112 2012-11-19 20:27:00 +01: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 ca1e799826 Restore measure of test coverage 2012-10-28 15:53:03 +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 c6609fd4da Fixes for issue #86 2012-09-16 20:39:00 +02:00
Vincent Jacques aadb06753c On the way to publish tests (issue #86)
This commit only moves stuff around.
Modifications will be done in next commit.
2012-09-16 20:07:33 +02:00