Commit Graph

24 Commits

Author SHA1 Message Date
David Zuelke bda46256d9 print all informational output to stderr
all output from the formula build is on stdout already

this allows easy separating of the two into e.g. raw compile logs without bob's messages
2020-01-15 02:01:38 +01:00
David Zuelke 840c089864 Remove subprocess piping
This brings Python 3 compatibility

With this change, all output from the formula ends up on stdout, without any buffering, meaning e.g. progress bars (from curl for instance) also finally show up in real time, without line buffering like before
2020-01-14 23:15:11 +01:00
David Zülke 00863664ac allow wildcards in dependencies (#39)
Example:

That would fetch the latest S3_PREFIX/php-7.3.*.tar.gz as a dependency
2019-03-25 16:12:01 -07:00
Ed Morley e838ff0027 flake8 import and whitespace fixes 2017-05-30 22:48:21 +01:00
Ed Morley bce1e3509d Make errors output to stderr
Using `print_function` is the cleanest option out of those on:
https://stackoverflow.com/questions/5574702/how-to-print-to-stderr-in-python
2017-05-25 01:51:07 +01:00
Ed Morley 3cd9532ad2 Support no AWS credentials being found in the environment
This allows the build command to be used with public buckets even
if the user doesn't have their own AWS credentials.

Fixes #26.
2017-05-24 18:22:12 +01:00
Ed Morley 13f3689087 Move S3 connection handling to its own class
This means that the main bucket also benefits from the access denied
`anon=True` fall-back previously only used for the upstream bucket.
This helps with the case where AWS credentials are found, but are
for an account unrelated to either bucket.

Since the main bucket can now fall back to anonymous mode, a check
has been added to the deploy command to improve the UX.

Fixes:
https://github.com/kennethreitz/bob-builder/issues/26#issuecomment-301058112
2017-05-24 18:19:54 +01:00
Ed Morley 7053c3e708 Remove unused dependencies and imports 2017-05-12 14:52:32 +01:00
David Zülke 00af02bd7c Raise in mkdir_p if path is existing file 2016-03-28 02:58:56 +02:00
David Zuelke c669c195db redirect subprocess stderr to stdout 2016-02-16 22:24:37 +01:00
David Zuelke c27f8e6beb do not buffer when relaying process stream data 2016-02-16 21:58:46 +01:00
David Zuelke e1841bb47e fix empty leading slash entry, for real
this also preserves empty directories in tar files
2014-04-07 20:58:46 +02:00
David Zuelke b1439fd014 Revert "fixed tar bug :)"
This reverts commit 88e18ff8cc.
2014-04-07 20:00:08 +02:00
David Zuelke 182b3b67fb Revert "cleaned up archive_tree function"
This reverts commit 1d03df5c85.
2014-04-07 19:59:55 +02:00
Kenneth Reitz 1d03df5c85 cleaned up archive_tree function 2014-04-02 11:21:09 -04:00
Kenneth Reitz 88e18ff8cc fixed tar bug :) 2014-04-02 11:19:35 -04:00
Kenneth Reitz fe3e9bf072 extract_tree 2014-03-13 15:18:50 -04:00
Kenneth Reitz 0398bf2506 cleanup 2014-03-12 14:19:39 -04:00
Kenneth Reitz df3da84ed4 refactor 2014-03-12 14:19:28 -04:00
Kenneth Reitz 0fa30d2a3d big improvements to comment parsing 2014-03-12 14:13:19 -04:00
Kenneth Reitz ad0fe116f8 archive builds 2014-03-10 15:22:37 -04:00
Kenneth Reitz 56eea087ad indentations 2014-03-10 13:45:28 -04:00
Kenneth Reitz 61ef0ec86f refactoring 2014-03-10 13:44:53 -04:00
Kenneth Reitz 13c5cd9011 <3 2014-03-10 12:53:37 -04:00