Skip to main content

A python package template

Project description

rockervsc

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 rockervsc.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

rockervsc-0.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

rockervsc-0.2.0-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file rockervsc-0.2.0.tar.gz.

File metadata

  • Download URL: rockervsc-0.2.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for rockervsc-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a3c4311e36ad5b3ba8bc0e5c6c00d127de046a7dae94f80d26aa8949cde2a7ec
MD5 f6275c8619590834b84fd1b9bdc38eae
BLAKE2b-256 b3d02a53732f52701820b8a548b67ad4cc5ccf33435aadc312206c39d0eeb512

See more details on using hashes here.

File details

Details for the file rockervsc-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: rockervsc-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for rockervsc-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 84a930fd3aa74207129fecf271f52ff0fc62bd920345851147f86b2664e1d413
MD5 4f2f0f92cb6306b395e4895104e81544
BLAKE2b-256 0fd1ee2f9a9590418d1f4525dcd54c794bb76fc09a591831404ea7b15301a8f8

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