sneakypete81
5bf674a2f5
Version bump to 0.3
2013-05-25 11:34:32 +01:00
sneakypete81
48e29f24a9
PyLint fixes
...
Moved credentials into new Config class
2013-05-25 11:33:41 +01:00
sneakypete81
b124b48a75
No need to define NotImplementedError, Python has its own.
2013-05-25 11:33:41 +01:00
sneakypete81
20e526c28c
We can only support Python2.6 and above
2013-05-25 11:33:41 +01:00
sneakypete81
b2e7aa1f27
Trailing whitespace removal
2013-05-25 11:33:41 +01:00
sneakypete81
ba681cea89
Code tidyup after 2to3 conversion
...
Moved config parser into its own module
2013-05-25 11:33:41 +01:00
sneakypete81
0805f032fb
Python3 support
2013-05-25 11:33:41 +01:00
sneakypete81
6c75abc9a8
No need to explicitly specify a filename.
...
Requests can use the file object to determine the filename.
2013-05-25 11:33:41 +01:00
sneakypete81
54da488b4e
For file POSTs, rather than signing params and including them in the multipart
...
form data, just include them as query parameters. This means they'll
be signed automatically by requests_oauthlib.
Non-file POSTs still need the parameters to be sent as form data.
2013-05-25 11:33:40 +01:00
sneakypete81
326394fed9
Updated to use requests and requests_oauthlib
...
To allow Python3 support.
Also removes quite a bit of multipart post magic.
2013-05-25 11:33:40 +01:00
sneakypete81
d678a6458e
Merge pull request #40 from sneakypete81/travis_for_upstream
2013-05-25 10:28:15 +01:00
sneakypete81
792632fdf4
Merge pull request #39 from sneakypete81/test_improvements_master
...
Test improvements
2013-05-25 02:23:48 -07:00
sneakypete81
0e78675534
Make travis script executable
2013-05-18 14:21:12 +01:00
sneakypete81
d0be026266
Add travis config for upstream
...
Will require new secure env vars for the upstream fork
2013-05-18 14:19:14 +01:00
sneakypete81
8a1d1f5b58
Add Python2.6 to tox
2013-05-18 13:09:29 +01:00
sneakypete81
16503f73dc
Correct config test path
2013-05-18 13:09:29 +01:00
sneakypete81
658e3ca9f1
Use unittest2 where available, to support python <2.7
2013-05-18 13:09:29 +01:00
sneakypete81
7668deba43
Using tox, for the ability to test across multiple Python versions
2013-05-18 13:09:29 +01:00
sneakypete81
b6f7ad6fe9
Add run_tests script, to run the test suite will all test servers
2013-05-18 13:09:29 +01:00
sneakypete81
60c4d98b85
Reduce default stdout verbosity
...
Add OPENPHOTO_TEST_DEBUG env var for increased debug output
2013-05-18 13:09:29 +01:00
Jaisen Mathai
a2d103ec1a
Merge pull request #34 from sneakypete81/apiv1_fixes
...
Apiv1 fixes
2013-05-17 09:56:25 -07:00
Jaisen Mathai
6572ca7444
Merge pull request #33 from sneakypete81/class_config_cli_tweaks
...
Allow -h to be used to specify the hostname
2013-05-17 09:46:50 -07:00
sneakypete81
ecbe755c5c
Merge pull request #35 from sneakypete81/config_fix
...
Safer config defaults.
2013-05-17 08:44:28 -07:00
sneakypete81
9613d98a43
Safer config defaults.
...
Previously if the real config key was quoted, the default key might not be
overridden.
2013-05-12 10:01:26 +01:00
sneakypete81
c76ad3f181
Merge branch 'master' into apiv1_fixes
...
Conflicts:
tests/test_base.py
tests/test_framework.py
2013-05-11 15:01:48 +01:00
sneakypete81
d301a4d703
Merge pull request #32 from sneakypete81/class_config
...
Allow config files to be used everywhere
2013-05-11 06:35:51 -07:00
sneakypete81
15d85b3ac9
Allow -h to be used to specify the hostname
...
This matches the behaviour of the other commandline tools.
Since this is a bit non-standard, the usage message now specifically mentions the --help option.
Also added a check for excess arguments.
2013-05-07 08:55:44 +01:00
sneakypete81
654449bad4
Explicitly remove tags from photos during tag testing
2013-05-06 22:35:16 +01:00
sneakypete81
034f24db4c
Add OPENPHOTO_TEST_SERVER_API env var
...
To allow testing to be restricted to a specific maximum API version.
This allows new API tests to be skipped for old servers.
2013-05-06 21:53:22 +01:00
sneakypete81
c4ea338f49
Workarounds for APIv1 issues
2013-05-06 21:27:31 +01:00
sneakypete81
42999f80f5
Merge branch 'master' into class_config
...
Conflicts:
openphoto/__init__.py
openphoto/openphoto_http.py
tests/test_base.py
2013-05-06 17:25:36 +01:00
sneakypete81
53b3f7c6cf
Config unit test tweaks
2013-05-06 16:43:28 +01:00
sneakypete81
896af0afae
Add config unit tests
2013-05-06 16:19:09 +01:00
sneakypete81
15d257a0a7
Handle quoted config keys
2013-05-06 16:18:52 +01:00
sneakypete81
853256cc1f
Merge pull request #14 from sneakypete81/dotfiles
...
Add support for config dotfiles
2013-05-06 07:36:48 -07:00
sneakypete81
483d0bf847
Update test README with config file details
2013-05-04 14:48:47 +02:00
sneakypete81
ab77ef9d87
Update tests to use config files
...
Uses 'test' by default
Can be overridden using OPENPHOTO_TEST_CONFIG env var
2013-05-04 13:44:48 +01:00
sneakypete81
59e8c0772e
Re-ordered README since credentials now apply to all access methods, not just CLI
2013-05-04 14:33:38 +02:00
sneakypete81
0a35922d12
Move config loader into the OpenPhoto class.
...
This allows config files to be used everywhere, not just from the commandline.
2013-05-04 13:15:51 +01:00
sneakypete81
6f2162e9a4
Various README updates, to make config_file usage clearer
2013-05-04 13:03:44 +02:00
sneakypete81
c0c6b6d7e1
Host option now prevents config from being loaded.
...
The -H host option is only useful for unauthenticated API calls.
If you want authentication, use a config file, not the -H option.
2013-05-04 11:39:15 +01:00
sneakypete81
3712b94e80
Use the ConfigParser library to parse the config files.
...
Automatically prepends:
* [DEFAULT] section, to provide default values
* [DUMMY] section header, as ConfigParser doesn't understand key=value pairs
2013-05-03 17:51:42 +01:00
sneakypete81
060db87b84
Remove unused --encode option
2013-05-02 23:34:14 +01:00
sneakypete81
30a843d5aa
Update config option to be a filename in the config directory.
...
This makes it easier to use multiple identities
2013-05-02 23:33:14 +01:00
sneakypete81
e3bc3ea9f7
Merge pull request #29 from sneakypete81/api_versioning
...
API versioning support
2013-04-28 10:40:48 -07:00
sneakypete81
4658b5c53a
Error in future API test now correctly raises a 404 exception.
2013-04-28 18:38:56 +01:00
sneakypete81
1b2f0cd869
Merge branch 'master' into api_versioning
...
Conflicts:
tests/test_tags.py
2013-04-28 18:38:13 +01:00
sneakypete81
b2f6863c2b
Merge pull request #31 from sneakypete81/minor_fixes
...
Minor fixes
2013-04-28 10:25:26 -07:00
sneakypete81
38898cf8b2
Merge pull request #30 from sneakypete81/http_improvements
...
HTTP Improvements.
2013-04-28 10:21:33 -07:00
sneakypete81
c7c3b4bdb5
Merge branch 'master' into api_versioning
...
Conflicts:
tests/test_base.py
2013-04-28 15:42:22 +01:00