Python: add requirements file to python project wizard

This is the de facto standard way of defining project dependencies. And
those files can be used to install dependencies via pip.

Change-Id: Ibfe37624b66d757cd331aee9c51090200b3bad39
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2024-01-17 13:47:03 +01:00
parent 7d659b446d
commit aefd80094a
5 changed files with 17 additions and 0 deletions

View File

@@ -81,6 +81,10 @@
"target": "%{SrcFileName}", "target": "%{SrcFileName}",
"openInEditor": true "openInEditor": true
}, },
{
"source": "../requirements.txt",
"target": "requirements.txt"
},
{ {
"source": "../../git.ignore", "source": "../../git.ignore",
"target": ".gitignore", "target": ".gitignore",

View File

@@ -125,6 +125,10 @@
"target": "%{MainPyFileName}", "target": "%{MainPyFileName}",
"openInEditor": true "openInEditor": true
}, },
{
"source": "../requirements.txt",
"target": "requirements.txt"
},
{ {
"source": "../../git.ignore", "source": "../../git.ignore",
"target": ".gitignore", "target": ".gitignore",

View File

@@ -120,6 +120,10 @@
"target": "%{QmlFileName}", "target": "%{QmlFileName}",
"openInEditor": true "openInEditor": true
}, },
{
"source": "../requirements.txt",
"target": "requirements.txt"
},
{ {
"source": "../../git.ignore", "source": "../../git.ignore",
"target": ".gitignore", "target": ".gitignore",

View File

@@ -0,0 +1 @@
%{PySideVersion}

View File

@@ -129,6 +129,10 @@
"source": "../main_widget.ui", "source": "../main_widget.ui",
"target": "form.ui" "target": "form.ui"
}, },
{
"source": "../requirements.txt",
"target": "requirements.txt"
},
{ {
"source": "../../git.ignore", "source": "../../git.ignore",
"target": ".gitignore", "target": ".gitignore",