mirror of
https://github.com/Azure-Samples/graphrag-accelerator.git
synced 2025-06-27 04:39:57 +00:00
Update format of pyproject.toml (#288)
This commit is contained in:
parent
004fc65cdb
commit
13ae72f8ee
@ -1,13 +1,13 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
# the `resources` specify the location and version of the 1ES Pipeline Template (PT).
|
# the `resources` specify the location and version of the 1ES Pipeline Template (PT).
|
||||||
resources:
|
resources:
|
||||||
repositories:
|
repositories:
|
||||||
- repository: 1ESPipelineTemplates
|
- repository: 1ESPipelineTemplates
|
||||||
type: git
|
type: git
|
||||||
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
||||||
ref: refs/tags/release
|
ref: refs/tags/release
|
||||||
|
|
||||||
extends:
|
extends:
|
||||||
# this pipeline extends an existing 1ES PT which injects various SDL and compliance tasks
|
# this pipeline extends an existing 1ES PT which injects various SDL and compliance tasks
|
||||||
@ -28,14 +28,12 @@ extends:
|
|||||||
stages:
|
stages:
|
||||||
- stage: Component_Governance
|
- stage: Component_Governance
|
||||||
jobs:
|
jobs:
|
||||||
- job: CG_Prep
|
- job: CG_Prep
|
||||||
steps:
|
steps:
|
||||||
# Component Governance (CG) does not support pyproject.toml yet.
|
# Component Governance (CG) does not support pyproject.toml yet.
|
||||||
# For this reason, use toml-to-requirements to export dependencies into a requirements.txt file.
|
# For this reason, we export dependencies into a requirements.txt file.
|
||||||
# CG will auto-detect the requirements.txt file and use it to scan for dependencies.
|
# CG will auto-detect the requirements.txt file and use it to scan for dependencies.
|
||||||
- script: |
|
- script: |
|
||||||
pip install toml-to-requirements
|
pip install poetry poetry-plugin-export
|
||||||
toml-to-req --toml-file backend/pyproject.toml --poetry --optional-lists dev,test,backend,frontend
|
poetry export --directory=backend --format=requirements.txt --without-hashes --without-urls --all-extras --all-groups -o requirements.txt
|
||||||
# toml-to-req is not perfect. It will leave wildcard characters in the requirements.txt file which we remove
|
displayName: "Export python dependencies to requirements.txt for CG"
|
||||||
sed -i 's/\*//g' requirements.txt
|
|
||||||
displayName: 'Export python dependencies to requirements.txt for CG'
|
|
||||||
|
2960
backend/poetry.lock
generated
2960
backend/poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,21 +1,20 @@
|
|||||||
[tool.poetry]
|
[project]
|
||||||
authors = [
|
|
||||||
"Josh Bradley <joshbradley@microsoft.com>",
|
|
||||||
"Newman Cheng <newmancheng@microsoft.com>",
|
|
||||||
"Christine DiFonzo <cdifonzo@microsoft.com>",
|
|
||||||
"Gabriel Nieves <gnievesponce@microsoft.com>",
|
|
||||||
"Douglas Orbaker <dorbaker@microsoft.com>",
|
|
||||||
"Chris Sanchez <chrissanchez@microsoft.com>",
|
|
||||||
"Shane Solomon <shane.solomon@microsoft.com>",
|
|
||||||
"Kenny Zhang <zhangken@microsoft.com>",
|
|
||||||
]
|
|
||||||
description = "A web API wrapper around the official GraphRAG library."
|
|
||||||
license = "MIT"
|
|
||||||
name = "graphrag-app"
|
name = "graphrag-app"
|
||||||
|
description = "A web API wrapper around the official GraphRAG library."
|
||||||
|
# we make the version defined here match the graphrag library version
|
||||||
version = "1.2.0"
|
version = "1.2.0"
|
||||||
|
license = "MIT"
|
||||||
[tool.poetry.dependencies]
|
authors = [
|
||||||
python = "~3.10"
|
{name = "Josh Bradley", email = "joshbradley@microsoft.com"},
|
||||||
|
{name = "Newman Cheng", email = "newmancheng@microsoft.com"},
|
||||||
|
{name = "Christine DiFonzo", email = "cdifonzo@microsoft.com"},
|
||||||
|
{name = "Gabriel Nieves", email = "gnievesponce@microsoft.com"},
|
||||||
|
{name = "Douglas Orbaker", email = "dorbaker@microsoft.com"},
|
||||||
|
{name = "Shane Solomon", email = "shane.solomon@microsoft.com"},
|
||||||
|
{name = "Kenny Zhang", email = "zhangken@microsoft.com"},
|
||||||
|
]
|
||||||
|
requires-python = '>=3.10, <3.13'
|
||||||
|
package-mode=false
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
detect-secrets = ">=1.5.0"
|
detect-secrets = ">=1.5.0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user