Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit cdc93da

Browse files
dependabot[bot]gilesknap
authored andcommitted
Updates for split into two repos and container build
Updates after split to two repos Bump actions/cache from 2 to 3 Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v2...v3) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> allow CI on all branches pin skip-duplicate-actions use non-editable install for unlocked phasees new skip CI approach changes in features.rst fix tests fix tests ensure requirements.txt not zero length tidy docs tests inside container refactor container build update code.yml to use container
1 parent 2902513 commit cdc93da

24 files changed

+229
-373
lines changed

.containerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Dockerfile
2+
build/
3+
dist/
4+
.mypy_cache
5+
.tox
6+
.venv*

.devcontainer.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// For format details, see https://aka.ms/devcontainer.json
2+
{
3+
"name": "Python 3 Developer Container",
4+
"build": {
5+
"dockerfile": "Dockerfile",
6+
"target": "build",
7+
"context": ".",
8+
"args": {}
9+
},
10+
"remoteEnv": {
11+
"DISPLAY": "${localEnv:DISPLAY}"
12+
},
13+
// Set *default* container specific settings.json values on container create.
14+
"settings": {
15+
"python.defaultInterpreterPath": "/usr/local/bin/python",
16+
"python.linting.enabled": true
17+
},
18+
// Add the IDs of extensions you want installed when the container is created.
19+
"extensions": [
20+
"ms-python.python",
21+
"ms-python.vscode-pylance"
22+
],
23+
// Make sure the files we are mapping into the container exist on the host
24+
"initializeCommand": "bash -c 'for i in $HOME/.inputrc $HOME/.bashrc_dev; do [ -f $i ] || touch $i; done'",
25+
"runArgs": [
26+
"--privileged",
27+
"--net=host",
28+
"-v=${localEnv:HOME}/.ssh:/root/.ssh",
29+
"-v=${localEnv:HOME}/.bashrc_dev:/root/.bashrc",
30+
"-v=${localEnv:HOME}/.inputrc:/root/.inputrc"
31+
],
32+
"mounts": [
33+
// map in home directory - not strictly necessary but useful
34+
"source=${localEnv:HOME},target=${localEnv:HOME},type=bind,consistency=cached"
35+
],
36+
// make the workspace folder the same inside and outside of the container
37+
"workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind",
38+
"workspaceFolder": "${localWorkspaceFolder}",
39+
// After the container is created, install the python project in editable form
40+
"postCreateCommand": "pip install $([ -f requirements_dev.txt ] && echo -r requirements_dev.txt ) -e .[dev]"
41+
}

.devcontainer/Dockerfile

Lines changed: 0 additions & 31 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 0 additions & 68 deletions
This file was deleted.

.devcontainer/local_build.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)