Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

.travis.yml generator

Project description

Installation

$ [sudo] pip install travis-generator

Features

  • travis_generator.Travis generator class
    • .travis.yml keys support
    • python versions from classifiers

Classes

class __doc__
travis_generator.Classifiers python classifiers class
travis_generator.Travis .travis.yml generator class

Functions

function __doc__
travis_generator.dump(data) dump a dictionary to a YAML document string
travis_generator.load(path='.travis.yml') return a dictonary with .travis.yml data
travis_generator.quote(value) return a double quoted string
travis_generator.save(data, path='.travis.yml') save a dictionary to a file

Examples

classifiers

$ python setup.py --classifiers
Programming Language :: Python
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
import travis_generator
class Travis(travis_generator.Travis):
    install = "curl -fLs https://git.io/<xxx> | bash -s"
    script = "curl -fLs https://git.io/<yyy> | bash -s"

Travis().save()
$ cat .travis.yml
language: python
python:
- "3.4"
- "3.5"
- "3.6"
- "3.7"
install: curl -fLs https://git.io/<xxx> | bash -s
script: curl -fLs https://git.io/<yyy> | bash -s

Related projects

python-readme-generator

Project details


Download files

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

Files for travis-generator, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size travis-generator-2019.4.13.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page