Skip to main content

Pipeline CLI

Command-line interface to the Sepior Pipeline.

Requirements

Python 3.5

Install using pyenv or pyvenv

Installation

$ pip install pipeline_cli

Usage

The tool will show a description of usage when given the –help option:

$ pipeline --help

usage: pipeline [-h] [--version] [--host HOST_NAME] {start,enqueue} ...

The pipeline utility

positional arguments:
  {start,enqueue}   sub-commands
    start           start help
    enqueue         enqueue downstream dependencies help

optional arguments:
  -h, --help        show this help message and exit
  --version, -v     show programs version number and exit
  --host HOST_NAME  specify pipeline server host. Default is
                    https://pipeline.sepior.net```

The tool is able to: 1. start a pipeline 2. enqueue downstream pipelines

Starting a pipeline

We assume you already have a pipeline file. If the pipeline file is in the current directory then simply run

$ pipeline start <version>

See pipeline start –help for more advanced usecases.

Enqueue downstream pipelines

This command is relevant if the pipeline you have is building inside the pipeline or if you manually want to (re)start downstream pipelines.

See pipeline enqueue –help for parameters.

Building the tool

Make sure you have a Python 3.5 environment with the requirements.

E.g. use pyenv:

$ pyenv virtualenv 3.5.0 pipeline-cli-venv
$ pyenv activate pipeline-cli-venv

Make sure pip is up-to-date:

$ pip install --upgrade pip

Install requirements:

$ pip install --upgrade -r requirements.txt

Build the wheel:

$ make

Development

Use the following command to install the package in the local environment during development.

$ pip install -e .

This allows you to change the code and test the pipeline cli directly.

Contributing

When contributing changes remember to update the CHANGELOG.md.

License

Proprietary. Copyright 2016 Sepior ApS.

Releasing

Do the following to release a new version:

  1. Commit changes

  2. Push changes

  3. Merge with master

  4. Update local master

  5. Find the next release version, e.g. 6.6.6

  6. Create new branch with name core/release-6.6.6

  7. Bump version in __about__.py

  8. Commit

  9. Merge with master

  10. Update local master

  11. Run ./release.sh 6.6.6

Upload to Pypi

First, perform a test upload to verify everything is nice and dandy. Then perform the real upload.

Build the code

$ make

Then define the following environment variables:

$ export PYPI_TEST_PASSWORD=""
$ export PYPI_PASSWORD=""

Test upload to pypi

You may need to register on the Pypi test server. This can be done here:

$ https://testpypi.python.org/pypi

Register:

$ twine register -p ${PYPI_TEST_PASSWORD} -r pypitest dist/pipeline_cli-6.6.6-py3-none-any.whl

Upload

$ make testpypi_upload

Goto:

$ https://testpypi.python.org/pypi/pipeline-cli/6.6.6

A check that everything looks nice.

You can check the HTML by running:

$ python setup.py --long-description | rst2html.py --no-raw > output.html

Test if it installs (do it in a different environment):

$ pip install -i https://testpypi.python.org/pypi pipeline-cli

Real upload to Pypi

Upload

$ make pypi_upload

Goto:

$ https://pypi.python.org/pypi/pipeline-cli/6.6.6

And check that every things looks nice.

Metadata

Release files for pipeline-cli 1.0.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pipeline-cli 1.0.15
File Interpreter ABI Platform Actions
pipeline_cli-1.0.15-py3-none-any.whl Python 3 none any Details for pipeline_cli-1.0.15-py3-none-any.whl

Release files / pipeline_cli-1.0.15-py3-none-any.whl

Download URL pipeline_cli-1.0.15-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c01a379672e98fb00b5074fc89e017b2cc7b85ab7149cd4404fa9307b3d18cf0
BLAKE2b-256 checksum
How to use checksums
c437e273afc3955033045f437a9e95c5230290a8f1a5d33185549224cd84c8e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pipeline-cli 1.0.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page