Skip to main content

OpenSwitch Development Tool

Project description

https://img.shields.io/pypi/v/opx.svg https://img.shields.io/pypi/l/opx.svg https://img.shields.io/pypi/pyversions/opx.svg https://readthedocs.org/projects/opx/badge/?version=latest

Installation

$ pip3 install opx

Requirements

Getting Started

# initialize your workspace
$ opx init

# build all packages
$ opx build

# assemble an installer
$ opx assemble

# remove persistent container
$ opx remove

Supported Build Types

  • git-pbuilder: if a directory contains a debian/control file, git-pbuilder will be used.

  • equivs-control: if a directory contains a control file, equivs-control will be used.

New Features (Over opx-build)

  • Opinionated defaults
    • Remembers to pull Docker image regularly so you don’t have to

    • Sort packages into pkg/$repo/ after building

    • Push tag automatically when releasing

    • Persistent containers (if inside a workspace)

    • One container allowed per workspace at any time

  • Promote a package from unstable to testing

$ opx publish opx-logging
  • Commands are aliased

# all run opx build
$ opx b opx-logging
$ opx bui opx-logging
$ opx build opx-logging

Command Line Completion

Run the command corresponding with your shell. Add to your shell startup file for persistent autocomplete.

# bash
$ eval "$(_OPX_COMPLETE=source-bash opx)"

# zsh
$ eval "$(_OPX_COMPLETE=source-zsh opx)"

# fish
$ eval (env _OPX_COMPLETE=source-fish opx)

Roadmap

  • Init option for cloning the source of a release

  • Port opx_rel_pkgasm from python script to module

  • Port opx_get_packages from python script to module

  • Port opx_bld_basics from python script to module

License

OpenSwitch Development Tool is distributed under the terms of the MIT License.

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

opx-1.0.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

opx-1.0.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file opx-1.0.0.tar.gz.

File metadata

  • Download URL: opx-1.0.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for opx-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1ece5fbc8585f3fbdf3f0505e913a315c1e0062deecee79c9758c2a9d10963e9
MD5 19a9a838ac6f7edb7ba6c076798bfe3d
BLAKE2b-256 ca8d0c67bc8b76960f6e607b18373c2035e862a948f7650e1623331a8db9421a

See more details on using hashes here.

File details

Details for the file opx-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: opx-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for opx-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b0bf2af3bc7c44620a0c886c6897d017fdcb6d6d34358959f6ec83a0a72931e
MD5 8b318090fd823e8ec1f9425980746a43
BLAKE2b-256 eb399225b960d4ce6062212ba658c2100499acdc4be0ad4c2da73006bbafb0f3

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