Metadata-Version: 2.1
Name: backend.ai-krunner-ubuntu
Version: 3.5.0
Summary: Backend.AI Kernel Runner for Ubuntu
Home-page: https://backend.ai
Author: Lablup Inc.
Author-email: devops@lablup.com
License: MIT
Platform: UNKNOWN
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: Click (>=7.1)
Provides-Extra: build
Requires-Dist: wheel (>=0.34.2) ; extra == 'build'
Requires-Dist: twine (~=3.0) ; extra == 'build'
Provides-Extra: ci
Provides-Extra: dev
Provides-Extra: test
Requires-Dist: pytest (~=5.4.1) ; extra == 'test'
Requires-Dist: flake8 (>=3.7.9) ; extra == 'test'
Requires-Dist: codecov ; extra == 'test'

# backend.ai-krunner-ubuntu
Backend.AI Kernel Runner Package for Ubuntu-based Kernels

## How to read below

* `{distro}` is a string like `ubuntu`, `centos`, `alpine`, etc.
* `{distro-version}` is a string like `ubuntu18.04`, `centos7.6`, `alpine3.10`, etc.

## Development

```console
$ git clone https://github.com/lablup/backend.ai-krunner-{distro} krunner-{distro}
$ cd krunner-{distro}
$ pyenv virtualenv 3.8.6 venv-krunner  # you may share the same venv with other krunner projects
$ pyenv local venv-krunner
$ pip install -U pip setuptools
$ pip install -U click -e .
```

## How to update

1. Modify Dockerfile and/or other contents.
2. Increment *the volume version number* specified as a label `ai.backend.krunner.vesrion`
   in `src/ai/backend/krunner/ubuntu/krunner-env.{distro-version}.dockerfile`
   (there may be multiple dockerfiles).
3. Run `scripts/build.py {distro-version}`.
4. Repeat the above steps for each distro version.
5. Increment *the package version number* in `src/ai/backend/krunner/ubuntu/__init__.py`
6. `rm -r dist/* build/*` (skip if these directories do not exist and or are empty)
7. `python setup.py sdist bdist_wheel`
8. `twine upload dist/*`

Note that `src/ai/backend/krunner/{distro}/krunner-version.{distro-version}.txt` files are
overwritten by the build script from the label.


