Skip to main content

Backticks tox plugin for tox v.4.x.x.

Project description

tox-backtick

Backticks tox plugin for tox v.4.x.x.

Overview

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.

PyPI record.

Documentation.

Overview below is a copy from the original tox-backtocks README.md:

tox-backtocks

PyPI version Supported Python Version License

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 in set_env with a

    backquoted expression (and nothing else) and evaluate it through bash, inside the tox virtual environment.

  • [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 a backquote var value to contain regular string parts

    and a backquote expression

  • [ ] Allow a backquote var value to contain more than one

    backquote expression

  • [ ] 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] Use the command string as is if 1st character in the command string

    is the + char (immediately after initial backtick). Bypasses the use of shlex.split() before handing off to tox_env.execute().

  • [x] Have a working package

  • [ ] Write user documentation

Usage

TBD…

Installation

Prerequisites:

To install run:

python -m pip install --upgrade tox-backtick

Development

Prerequisites:

  • Development is strictly based on nox. To install it run:

    python -m pip install --upgrade nox

Visit Development page.

Installation from sources:

clone the sources:

git clone https://github.com/karpierz/tox-backtick tox-backtick

and run:

python -m pip install ./tox-backtick

or on development mode:

python -m pip install --editable ./tox-backtick

License

Copyright (c) 2024-2026 Adam Karpierz
Copyright (c) 2023 Damien Nadé
Copyright (c) 2025 Steve Hespelt
Licensed under the LGPL-2.1-or-later License
Please refer to the accompanying LICENSE file.

Authors

Sponsoring

If you would like to sponsor the development of this project, your contribution is greatly appreciated.
As I am now retired, any support helps me dedicate more time to maintaining and improving this work.

Donate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tox_backtick-2.2.0.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tox_backtick-2.2.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file tox_backtick-2.2.0.tar.gz.

File metadata

  • Download URL: tox_backtick-2.2.0.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for tox_backtick-2.2.0.tar.gz
Algorithm Hash digest
SHA256 96c6ca2aabdd1c6f401f32d861df756c05629f34e0d322ca5b524834c3fa3b1b
MD5 61f1f62ab1b59368417b452d9b100571
BLAKE2b-256 5fb6682a050acbdec8bfe4ebe1b873e39f21440eff688c589a56e3866878a2da

See more details on using hashes here.

File details

Details for the file tox_backtick-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: tox_backtick-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for tox_backtick-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2be3b2076afaef924a9ccfed5049c9410fa2fac046059ba5910eedf81f4b20e
MD5 813ed25f2628b7b4263dd9e1c144b478
BLAKE2b-256 4d3d0e50b3a2ce618ec4c9c46e0e334ad623f8bcf98f45769ace243511ec8051

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page