Commit Graph

183 Commits

Author SHA1 Message Date
fb86bc9507 [errors] Move error handling in transformations to use mondrian. 2017-11-02 00:08:09 +01:00
23404d06dd Still cleaning up. 2017-11-01 19:02:48 +01:00
e06b616251 Refactoring the runner to go more towards standard python, also adds the ability to use bonobo argument parser from standard python execution. 2017-11-01 18:46:45 +01:00
e6596cf3f3 Removes cookiecutter. 2017-11-01 13:19:24 +01:00
40a745fe08 Module registry reimported as it is needed for "bonobo convert". 2017-11-01 12:46:03 +01:00
c770287466 [core] still refactoring env-related stuff towards using __main__ blocks (but with argparser, if needed). 2017-10-29 23:46:39 +01:00
cac6920040 Minor test change. 2017-10-29 12:13:52 +01:00
f9c809f626 [core] Change the token parsing part in prevision of different flags. 2017-10-29 12:10:02 +01:00
32e73316e1 Merge pull request #210 from mpenkov/streamjson
Support line-delimited JSON
2017-10-28 17:45:09 +02:00
10a82cce62 Support line-delimited JSON
New nodes for handling line-delimited JSON.

https://en.wikipedia.org/wiki/JSON_Streaming
2017-10-28 17:34:13 +02:00
ce0bd9ea37 Merge branch 'develop' of https://github.com/mpenkov/bonobo into mpenkov-develop 2017-10-28 17:27:04 +02:00
209c4f3176 Merge branch 'develop' of github.com:python-bonobo/bonobo into develop 2017-10-28 17:24:39 +02:00
efb31126b4 [tests] simplify assertion 2017-10-28 17:24:26 +02:00
3e7898a987 Issue #134: use requests.get as a context manager 2017-10-28 16:19:05 +02:00
eabc79c8ec Issue #134: use requests instead of urllib 2017-10-28 16:11:58 +02:00
9e86abca60 Issue #134: add a bonobo download url command
This enables users on different platforms to download the examples in
the tutorial using the same command.
2017-10-28 14:08:53 +02:00
cb97b18dca [tests] trying to speed up the init test. 2017-10-23 22:58:35 +02:00
a935c8fa92 Merge branch 'feature/bonobo-init-should-work-on-an-empty-existing-directory' of git://github.com/arimbr/bonobo into arimbr-feature/bonobo-init-should-work-on-an-empty-existing-directory 2017-10-23 22:45:39 +02:00
a79c17c3e9 [tests] bonobo.util.objects 2017-10-23 22:15:19 +02:00
dd28e08f0f [nodes] Removing draft quality factory from bonobo main package, will live in separate personnal package until it is good enough to live here. 2017-10-23 21:56:13 +02:00
ece764b95c [tests] rename factory test and move bag detecting so any bag is returned as is as an output. 2017-10-23 21:28:49 +02:00
9a54f7b4aa [core] Still refactoring the core behaviour of bags, starting to be much simpler. 2017-10-23 21:18:02 +02:00
4641425e4c Fix python 3.5 os.chdir not accepting LocalPath 2017-10-23 00:30:10 +02:00
7c0071bfdf Remove unused shutil import 2017-10-22 23:30:23 +02:00
9820fca2b4 Use pytest tmpdir fixture and add more init tests 2017-10-22 23:26:59 +02:00
3c453f0be7 Code formating. 2017-10-22 18:05:39 +02:00
28fe41c0bd [core] Testing and fixing new args/kwargs behaviour. 2017-10-22 18:00:16 +02:00
bc01b5d404 [core] simplification of result interpretation. 2017-10-22 17:37:49 +02:00
80006ba24d [tests] fix uncaptured output in test_commands 2017-10-22 17:23:19 +02:00
7560412bc7 Merge branch 'develop' of github.com:python-bonobo/bonobo into develop 2017-10-21 12:56:06 +02:00
4f1eeacd45 Merge tag '0.5.1' into develop
0.5.1
2017-10-21 12:54:46 +02:00
c7f39aa851 release: 0.5.1 2017-10-21 12:49:34 +02:00
12e4250166 Merge pull request #195 from cw-andrews/feature/env_file
Feature/env file
2017-10-17 13:55:48 +02:00
b87f674eb2 Test tweak to work for Windows CI. 2017-10-15 19:55:37 -04:00
f1e9969a88 Add tests for bonobo init new directory and init within empty directory 2017-10-15 23:54:26 +02:00
cb7a18f20f Added more tests and moved all env and env file testing to classes (it might make more sense to just move them to separate files?). 2017-10-15 16:14:14 -04:00
dc34ab4a8b Moved env vars tests to class. 2017-10-15 15:49:14 -04:00
84e197b209 Updated .env >>> .env_one to include in repo (.env ignored). 2017-10-15 15:39:23 -04:00
92cc400fe7 [core] Refactoring IOFormats so there is one and only obvious way to send it.
This is the commit where I admit that having more than one input/output
format for readers and writers was complicating the code too much for a
very small gain, and that it would be easier to only have one way to do
it.

So such way is now:

- Returning (or yielding) a dict if you have key-value type collections.
- Returning (or yielding) a tuple if you have a list-type collection.
- Returning (or yielding) something else otherwise, which will continue
  to work like the old "arg0" format.

IOFORMAT options has been removed in favour of a RemovedOption, which
will complain if you're still trying to set it to anything else than the
one value allowed.
2017-10-15 21:37:22 +02:00
fe4964b9c7 comparison to None|True|False should be 'if cond is None:' 2017-10-12 17:46:28 +02:00
53f6cc055f Fixed bug involved in finding env when running module. 2017-10-11 21:49:39 -04:00
489d22cbcb Moved default-env-file tests to class. 2017-10-11 20:49:57 -04:00
1aada99596 Small adjustment to test parameters. 2017-10-10 22:56:58 -04:00
af15647ab4 Added tests for running file with combinations of multiple default env files, env files, and env vars. Also reorganized environment directory in examples. 2017-10-10 22:54:31 -04:00
88956ba6fe default-env-file, default-env, and env-file now in place alongside env. default-env-file and default-env both use os.environ.setdefault so as not to overwrite existing variables (system environment) while env-file and env will overwrite existing variables. All four allow for multiple values (***How might this affect multiple default-env and default-env-file values, I expect that unlike env-file and env the first passed variables would win). 2017-10-08 21:02:31 -04:00
32e222787d release: 0.5.0 2017-10-05 19:16:03 +02:00
b2f93b2416 [config/dx] bundle a default fs (and http?) service if none is provided (#179) 2017-10-05 07:17:16 +02:00
e04c3dd849 Uniformisation of API for graph and node contexts (recv -> write), removing publication of LoopbackBag as this is not stable with current BEGIN/END implementation. 2017-10-02 09:14:10 +02:00
e38ce3cd11 Switched --env / -e optional argument from register to register_generic_run_arguements per suggestion. Also removed tests/util/get_passed_env.py 2017-10-01 20:05:53 -04:00
6abdf09ef7 Moved tests/util/get_passed_env.py into /bonobo/examples/env_vars/get_passed_env.py. 2017-10-01 19:56:49 -04:00