-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|\ merge from release-0.7, released as 0.6.
- Loading branch information
Showing
74 changed files
with
2,009 additions
and
1,321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,24 @@ | ||
ayrton (0.6) UNRELEASED; urgency=medium | ||
ayrton (0.7) UNRELEASED; urgency=medium | ||
|
||
* Send data to/from the remote via another `ssh` channel, which is more stable than using `stdin`. | ||
* Stabilized a lot all tests, specially those using a mocked stdout for getting test validation. | ||
* A lot of tests have been moved to their own scripts in ayrton/tests/scripts, which also work as (very minimal) examples of whatś working. | ||
* Use `flake8` to check the code. | ||
* Move `remote()` to its own source. | ||
* API change: if a `str` or `bytes` object is passed in `_in`, then it's the name of a file where to read `stdin`. If it's an `int`, then it's considered a file descriptor. This makes the API consistent to `_out` and `_err` handling. | ||
* More error handling. | ||
* Fixed errors with global variables handling. | ||
* `argv` is handled at the last time possible, allowing it being passed from test invoction. | ||
* `shift` complains on negative values. | ||
* Lazy `pprint()`, so debug statemens do not do useless work. | ||
* `stdin/out/err` handling in `remote()` is done by a single thread. | ||
* Modify a lot the local terminal when in `remote()` so, among other things, we have no local echo. | ||
* Properly pass the terminal type and size to the remote. These last three features allows programs like `vi` be run in the remote. | ||
* Paved the road to make `remote()`s more like `Command()`s. | ||
|
||
-- Marcos Dione <[email protected]> Wed, 09 Dec 2015 15:48:49 +0100 | ||
|
||
ayrton (0.6) unstable; urgency=medium | ||
|
||
* Great improvements in `remote()`'s API and sematics: | ||
* Made sure local varaibles go to and come back from the remote. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,51 @@ | ||
DEBUG_MULTI=strace -tt -T -ff -o runner -s 128 | ||
DEBUG_SIMPLE=strace -tt -T -o runner -s 128 | ||
PYTHON=python3.4 | ||
|
||
all: docs | ||
|
||
INSTALL_DIR=$(HOME)/local | ||
|
||
tests: | ||
bash -c 'while true; do nc -l -s 127.0.0.1 -p 2233 -e /bin/bash; done' & \ | ||
pid=$$!; \ | ||
LC_ALL=C python3 -m unittest discover -v ayrton; \ | ||
kill $$pid | ||
LC_ALL=C $(PYTHON) -m unittest discover -v ayrton | ||
|
||
slowtest: | ||
# LC_ALL=C $(DEBUG_SIMPLE) $(PYTHON) -m unittest discover -f -v ayrton | ||
LC_ALL=C $(DEBUG_MULTI) $(PYTHON) -m unittest discover -f -v ayrton | ||
|
||
quicktest: | ||
LC_ALL=C $(PYTHON) -m unittest discover -f -v ayrton | ||
|
||
docs: | ||
PYTHONPATH=${PWD} make -C doc html | ||
|
||
install: tests | ||
python3 setup.py install --prefix=$(INSTALL_DIR) | ||
$(PYTHON) setup.py install --prefix=$(INSTALL_DIR) | ||
|
||
unsafe-install: | ||
echo "unsafe install, are you sure?" | ||
read foo | ||
python3 setup.py install --prefix=$(INSTALL_DIR) | ||
@echo "unsafe install, are you sure?" | ||
@read foo | ||
$(PYTHON) setup.py install --prefix=$(INSTALL_DIR) | ||
|
||
upload: tests upload-docs | ||
python3 setup.py sdist upload | ||
$(PYTHON) setup.py sdist upload | ||
|
||
upload-docs: docs | ||
rsync --archive --verbose --compress --rsh ssh doc/build/html/ www.grulic.org.ar:www/projects/ayrton/ | ||
|
||
push: tests | ||
git push | ||
|
||
check: | ||
flake8 --ignore E201,E211,E225,E221,E226,E202 --show-source --statistics --max-line-length 130 ayrton/*.py | ||
|
||
testclean: | ||
rm -rfv ayrton.*log runner.* | ||
|
||
debugserver: | ||
# TODO: generate the server key | ||
if ! [ -f rsa_server_key ]; then \ | ||
true; \ | ||
fi | ||
# TODO: discover path? | ||
/usr/sbin/sshd -dd -e -h $(shell pwd)/rsa_server_key -p 2244 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.