No project description provided
Project description
OpenSwitch Development Tool
===========================
-----
.. contents:: **Table of Contents**
:backlinks: none
Installation
------------
opx is distributed on `PyPI <https://pypi.org>`_ as a universal
wheel and is available on Linux/macOS and Windows and supports
Python 3.6+ and PyPy.
.. code-block:: bash
$ pip install opx
Requirements
~~~~~~~~~~~~
- `Docker <https://docs.docker.com/engine/installation/>`_
- `Repo <https://source.android.com/setup/downloading#installing-repo>`_
Getting Started
---------------
.. code-block:: bash
# initialize your workspace
$ opx init
# build all packages
$ opx build
# enter a development shell and build a package
$ opx shell
opx@XXXXXXXXXXXX:/mnt$ cd opx-logging
opx@XXXXXXXXXXXX:/mnt$ mk-build-deps --root-cmd sudo --install --remove
opx@XXXXXXXXXXXX:/mnt$ dpkg-buildpackage -us -uc
opx@XXXXXXXXXXXX:/mnt$ fakeroot debian/rules binary
opx@XXXXXXXXXXXX:/mnt$ exit
# assemble an installer
$ opx assemble --dist 2.2
# remove persistent container
$ opx remove
# you can also choose to remove the container when a command finishes
$ opx assemble --dist 2.2 --remove-container
# clean up workspace completely
$ rm -rf opx-*/ .repo
$ opx cleanup
New Features (Over ``opx-build``)
---------------------------------
* Persistent containers (if inside a workspace)
.. code-block:: bash
$ opx shell
opx@XXXXXXXXXXXX:/mnt$ echo foo > /bar
opx@XXXXXXXXXXXX:/mnt$ exit
$ opx shell
opx@XXXXXXXXXXXX:/mnt$ cat /bar
foo
Command Line Completion
-----------------------
Run the command corresponding with your shell. Add to your shell startup file for persistent autocomplete.
.. code-block::
# bash
$ eval "$(_OPX_COMPLETE=source-bash opx)"
# zsh
$ eval "$(_OPX_COMPLETE=source-zsh opx)"
# fish
$ eval (env _OPX_COMPLETE=source-fish opx)
Planned Features
----------------
* Port ``opx_build`` from shell to python
* 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
-------
opx is distributed under the terms of the
`MIT License <https://choosealicense.com/licenses/mit>`_.
===========================
-----
.. contents:: **Table of Contents**
:backlinks: none
Installation
------------
opx is distributed on `PyPI <https://pypi.org>`_ as a universal
wheel and is available on Linux/macOS and Windows and supports
Python 3.6+ and PyPy.
.. code-block:: bash
$ pip install opx
Requirements
~~~~~~~~~~~~
- `Docker <https://docs.docker.com/engine/installation/>`_
- `Repo <https://source.android.com/setup/downloading#installing-repo>`_
Getting Started
---------------
.. code-block:: bash
# initialize your workspace
$ opx init
# build all packages
$ opx build
# enter a development shell and build a package
$ opx shell
opx@XXXXXXXXXXXX:/mnt$ cd opx-logging
opx@XXXXXXXXXXXX:/mnt$ mk-build-deps --root-cmd sudo --install --remove
opx@XXXXXXXXXXXX:/mnt$ dpkg-buildpackage -us -uc
opx@XXXXXXXXXXXX:/mnt$ fakeroot debian/rules binary
opx@XXXXXXXXXXXX:/mnt$ exit
# assemble an installer
$ opx assemble --dist 2.2
# remove persistent container
$ opx remove
# you can also choose to remove the container when a command finishes
$ opx assemble --dist 2.2 --remove-container
# clean up workspace completely
$ rm -rf opx-*/ .repo
$ opx cleanup
New Features (Over ``opx-build``)
---------------------------------
* Persistent containers (if inside a workspace)
.. code-block:: bash
$ opx shell
opx@XXXXXXXXXXXX:/mnt$ echo foo > /bar
opx@XXXXXXXXXXXX:/mnt$ exit
$ opx shell
opx@XXXXXXXXXXXX:/mnt$ cat /bar
foo
Command Line Completion
-----------------------
Run the command corresponding with your shell. Add to your shell startup file for persistent autocomplete.
.. code-block::
# bash
$ eval "$(_OPX_COMPLETE=source-bash opx)"
# zsh
$ eval "$(_OPX_COMPLETE=source-zsh opx)"
# fish
$ eval (env _OPX_COMPLETE=source-fish opx)
Planned Features
----------------
* Port ``opx_build`` from shell to python
* 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
-------
opx is distributed under the terms of the
`MIT License <https://choosealicense.com/licenses/mit>`_.
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-0.0.2.tar.gz
(7.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
opx-0.0.2-py3-none-any.whl
(12.0 kB
view details)
File details
Details for the file opx-0.0.2.tar.gz.
File metadata
- Download URL: opx-0.0.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
808ce972b848fd9307af3b70578f5a90cc6b03f12b32c09c8a0e20e24236347f
|
|
| MD5 |
baac4f49f7fa276f964d15d422ebab7d
|
|
| BLAKE2b-256 |
45df7206323b3c70315e589127dbdaee12e21eb5605717e7f6fb84c563400a44
|
File details
Details for the file opx-0.0.2-py3-none-any.whl.
File metadata
- Download URL: opx-0.0.2-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6553680fb5191e18cf19084e9a8c3538148681a2dd08bccb906abad95de61b05
|
|
| MD5 |
1b0ea54ba58f84c35b1a0320c117854a
|
|
| BLAKE2b-256 |
383ad1c9c9274cae7a00c9cedfb8df7fc7fb46dedd4a74b9f5b95d49de82c434
|