Skip to main content

pipeline runner

Project description

pypyr-logo
pypyr

pronounce how you like, but I generally say piper as in “piping down the valleys wild”

pypyr is a command line interface to run pipelines defined in yaml.

1 Installation

1.1 pip

# pip install --upgrade pypyr

1.2 Python version

Test against Python 3.x

2 Usage

3 Testing

3.1 Testing without worrying about dependencies

Run from tox to test the packaging cycle inside a virtual env, plus run all tests:

# just run tests
$ tox -e dev -- tests
# run tests, validate README.rst, run flake8 linter
$ tox -e stage -- tests

3.2 If tox is taking too long

The test framework is pytest. If you only want to run tests:

$ pip install -e .[dev,test]

3.3 Day-to-day testing

  • Tests live under /tests (surprising, eh?). Mirror the directory structure of the code being tested.

  • Prefix a test definition with test_ - so a unit test looks like

    def test_this_should_totally_work():
  • To execute tests, from root directory:

    pytest tests
  • For a bit more info on running tests:

    pytest --verbose [path]
  • To execute a specific test module:

    pytest tests/unit/arb_test_file.py

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pypyr-0.0.10-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file pypyr-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for pypyr-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 090271e7d223414ea1a3f67f651432edaf8699d994a6b7911a1c8b164b6f96eb
MD5 5f540b4811013fa58b521503c80e4b7c
BLAKE2b-256 8cb4b42fdd266c5aefdbd87a076637950a29f6792eedd5d62f35fb1ada5708b8

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