Update format of pyproject.toml (#288)

This commit is contained in:
Josh Bradley 2025-05-08 13:35:44 -04:00 committed by GitHub
parent 004fc65cdb
commit 13ae72f8ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1742 additions and 1279 deletions

View File

@ -31,11 +31,9 @@ extends:
- 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.
# 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 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'
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

File diff suppressed because it is too large Load Diff

View File

@ -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"