Skip to main content

Automatically generate .travis.yml or GitHub actions workflow .yml from tox.ini

Project description

tox2travis

Python package Build Status

After installing, simply call tox2travis in a directory that contains a tox.ini file. A .travis.yml file will be generated.

tox2travis will be able to map environment names using tox's default environments to the correct python version on Travis automatically.

Non-standard environment names

If an environment name does not match one of the default environments provided by tox, tox2travis will simply ignore it. To specify a python version for such environments, use the --fallback-python command line argument:

tox2travis --fallback-python pythonx.y

The value passed to the argument must be a valid basepython.

Custom basepython

If environments specified in tox.ini use a basepython that can not be automatically mapped to one of the supported python versions on Travis, use the --custom-mapping command line argument:

tox2travis --custom-mapping <basepython> <travis-python>

GitHub Actions

Despite the name, tox2travis can also generate a configuration file for GitHub Actions. Simply call tox2travis --output=actions in a directory that contains a tox.ini file. A new file .github/workflows/tox.yml will be generated.

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

tox2travis-1.0.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

tox2travis-1.0-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tox2travis-1.0.tar.gz.

File metadata

  • Download URL: tox2travis-1.0.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for tox2travis-1.0.tar.gz
Algorithm Hash digest
SHA256 b0d3a8062f04ad68b35f03364a298a4caea656614671a4533173d54a4b0656a9
MD5 99fd8b99fc4dc9089f77b983ff6a3640
BLAKE2b-256 ea93e9048a5f5c455f2c5d3a8cbe9626291efe545100e0583fb40d1b04814ce7

See more details on using hashes here.

File details

Details for the file tox2travis-1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: tox2travis-1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for tox2travis-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3aa9945e2113bccaadbecfe3736c605b26ebe74851688ab25fa17bd5826acda1
MD5 b17f87a149016ef5b7184164177f0008
BLAKE2b-256 d1a610b371e35bcbe2cd84e31e607eba51c1facb9d37a6f888c29b38aa4250d8

See more details on using hashes here.

Supported by

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