Commit Graph

804 Commits

Author SHA1 Message Date
Joel Lathrop
b6ee34dcff Update the PubSub schema to include new API features.
Since the last time the PubSub v1 schema was fetched from Discovery in
April, Google has added new API features: namely, subscription filters
and retry policies.  This update to the JSON schema and its generated
code bring in support for these features.
2020-07-09 09:11:08 +08:00
Joel Lathrop
6ad88cb773 Fix '-force' target generation for JSON schemata.
In some environments, a variable-existence test in a template was
yielding a false negative which resulted in the template not generating
'-force' targets for API JSON files, even when the `FETCH_APIS`
environment variable was set during template rendering.

This commit adjusts the way the test for the variable presence is done
such that the '-force' targets now render when they should.
2020-07-09 09:09:51 +08:00
Sebastian Thiel
5e5327f3f7 Use api overrides to specialize building of drive2/3 APIs
This seems preferable over hardcoding special knowledge into the
generator code.
2020-06-05 11:11:17 +08:00
Sebastian Thiel
e06c7c67e0 Avoid talking to google each time dependencies are built…
…which doesn't work very well in certain geographical locations.
This can be triggered using by setting FETCH_API to a value, like

`FETCH_APIS=1 make`
2020-06-05 11:00:24 +08:00
Dennis Vestergaard Værum
8f7ed2e5e9 Added the doit_without_upload function for the drive3 & drive2 lib/api 2020-06-03 00:34:00 +02:00
Dennis Vestergaard Værum
041f8951e3 Added the doit_without_upload function to the code generator 2020-06-03 00:33:21 +02:00
Dennis Vestergaard Værum
1cc94d5281 Rebuild everything, becuase it makes it easier to compare everything to my changes 2020-06-02 14:56:19 +02:00
Björn Weinehall
6ed8df5f96 Extend attempted error message parsing to also cover ErrorResponse
objects. Fixes errors in e.g. drive3 api not getting passed to delegate
error handlers.
2020-05-29 19:43:50 +08:00
Sebastian Thiel
8e9ce08aa2 Fix typo: enocodable -> encodable
Fixes #250
2020-04-14 08:51:19 +08:00
Sebastian Thiel
0b513a9a53 remaining working crates published 2020-04-12 21:57:36 +08:00
Sebastian Thiel
42e2e44e4c initial bunch of releases 1.0.13 2020-04-12 21:08:05 +08:00
Sebastian Thiel
d302542d8d regenerate all crates with updated patch level 2020-04-12 18:58:21 +08:00
Sebastian Thiel
aacc30f08d update all json files 2020-04-12 18:55:37 +08:00
Sebastian Thiel
ea3b428364 update badges
[skip CI]
2020-04-12 17:58:29 +08:00
Sebastian Thiel
4d389e1f81 It should work without pyenv, given that the github virtualenv has it installed 2020-04-12 17:43:08 +08:00
Sebastian Thiel
94cf4ad569 Make 'cargo test' work by pinning relevant versions 2020-04-12 17:36:05 +08:00
Sebastian Thiel
1b09b3a2ab Emulate TRAVIS to trigger short path 2020-04-12 15:42:30 +08:00
Sebastian Thiel
f3a4fa109f Now also disable plugin autoload for pytest to avoid sqlite3 2020-04-12 15:37:17 +08:00
Sebastian Thiel
62441f3dc0 Don't use python test coverage in the hopes it won't need sqlite3, which isn't there 2020-04-12 15:26:32 +08:00
Sebastian Thiel
092f8bc7bf Let's see if this make-file adjustment helps with the python path 2020-04-12 15:21:58 +08:00
Sebastian Thiel
f9c7ff918e maybe the action will work 2020-04-12 15:03:51 +08:00
Sebastian Thiel
bcb71ecf21 maybe the most recent python 2.7 version can build… 2020-04-12 14:38:23 +08:00
Sebastian Thiel
23de20fcc7 See if it can run on macOS 2020-04-12 14:34:42 +08:00
Sebastian Thiel
4569390f0a sudo the build system installation 2020-04-12 14:20:46 +08:00
Sebastian Thiel
8a7575d376 also prepare build system before trying to use pyenv 2020-04-12 14:19:45 +08:00
Sebastian Thiel
2b0e536271 And once more with feeling 2020-04-12 14:14:47 +08:00
Sebastian Thiel
be34fc3ad1 add all suggestions to pyenv 2020-04-12 14:05:02 +08:00
Sebastian Thiel
071950db56 let's try sourcing bashrc right after changing it 2020-04-12 14:01:52 +08:00
Sebastian Thiel
99ae297d5e fix pyenv path, hopefully 2020-04-12 13:57:14 +08:00
Sebastian Thiel
d061b902f3 See if this solves the pyenv installation issue 2020-04-12 13:53:38 +08:00
Sebastian Thiel
c4d8ef799c try to install pyenv before using it 2020-04-12 13:50:18 +08:00
Sebastian Thiel
00d68b9d48 fix syntax error 2020-04-12 13:44:54 +08:00
Sebastian Thiel
b587cc865d See if configuring pyenv does the job 2020-04-12 13:44:03 +08:00
Sebastian Thiel
cd8e834553 Github actions running the tests travis runs usually 2020-04-12 13:37:48 +08:00
Sebastian Thiel
ebbddb30aa publish additional crates 2020-02-08 12:48:02 +08:00
lordie
0a013ddae6 revome auto formatting 2020-02-08 10:32:28 +08:00
lordie
d5519b9dfe added my business api 2020-02-08 10:32:28 +08:00
Sebastian Thiel
80bf4495f7 Regenarate all files
This fixes all deprecation warnings.
2020-01-18 20:47:02 +08:00
Sebastian Thiel
b66f868ed1 Fix deprecation warnings in CLI 2020-01-18 15:12:24 +08:00
Sebastian Thiel
65b8f0063d Rewrite deprecated features, such as try!
As taken from
https://github.com/Byron/google-apis-rs/pull/247
2020-01-18 14:46:53 +08:00
Sebastian Thiel
a0e0312f69 Remove linux for now to get tests green
It looks like Mako works differently in more recent versions, might
be related to PYTHONPATH.

I simply don't want to deal with this, let's be happy it still works
somewhere.
2020-01-18 14:32:58 +08:00
Sebastian Thiel
21e829bc4e Try an older python version once again 2020-01-18 14:27:28 +08:00
Sebastian Thiel
1ae7a49f2e Let's see if a more recent ubunutu does the trick 2020-01-18 14:23:35 +08:00
Sebastian Thiel
f350baa4a7 Fix unit tests 2020-01-18 14:14:07 +08:00
Sebastian Thiel
4209c20caf remove orphan/unavailable API: doc1 2019-12-09 17:46:56 +08:00
Sebastian Thiel
fd776832a8 publish result v1.0.12 2019-12-09 17:21:52 +08:00
Sebastian Thiel
f125912384 regenerate all crates 2019-12-09 11:50:00 +08:00
Sebastian Thiel
f80ef206bc Bump version prior to release 2019-12-09 09:08:42 +08:00
Sebastian Thiel
eb3a6ef578 Truncate all files we open to fix #240
Otherwise it's possible to leave bytes related to a previous version
of the file in tact, tailing the newly written content.
This in turn leads to malformed json when tokens are rewritten.
2019-09-16 07:53:15 +02:00
Sebastian Thiel
11db47ca2a Regenerate all code
Related to #239
2019-09-09 08:31:59 +02:00