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
Install
There are two methods of using this project.
- Use github to use this project as a template
- 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.
-
set <cfg> from active file
This sets <cfg> to the currently opened file in the editor
-
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3c4311e36ad5b3ba8bc0e5c6c00d127de046a7dae94f80d26aa8949cde2a7ec |
|
MD5 | f6275c8619590834b84fd1b9bdc38eae |
|
BLAKE2b-256 | b3d02a53732f52701820b8a548b67ad4cc5ccf33435aadc312206c39d0eeb512 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a930fd3aa74207129fecf271f52ff0fc62bd920345851147f86b2664e1d413 |
|
MD5 | 4f2f0f92cb6306b395e4895104e81544 |
|
BLAKE2b-256 | 0fd1ee2f9a9590418d1f4525dcd54c794bb76fc09a591831404ea7b15301a8f8 |