create working template

This commit is contained in:
Kaz Saita(raspi4) 2024-03-29 14:31:16 +09:00
parent 0c767d2a62
commit d50a4d1eb0
5 changed files with 31 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
.venv/*
poetry.lock
__pycache__/

5
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"terminal.integrated.enablePersistentSessions": true,
"python.terminal.activateEnvInCurrentTerminal": true,
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python"
}

16
pyproject.toml Normal file
View file

@ -0,0 +1,16 @@
[tool.poetry]
name = "python-project-template"
version = "0.1.0"
description = "template project for pyenv+poetry"
authors = ["Kaz Saita(raspi4) <saita@kinoshita-lab.org>"]
license = "MIT"
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "^3.11"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

View file

View file

@ -0,0 +1,7 @@
# !/usr/bin/env python3
def main():
print("Hello World!")
if __name__ == '__main__':
main()