Commit ac52b28
committed
2.5.1 - Added call_sys(_async) + tests.sh refactoring
- Added `call_sys` function in `helpers.common`, an easier way to run and interact with external programs
- Added `shell_quote` function - small shim for python 3.8's `shlex.join` for backwards compatibility
- Added `call_sys_async` function in `helpers.asyncx`, which is a fully async version of `call_sys`
- Added tests for `call_sys` and `call_sys_async`
- Improvements to `local_tests.sh`
- Re-factored most of `local_tests.sh` into `lib/lib_test.sh`. lib_test.sh contains only shell functions, so it can be sourced into a bash shell for debugging local_tests.sh
- Now has a `QUIET` option, for less verbose output
- Re-factored virtualenv creation, detection and activation into `pyactivate`, `venv_status`, `is_current_venv` and others
- Handle script running from within an existing virtualenv cleanly.
- Main body of the venv creation / test running has been moved into `main_tests()` in lib_test
- Now shows a summary at the end of the tests, so you can see which python versions caused tests to throw warnings and/or were skipped
- Lots of other small improvements
- Added gitignore lines for `dev_*.py`, sqlite databases, and adjusted `venv` lines to only affect root folder.1 parent dce8449 commit ac52b28
12 files changed
Lines changed: 636 additions & 116 deletions
File tree
- docs/source/helpers
- asyncx
- common
- lib
- privex/helpers
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
0 commit comments