Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,22 @@ If you use CoqPyt in an article, please cite:

## Installation

[Python](https://www.python.org/) must be installed on version >= 3.11.

[coq-lsp](https://github.com/ejgallego/coq-lsp) must be installed on version >= 0.1.7. Follow the installation instructions provided [here](https://github.com/ejgallego/coq-lsp#%EF%B8%8F-installation).

```bash
pip install -r requirements.txt
python -m pip install -e .
```

### uv installation

In alternative, use [uv](https://github.com/astral-sh/uv) to setup the project and create a virtual environment.

```bash
python -m pip install -e .
uv sync --dev
uv pip install -e .
```

## Usage
Expand Down
2 changes: 2 additions & 0 deletions coqpyt/coq/lsp/structs.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,15 @@ def __init__(
goals: Optional[GoalConfig] = None,
error: Any = None,
program: List = [],
range: Range = None,
):
self.textDocument = textDocument
self.position = position
self.messages = messages
self.goals = goals
self.error = error
self.program = program
self.range = range

def __repr__(self):
res = "\n"
Expand Down
15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[project]
name = "coqpyt"
version = "0.0.1"
description = "CoqPyt: a Python client for coq-lsp"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"packaging>=25.0",
"pyyaml==6.0.0",
]

[dependency-groups]
dev = [
"pytest==7.3.1",
]
92 changes: 92 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.