Last active
October 16, 2023 22:20
-
-
Save muuvmuuv/cfd0eee59b9e7fd994e2ca45f09d4b83 to your computer and use it in GitHub Desktop.
ARM64 (Silicon) Tensorflow IO devcontainer configuration with Poetry to avoid the headache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Tensorflow.IO", | |
"build": { | |
"dockerfile": "Dockerfile" | |
}, | |
"features": { | |
"ghcr.io/devcontainers/features/git:1": { | |
"version": "latest" | |
} | |
}, | |
"extensions": [ | |
"ms-python.python", | |
"VisualStudioExptTeam.vscodeintellicode", | |
"tamasfe.even-better-toml" | |
], | |
"settings": { | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/devcontainers/python:3.10 | |
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local python3 - | |
USER vscode | |
RUN /usr/local/bin/poetry config virtualenvs.in-project true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python", | |
"python.linting.pylintArgs": ["--generate-members"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.poetry] | |
name = "Tensorflow.IO" | |
version = "0.1.0" | |
description = "Tensorflow.IO" | |
authors = ["Marvin Heilemann <[email protected]>"] | |
[tool.poetry.dependencies] | |
python = ">=3.10,<3.11" | |
pylint = "^2.14.5" | |
black = "^22.6.0" | |
opencv-python = "^4.6.0.66" | |
tensorflow = "^2.10.0" | |
[tool.poetry.dev-dependencies] | |
pytest = "^5.2" | |
[build-system] | |
requires = ["poetry-core>=1.0.0"] | |
build-backend = "poetry.core.masonry.api" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment