Commit Graph

45 Commits

Author SHA1 Message Date
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
c770287466 [core] still refactoring env-related stuff towards using __main__ blocks (but with argparser, if needed). 2017-10-29 23:46:39 +01: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
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
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
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
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
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
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
7ca3369f71 Rename "bonobo graph" to "bonobo inspect". For now, graphviz is default but there will probably be a humand default in the future, with graphviz source generation set if --graph (or -g) flag is passed. 2017-09-30 11:01:53 +02:00
8b9dac50ec Added optional passing of one or multiple environment variables via --env flag to the bonobo cli. 2017-09-18 15:24:27 -04:00
d80118f687 [logging] Tuning windows vs unix display output. 2017-07-16 11:15:40 +02:00
5c64f30551 Merge remote-tracking branch 'upstream/develop' into develop 2017-07-16 10:19:45 +02:00
a8ed0e4322 Move patch one level up because importlib brakes all the CI tools. 2017-07-15 14:52:22 +02:00
7aee728b8d Add tests for --install of run command 2017-07-15 14:24:44 +02:00
75c15ae1f8 [tests] Adds runners descriptions. 2017-07-15 13:56:51 +02:00
665ddb560e Fix version test 2017-05-27 16:10:14 +02:00
1ba31191ee [qa] adds a rather stupid test to check valueholder works correctly. Still some operations missing. 2017-05-22 22:22:36 +02:00
04f2088220 [qa] add test for bonobo run <path>. 2017-05-22 20:48:16 +02:00
91c9322c58 [qa] tests bonobo run using module path. 2017-05-22 20:29:35 +02:00
1dccad883d [qa] covers __main__, and formating. 2017-05-22 20:06:26 +02:00
a50b21e46d [qa] covers __main__ 2017-05-22 19:57:08 +02:00
56f9c334f6 [qa] coverage of version command. 2017-05-22 19:25:35 +02:00
670f4e61d1 fixing codacy issues 2017-05-01 11:02:28 +02:00
b035bdea32 formating, better consistency in readers, ability to read files from http (fast and dirty). 2017-02-12 08:10:22 +01:00
9dab39a474 Minor fixes and update documentation. Preparing the upcoming 0.2 release. 2017-01-20 20:45:16 +01:00