Marc Abramowitz
0dd4da72d7
examples/docker-info.py: Make executable ( #33 )
2017-02-21 11:12:21 -08:00
Marc Abramowitz
3b615e2fbf
Add examples/simple-http.py ( #32 )
...
Sort of like a very simple HTTPie
e.g.:
```
$ examples/simple-http.py http+unix://%2Fvar%2Frun%2Fdocker.sock/version
{"Version":"1.12.3","ApiVersion":"1.24","GitCommit":"6b644ec","GoVersion":"go1.6.2","Os":"linux","Arch":"amd64","KernelVersion":"4.4.0-63-generic","BuildTime":"Mon, 19 Dec 2016 09:20:48 +1300"}
```
2017-02-21 10:41:24 -08:00
Marc Abramowitz
3bdc1a84c8
Add Makefile ( #31 )
2017-02-21 08:42:21 -08:00
Marc Abramowitz
ff3bc038a0
Merge pull request #30 from msabramo/examples
...
Move examples to separate directory
2017-02-21 08:29:41 -08:00
Marc Abramowitz
27e4803f7c
Move examples to separate directory
2017-02-21 08:16:57 -08:00
Marc Abramowitz
cf36ad3f2b
README.rst: Give up on linking to file
2017-02-20 09:56:25 -08:00
Marc Abramowitz
eb23b6ae80
README.rst: Fix links
2017-02-20 09:55:26 -08:00
Marc Abramowitz
7f87886373
Example for abstract namespace sockets
...
Closes: GH-18
2017-02-20 09:46:09 -08:00
Marc Abramowitz
c24163593c
Vagrantfile: Add socat
2017-02-20 09:32:34 -08:00
Marc Abramowitz
72ce42e168
Vagrantfile: xenial64 and install all Pythons
2017-02-19 19:58:17 -08:00
Marc Abramowitz
354ac9cdae
.gitignore: Add .vagrant
2017-02-19 15:35:32 -08:00
Marc Abramowitz
61529ef05c
Vagrantfile: Remove unnecessary comments
...
to slim it down
2017-02-19 14:52:39 -08:00
Marc Abramowitz
cb30f9cb04
README.rst: Fix HTTPie link
2017-02-19 12:25:04 -08:00
Marc Abramowitz
beaa4fa741
README.rst: See also: httpie-unixsocket
2017-02-19 12:21:34 -08:00
Marc Abramowitz
78ec616912
README.rst: Make examples use docker.sock
...
as this is a common use case
Fixes: GH-29
2017-02-19 12:13:34 -08:00
Marc Abramowitz
0d8aae5a78
Add Vagrantfile
...
to allow testing on Ubuntu 16.04 with Docker installed
2017-02-19 12:13:33 -08:00
Marc Abramowitz
49872aaf25
Add sample.py
...
Example of using lib to get info from `/var/run/docker.sock`
2017-02-19 12:13:33 -08:00
Marc Abramowitz
0235cc8f54
Merge pull request #28 from RantyDave/master
...
Close socket on deletion
2017-02-19 12:12:16 -08:00
Marc Abramowitz
7ecf1bc682
Merge pull request #26 from habnabit/upstream-unix-fixes
...
Pull in more recent code from docker-py
2017-02-19 11:46:14 -08:00
Marc Abramowitz
3322dbb6d6
test-requirements.txt: Get rid of pytest warnings
2017-02-19 11:36:35 -08:00
Marc Abramowitz
68d8ba8dbc
tox.ini: Add py26 back
2017-02-19 11:29:00 -08:00
Marc Abramowitz
caa9b26b87
test-requirements.txt: Remove redundancy
...
that was causing errors
2017-02-19 11:28:34 -08:00
Marc Abramowitz
08e529df06
.travis.yml: Remove py36
2017-02-19 11:22:37 -08:00
Marc Abramowitz
cc108232e9
Revert ".travis.yml: Try another way"
...
This reverts commit fd52e5c842
.
2017-02-19 11:21:29 -08:00
Marc Abramowitz
fd52e5c842
.travis.yml: Try another way
...
to support all the Python versions.
Taken from https://github.com/pyca/cryptography/blob/master/.travis.yml
2017-02-19 11:18:40 -08:00
Marc Abramowitz
01086950a0
Pin test-requirements
...
to avoid problems from new versions and to support old versions of
Python
- waitress==1.0.0 stopped supporting Python 2.6
- pytest-pep8==1.0.3 seems to have broken Python 3.4?
2017-02-19 11:13:44 -08:00
Marc Abramowitz
2ba8801028
.travis.yml: Add sudo: false
...
Hopefully this fixes missing py36 error
2017-02-19 11:11:44 -08:00
Marc Abramowitz
210f4205c7
Add support for Python 3.6
2017-02-19 10:52:46 -08:00
Marc Abramowitz
26c2f38569
Remove support for Python 2.6
2017-02-19 09:24:45 -08:00
Marc Abramowitz
736d3d625f
Merge pull request #27 from Kobla/tests-non-case-sensitive-url-cmp
...
Non case sensitive url comparison in tests.
2017-02-19 09:21:23 -08:00
David Preece
9da2df5e2d
Close socket on deletion
...
(bash was complaining)
2017-01-16 15:43:48 +13:00
Ondřej Kobližel
811e27052d
Non case sensitive url comparison in tests.
2016-12-20 07:43:11 +01:00
Aaron Gallagher
1b9de901fe
Pull in more recent code from docker-py.
...
Since this code was taken originally from docker-py anyway, and
docker-py fixed some resource leakage, here's the upstream fixes.
2016-12-07 23:37:08 -08:00
Marc Abramowitz
e97627e00b
Merge pull request #22 from msabramo/GH-21_override_request_url_to_not_call_select_proxy
...
Override HTTPAdapter.request_url
2016-08-09 10:24:51 -07:00
Marc Abramowitz
f65ef08bd1
Fix PyPI badge
...
by switching from pypip.in to badge.fury.io
2016-08-01 09:59:40 -07:00
Marc Abramowitz
1d745e1044
Override HTTPAdapter.request_url
...
Override `HTTPAdapter.request_url`, so that it doesn't call
`select_proxy`.
Fixes: GH-21
See:
https://github.com/kennethreitz/requests/issues/3131#issuecomment-214792914
2016-08-01 09:56:46 -07:00
Marc Abramowitz
0c1c7e0034
Merge pull request #14 from esben/consolidate
...
Consolidate outstanding forks
2016-01-20 00:07:18 -08:00
Esben Haabendal
4a029131e4
Fix test_unix_domain_adapter_connection_proxies_error
...
Signed-off-by: Esben Haabendal <esben@haabendal.dk>
2016-01-20 09:01:09 +01:00
Marc Abramowitz
17d845e4c4
.travis.yml tweaks
2016-01-19 23:32:57 -08:00
Marc Abramowitz
eac0dabb3a
Remove py32; Add py35
2016-01-19 23:31:28 -08:00
Marc Abramowitz
58846a1088
Merge pull request #13 from avian2/add-urlib3-requirement
...
Add urllib3 requirement.
2016-01-19 20:24:10 -08:00
Esben Haabendal
4783497964
Merge branch 'fix-proxies' of https://github.com/puremourning/requests-unixsocket into consolidate
2015-08-16 18:42:59 +02:00
Esben Haabendal
d6b207c5e3
Merge branch 'master' of https://github.com/avian2/requests-unixsocket into consolidate
2015-08-16 18:40:10 +02:00
Esben Haabendal
40d2417a0f
Merge branch 'master' of https://github.com/wrouesnel/requests-unixsocket into consolidate
2015-08-16 18:39:59 +02:00
Ben Jackson
20f4324fc9
Only reject proxies if they are relevant (which should be never)
2015-08-06 23:21:19 +01:00
Tomaz Solc
361a5cd47a
Add urllib3 requirement.
...
urllib3.connection is used, which was added in 1.8 according to
https://github.com/shazow/urllib3/blob/master/CHANGES.rst
2015-07-22 12:32:44 +02:00
Will Rouesnel
206e7bf83c
Add basic tests for all supported methods.
2015-04-30 05:43:25 +10:00
Will Rouesnel
12b31c0f49
More PEP8 compliance refactoring.
2015-04-30 05:43:15 +10:00
Will Rouesnel
05f51a4547
Merge branch 'wrouesnel_tweaks'
...
Conflicts:
requests_unixsocket/__init__.py
2015-04-30 05:07:21 +10:00
Will Rouesnel
a379fb204a
Fix up some oversights in method parsing.
...
This corrects the style to exactly follow the requests library.
2015-04-30 04:59:23 +10:00