Backticks tox plugin for tox v.4.x.x.
tox-backtick is a strict fork of Damien Nadé's tox-backtocks package (v.0.4.0) with a fixes allowing to work on Python 3.8 or higher and on Windows with a little code reformatting and minor improvements.
Overview below is a copy from the original tox-backtocks README.md:
A refreshed backticks tox plugin
This is a very early stage release. Use it at your own risks.
Here’s the roadmap to 1.0 release and our current status:
-
- [x] define a
backquote var
inset_env
with a -
backquoted expression
(and nothing else) and evaluate it through bash, inside the tox virtual environment.
- [x] define a
- [x] Make of a
backquote var
usable in commands section. -
- [x] Allow another variable to be referenced inside the
backquoted expression
-
- [x] Strip the trailing newline characters of the
backquoted expression
-
- [ ] Allow user configure the evaluation of
backquote expression
- to be with a shell or not (either fork the command directly, either fork a shell and evaluate a possible-complex shell expression)
- [ ] Allow user configure the evaluation of
-
- [ ] Allow a
backquote var
value to contain regular string parts - and a
backquote expression
- [ ] Allow a
-
- [ ] Allow a
backquote var
value to contain more than one backquote expression
- [ ] Allow a
-
- [ ] Allow user to configure if we should strip the trailing newline
- characters or not.
-
- [x] Allow another variable to reuse the evaluated
backquoted expression
-
- [x] Allow another variable to reuse the evaluated
-
backquoted expression
without reevaluating it :) (I mean, it’s hacked, but heh, better than nothing)
-
- [x] If evaluating through a shell, automatically add said shell to
-
allowlist_externals
section
- [x] Have a working package
- [ ] Write user documentation
TBD...
Prerequisites:
- Python 3.9 or higher
- pip and setuptools
To install run:
python -m pip install --upgrade tox-backtick
Prerequisites:
-
Development is strictly based on tox. To install it run:
python -m pip install --upgrade tox
Visit Development page.
Installation from sources:
clone the sources:
git clone https://github.com/karpierz/tox-backtick.git tox-backtick
and run:
python -m pip install ./tox-backtick
or on development mode:
python -m pip install --editable ./tox-backtick
Copyright (c) 2024-2024 Adam KarpierzCopyright (c) 2023 Damien NadéLicensed under the LGPL-2.1-or-later LicensePlease refer to the accompanying LICENSE file.
- Damien Nadé <anvil.github+tox-backtocks@livna.org>
- Adam Karpierz <adam@karpierz.net>