Skip to content

Commit b1d8880

Browse files
authored
uv setup and add python version requirements to README (#59)
* uv setup and python version requirements * fix for new version of coq-lsp
1 parent 75a3cca commit b1d8880

File tree

4 files changed

+118
-1
lines changed

4 files changed

+118
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,22 @@ If you use CoqPyt in an article, please cite:
2020

2121
## Installation
2222

23+
[Python](https://www.python.org/) must be installed on version >= 3.11.
24+
2325
[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).
2426

2527
```bash
2628
pip install -r requirements.txt
29+
python -m pip install -e .
2730
```
2831

32+
### uv installation
33+
34+
In alternative, use [uv](https://github.com/astral-sh/uv) to setup the project and create a virtual environment.
35+
2936
```bash
30-
python -m pip install -e .
37+
uv sync --dev
38+
uv pip install -e .
3139
```
3240

3341
## Usage

coqpyt/coq/lsp/structs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,15 @@ def __init__(
109109
goals: Optional[GoalConfig] = None,
110110
error: Any = None,
111111
program: List = [],
112+
range: Range = None,
112113
):
113114
self.textDocument = textDocument
114115
self.position = position
115116
self.messages = messages
116117
self.goals = goals
117118
self.error = error
118119
self.program = program
120+
self.range = range
119121

120122
def __repr__(self):
121123
res = "\n"

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[project]
2+
name = "coqpyt"
3+
version = "0.0.1"
4+
description = "CoqPyt: a Python client for coq-lsp"
5+
readme = "README.md"
6+
requires-python = ">=3.11"
7+
dependencies = [
8+
"packaging>=25.0",
9+
"pyyaml==6.0.0",
10+
]
11+
12+
[dependency-groups]
13+
dev = [
14+
"pytest==7.3.1",
15+
]

uv.lock

Lines changed: 92 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)