Skip to content

Commit 1c43bab

Browse files
committed
remove Poetry references
1 parent edc0438 commit 1c43bab

File tree

6 files changed

+28
-32
lines changed

6 files changed

+28
-32
lines changed

.github/workflows/python-smoke-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ jobs:
103103
- uses: actions/upload-artifact@v4
104104
if: always()
105105
with:
106-
name: smoke-test-artifacts-${{ matrix.python-version }}-${{ matrix.poetry-version }}-${{ runner.os }}
106+
name: smoke-test-artifacts-${{ matrix.python-version }}-${{ runner.os }}
107107
path: tests/fixtures/*

DEVELOPING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
| Name | Installation | Purpose |
66
| ------------------- | ------------------------------------------------------------ | ----------------------------------------------------------------------------------- |
77
| Python 3.10 or 3.11 | [Download](https://www.python.org/downloads/) | The library is Python-based. |
8-
| uv | [Instructions](https://docs.astral.sh/uv/) | uv is used for package management and virtualenv management in Python codebases |
8+
| uv | [Instructions](https://docs.astral.sh/uv/) | uv is used for package management and virtualenv management in Python codebases |
99

1010
# Getting Started
1111

docs/developing.md

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,31 @@
55
| Name | Installation | Purpose |
66
| ------------------- | ------------------------------------------------------------ | ----------------------------------------------------------------------------------- |
77
| Python 3.10-3.12 | [Download](https://www.python.org/downloads/) | The library is Python-based. |
8-
| Poetry | [Instructions](https://python-poetry.org/docs/#installation) | Poetry is used for package management and virtualenv management in Python codebases |
8+
| uv | [Instructions](https://docs.astral.sh/uv/) | uv is used for package management and virtualenv management in Python codebases |
99

1010
# Getting Started
1111

1212
## Install Dependencies
1313

1414
```sh
15-
# Install Python dependencies.
16-
poetry install
15+
# (optional) create virtual environment
16+
uv venv --python 3.10
17+
source .venv/bin/activate
18+
19+
# install python dependencies
20+
uv sync --extra dev
1721
```
1822

1923
## Execute the Indexing Engine
2024

2125
```sh
22-
poetry run poe index <...args>
26+
uv run poe index <...args>
2327
```
2428

2529
## Executing Queries
2630

2731
```sh
28-
poetry run poe query <...args>
32+
uv run poe query <...args>
2933
```
3034

3135
# Azurite
@@ -40,31 +44,31 @@ or by simply running `azurite` in the terminal if already installed globally. Se
4044

4145
# Lifecycle Scripts
4246

43-
Our Python package utilizes Poetry to manage dependencies and [poethepoet](https://pypi.org/project/poethepoet/) to manage build scripts.
47+
Our Python package utilize uv to manage dependencies and [poethepoet](https://pypi.org/project/poethepoet/) to manage build scripts.
4448

4549
Available scripts are:
4650

47-
- `poetry run poe index` - Run the Indexing CLI
48-
- `poetry run poe query` - Run the Query CLI
49-
- `poetry build` - This invokes `poetry build`, which will build a wheel file and other distributable artifacts.
50-
- `poetry run poe test` - This will execute all tests.
51-
- `poetry run poe test_unit` - This will execute unit tests.
52-
- `poetry run poe test_integration` - This will execute integration tests.
53-
- `poetry run poe test_smoke` - This will execute smoke tests.
54-
- `poetry run poe test_verbs` - This will execute tests of the basic workflows.
55-
- `poetry run poe check` - This will perform a suite of static checks across the package, including:
51+
- `uv run poe index` - Run the Indexing CLI
52+
- `uv run poe query` - Run the Query CLI
53+
- `uv build` - This will build a wheel file and other distributable artifacts.
54+
- `uv run poe test` - This will execute all tests.
55+
- `uv run poe test_unit` - This will execute unit tests.
56+
- `uv run poe test_integration` - This will execute integration tests.
57+
- `uv run poe test_smoke` - This will execute smoke tests.
58+
- `uv run poe test_verbs` - This will execute tests of the basic workflows.
59+
- `uv run poe check` - This will perform a suite of static checks across the package, including:
5660
- formatting
5761
- documentation formatting
5862
- linting
5963
- security patterns
6064
- type-checking
61-
- `poetry run poe fix` - This will apply any available auto-fixes to the package. Usually this is just formatting fixes.
62-
- `poetry run poe fix_unsafe` - This will apply any available auto-fixes to the package, including those that may be unsafe.
63-
- `poetry run poe format` - Explicitly run the formatter across the package.
65+
- `uv run poe fix` - This will apply any available auto-fixes to the package. Usually this is just formatting fixes.
66+
- `uv run poe fix_unsafe` - This will apply any available auto-fixes to the package, including those that may be unsafe.
67+
- `uv run poe format` - Explicitly run the formatter across the package.
6468

6569
## Troubleshooting
6670

67-
### "RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config" when running poetry install
71+
### "RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config" when running uv install
6872

6973
Make sure llvm-9 and llvm-9-dev are installed:
7074

@@ -74,12 +78,6 @@ and then in your bashrc, add
7478

7579
`export LLVM_CONFIG=/usr/bin/llvm-config-9`
7680

77-
### "numba/\_pymodule.h:6:10: fatal error: Python.h: No such file or directory" when running poetry install
78-
79-
Make sure you have python3.10-dev installed or more generally `python<version>-dev`
80-
81-
`sudo apt-get install python3.10-dev`
82-
8381
### LLM call constantly exceeds TPM, RPM or time limits
8482

8583
`GRAPHRAG_LLM_THREAD_COUNT` and `GRAPHRAG_EMBEDDING_THREAD_COUNT` are both set to 50 by default. You can modify these values

docs/index/overview.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ After you have a config file you can run the pipeline using the CLI or the Pytho
2626
### CLI
2727

2828
```bash
29-
# Via Poetry
30-
poetry run poe index --root <data_root> # default config mode
29+
uv run poe index --root <data_root> # default config mode
3130
```
3231

3332
### Python API

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ graphrag = "graphrag.cli.main:app"
9696
[project.urls]
9797
Source = "https://github.com/microsoft/graphrag"
9898

99-
# Build system without poetry
10099
[build-system]
101100
requires = ["setuptools>=64", "wheel"]
102101
build-backend = "setuptools.build_meta"

tests/smoke/test_fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def __run_indexer(
130130
input_file_type: str,
131131
):
132132
command = [
133-
"poetry",
133+
"uv",
134134
"run",
135135
"poe",
136136
"index",
@@ -202,7 +202,7 @@ def __assert_indexer_outputs(
202202

203203
def __run_query(self, root: Path, query_config: dict[str, str]):
204204
command = [
205-
"poetry",
205+
"uv",
206206
"run",
207207
"poe",
208208
"query",

0 commit comments

Comments
 (0)