Skip to content

Commit 678927d

Browse files
committed
configured with 3.13
1 parent a0aeb58 commit 678927d

File tree

9 files changed

+248
-19
lines changed

9 files changed

+248
-19
lines changed
File renamed without changes.
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
FROM python:latest
1+
FROM python:3.13
22

3+
# refresh
34
RUN apt update -y && apt upgrade -y
45

6+
# refresh python toolchain
57
RUN pip install --upgrade pip setuptools wheel
68

79
WORKDIR /workspace
10+
COPY .. .
811

9-
COPY . .
10-
11-
RUN bash
12+
USER root
13+
RUN /bin/bash
1214

.devcontainer/devcontainer.json

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,58 @@
11
{
2-
"name": "python-generic-environment",
2+
"name": "python-3.13-generic-environment",
33
"dockerComposeFile": [
44
"docker-compose.yml"
55
],
6-
"service": "vscode",
6+
"service": "python-3.13-generic-impulse",
77
"runServices": [
8-
"vscode"
8+
"python-3.13-generic-impulse"
99
],
1010
"shutdownAction": "stopCompose",
1111
"workspaceFolder": "/workspace",
12-
"postCreateCommand": "",
13-
"overrideCommand": true
12+
"postCreateCommand": "chmod +x /workspace/.devcontainer/post-create.sh && /workspace/.devcontainer/post-create.sh",
13+
"overrideCommand": true,
14+
"remoteUser": "root",
15+
"customizations": {
16+
"vscode": {
17+
"extensions": [
18+
"ms-python.black-formatter",
19+
"formulahendry.code-runner",
20+
"streetsidesoftware.code-spell-checker",
21+
"Codeium.codeium",
22+
"batisteo.vscode-django",
23+
"visualstudioexptteam.intellicode-api-usage-examples",
24+
"ms-toolsai.jupyter",
25+
"ms-python.vscode-pylance",
26+
"ms-python.python",
27+
"donjayamanne.python-environment-manager",
28+
"vscode-icons-team.vscode-icons",
29+
"almenon.arepl",
30+
"njpwerner.autodocstring",
31+
"garytyler.darcula-pycharm",
32+
"seyyedkhandon.firacode",
33+
"codezombiech.gitignore",
34+
"oderwat.indent-rainbow",
35+
"VisualStudioExptTeam.vscodeintellicode",
36+
"VisualStudioExptTeam.vscodeintellicode-completions",
37+
"ms-python.isort",
38+
"wholroyd.jinja",
39+
"ms-toolsai.vscode-jupyter-cell-tags",
40+
"ms-toolsai.jupyter-keymap",
41+
"ms-toolsai.jupyter-renderers",
42+
"ms-toolsai.vscode-jupyter-slideshow",
43+
"magicstack.MagicPython",
44+
"yzhang.markdown-all-in-one",
45+
"davidanson.vscode-markdownlint",
46+
"mdickin.markdown-shortcuts",
47+
"KevinRose.vsc-python-indent",
48+
"njqdev.vscode-python-typehint",
49+
"gruntfuggly.todo-tree",
50+
"mgesbert.python-path",
51+
"shardulm94.trailing-spaces",
52+
"stkb.rewrap",
53+
"mechatroner.rainbow-csv",
54+
"bierner.emojisense"
55+
]
56+
}
57+
}
1458
}

.devcontainer/docker-compose.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
version: "3.8"
1+
22
services:
3-
vscode:
4-
image: bkataru/impulses:python-generic
3+
python-3.13-generic-impulse:
4+
image: bkataru/impulses:python-3.13-generic
5+
container_name: python-3.13-generic-impulse-container
6+
build:
7+
context: .
8+
dockerfile: ./Dockerfile
59
volumes:
610
- ../:/workspace
7-
- ~/.ssh:/home/vscode/.ssh:ro
8-
- ~/.ssh:/root/.ssh:ro
911
- /var/run/docker.sock:/var/run/docker.sock
1012
environment:
1113
- TZ=
1214
cap_add:
1315
- SYS_PTRACE
1416
security_opt:
1517
- seccomp:unconfined
16-
entrypoint: zsh -c "while sleep 1000; do :; done"
18+
tty: true
19+
stdin_open: true
20+
command: "/bin/bash"

.devcontainer/post-create.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
cd /workspace
4+
5+
echo "[INFO] impulse ready.."

.github/workflows/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

.github/workflows/docker-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ jobs:
2323
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
2424
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
2525
- name: Build the Docker image
26-
run: docker build -t bkataru/impulses:${{ steps.repo-basename.outputs.value }} .
26+
run: docker build -t bkataru/impulses:python-3.13-generic .
2727
- name: Push the Docker image
28-
run: docker push bkataru/impulses:${{ steps.repo-basename.outputs.value }}
28+
run: docker push bkataru/impulses:python-3.13-generic

.gitignore

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# poetry
98+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102+
#poetry.lock
103+
104+
# pdm
105+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106+
#pdm.lock
107+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108+
# in version control.
109+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
110+
.pdm.toml
111+
.pdm-python
112+
.pdm-build/
113+
114+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
115+
__pypackages__/
116+
117+
# Celery stuff
118+
celerybeat-schedule
119+
celerybeat.pid
120+
121+
# SageMath parsed files
122+
*.sage.py
123+
124+
# Environments
125+
.env
126+
.venv
127+
env/
128+
venv/
129+
ENV/
130+
env.bak/
131+
venv.bak/
132+
133+
# Spyder project settings
134+
.spyderproject
135+
.spyproject
136+
137+
# Rope project settings
138+
.ropeproject
139+
140+
# mkdocs documentation
141+
/site
142+
143+
# mypy
144+
.mypy_cache/
145+
.dmypy.json
146+
dmypy.json
147+
148+
# Pyre type checker
149+
.pyre/
150+
151+
# pytype static type analyzer
152+
.pytype/
153+
154+
# Cython debug symbols
155+
cython_debug/
156+
157+
# PyCharm
158+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
159+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160+
# and can be added to the global gitignore or merged into this file. For a more nuclear
161+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162+
#.idea/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Python Generic
1+
# Python 3.13 Generic
22

3-
Impulse (Docker dev container configuration and scaffolding) for a very slim but general Python 3 environment preconfigured with convenient settings and extensions.
3+
Impulse (Docker dev container configuration and scaffolding) for a very slim but general Python 3.13 environment preconfigured with convenient settings and extensions.

0 commit comments

Comments
 (0)