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:
|
||||
- main
|
||||
- main
|
||||
|
||||
# the `resources` specify the location and version of the 1ES Pipeline Template (PT).
|
||||
resources:
|
||||
repositories:
|
||||
- repository: 1ESPipelineTemplates
|
||||
type: git
|
||||
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
||||
ref: refs/tags/release
|
||||
- repository: 1ESPipelineTemplates
|
||||
type: git
|
||||
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
||||
ref: refs/tags/release
|
||||
|
||||
extends:
|
||||
# this pipeline extends an existing 1ES PT which injects various SDL and compliance tasks
|
||||
@ -28,14 +28,12 @@ extends:
|
||||
stages:
|
||||
- stage: Component_Governance
|
||||
jobs:
|
||||
- job: CG_Prep
|
||||
steps:
|
||||
# Component Governance (CG) does not support pyproject.toml yet.
|
||||
# For this reason, use toml-to-requirements to export dependencies into a requirements.txt file.
|
||||
# CG will auto-detect the requirements.txt file and use it to scan for dependencies.
|
||||
- script: |
|
||||
pip install toml-to-requirements
|
||||
toml-to-req --toml-file backend/pyproject.toml --poetry --optional-lists dev,test,backend,frontend
|
||||
# toml-to-req is not perfect. It will leave wildcard characters in the requirements.txt file which we remove
|
||||
sed -i 's/\*//g' requirements.txt
|
||||
displayName: 'Export python dependencies to requirements.txt for CG'
|
||||
- job: CG_Prep
|
||||
steps:
|
||||
# Component Governance (CG) does not support pyproject.toml yet.
|
||||
# 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.
|
||||
- script: |
|
||||
pip install poetry poetry-plugin-export
|
||||
poetry export --directory=backend --format=requirements.txt --without-hashes --without-urls --all-extras --all-groups -o 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]
|
||||
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"
|
||||
[project]
|
||||
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"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "~3.10"
|
||||
license = "MIT"
|
||||
authors = [
|
||||
{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]
|
||||
detect-secrets = ">=1.5.0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user