Skip to main content

A tool parse rocker-compose.yaml files and pass on the arguments onto rocker

Project description

rockerc

A template repo for python projects that is set up using pixi.

This has basic setup for

  • pylint
  • ruff
  • black
  • pytest
  • codecov
  • git-lfs
  • basic github actions ci
  • pulling updates from this template

Continuous Integration Status

Ci Codecov GitHub issues GitHub pull-requests merged GitHub release License Python Pixi Badge

Install

There are two methods of using this project.

  1. Use github to use this project as a template
  2. Clone the project and run, scripts/update_from_template.sh and then run the "rename project" task to rename the project.

If you want to use docker you may want to run the scripts/setup_host.sh script. It will set up docker and nvidia-docker (assuming you are on ubuntu22.04).

If you are using pixi, you can either follow the instructions on the pixi website or run scripts/install_pixi.sh

Usage

There are currently two ways of running code. The legacy docker way and the work in progress pixi way.

Legacy

run the scripts/launch_vscode.sh script to build and connect to a docker container. The docker container is dynamically generated using rocker and deps rocker. deps rocker looks at the rockerc.deps.yaml file to install any required apt, pip or shell scripts and launches a container that vscode attaches to.

Pixi

If you have pixi installed on your host machine you can run any of the tasks defined in pyproject.toml. The legacy method also installs pixi in the container so you have access to pixi there.

The main pixi tasks are related to ci. Github actions runs the pixi task "ci". The ci is mostly likey to fail from a lockfile mismatch. Use the "fix" task to fix any lockfile related problems.

vscode tasks

There are two core tasks.

  1. set <cfg> from active file

    This sets <cfg> to the currently opened file in the editor

  2. run <cfg>

    This runs python with the file set in <cfg>

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

rockerc-0.0.4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

rockerc-0.0.4-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file rockerc-0.0.4.tar.gz.

File metadata

  • Download URL: rockerc-0.0.4.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for rockerc-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6759833455624d5fa28dfa561ccae0085476c8c6b3cf93f2b17012125bd69bd1
MD5 ec4faa87986d177177e85aa1c56f1651
BLAKE2b-256 7b87cc5149f607ad06ffd99efe13bcdaece6cc8a3dab1c34f368dba44c3d4d54

See more details on using hashes here.

File details

Details for the file rockerc-0.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: rockerc-0.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for rockerc-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d1b4bfc52a2bfe1577c9f1f26f3dea08abbc156c6a2379d2cf5ec0b2598b91cc
MD5 59d069fcaecc4bebc8c2410f7a89a886
BLAKE2b-256 55035df51cfd7f0876ec4aabc8e24b605ef1481310b545fa90b3dacde234d0d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page