Skip to content

Commit 2e51a57

Browse files
committed
devcontainer support
1 parent 7005feb commit 2e51a57

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.devcontainer/devcontainer.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "Python 3",
3+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
4+
"image": "mcr.microsoft.com/devcontainers/python:3.12-bookworm",
5+
"onCreateCommand": ".devcontainer/startup.sh",
6+
"customizations": {
7+
"vscode": {
8+
"settings": {
9+
"python.testing.pytestEnabled": true,
10+
"python.testing.unittestEnabled": false,
11+
"python.testing.pytestArgs": [
12+
"."
13+
],
14+
"python.pythonPath": ".venv/bin/python",
15+
"python.defaultInterpreterPath": ".venv/bin/python",
16+
"python.terminal.activateEnvInCurrentTerminal": true
17+
},
18+
"extensions": [
19+
"ms-toolsai.jupyter"
20+
]
21+
}
22+
}
23+
}

.devcontainer/startup.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
curl -LsSf https://astral.sh/uv/install.sh | sh
3+
uv sync -vv --frozen

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
[![Downloads](https://static.pepy.tech/personalized-badge/cvxcli?period=month&units=international_system&left_color=black&right_color=orange&left_text=PyPI%20downloads%20per%20month)](https://pepy.tech/project/cvxcli)
66
[![Coverage Status](https://coveralls.io/repos/github/cvxgrp/simulator/badge.png?branch=main)](https://coveralls.io/github/cvxgrp/cvxcli?branch=main)
77

8+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/cvxgrp/cvxcli)
9+
810
We demonstrate how to deploy to simple command line apps using uvx.
911

1012
## Install uvx

0 commit comments

Comments
 (0)