Skip to content

Commit 0c19ad0

Browse files
committed
build(cli): python3.14 CI
1 parent 915ad56 commit 0c19ad0

File tree

2 files changed

+69
-66
lines changed

2 files changed

+69
-66
lines changed

.github/workflows/test_and_cov.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ jobs:
1212
test:
1313
strategy:
1414
matrix:
15-
python-version: [3.11, 3.12, 3.13]
15+
python-version: [3.11, 3.12, 3.13, 3.14]
1616
os: [ubuntu-latest, macos-latest, macos-14, ubuntu-24.04-arm]
1717
exclude:
1818
- os: macos-14
1919
python-version: 3.13
20+
- os: macos-14
21+
python-version: 3.14
2022
runs-on: ${{ matrix.os }}
2123
timeout-minutes: 60
2224
env:

pyproject.toml

Lines changed: 66 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,67 @@
1+
[build-system]
2+
build-backend = "pdm.backend"
3+
requires = [ "pdm-backend" ]
4+
15
[project]
2-
name = "VectorCode"
3-
dynamic = ["version"]
6+
name = "vectorcode"
47
description = "A tool to vectorise repositories for RAG."
5-
authors = [{ name = "Davidyz", email = "[email protected]" }]
6-
dependencies = [
7-
"chromadb<=0.6.3",
8-
"sentence-transformers",
9-
"pathspec",
10-
"tabulate",
11-
"shtab",
12-
"numpy",
13-
"psutil",
14-
"httpx",
15-
"tree-sitter!=0.25.0",
16-
"tree-sitter-language-pack",
17-
"pygments",
18-
"transformers>=4.36.0,!=4.51.0,!=4.51.1,!=4.51.2",
19-
"wheel<0.46.0",
20-
"colorlog",
21-
"charset-normalizer>=3.4.1",
22-
"json5",
23-
"posthog<6.0.0",
24-
"filelock>=3.15.0",
25-
]
26-
requires-python = ">=3.11,<3.14"
278
readme = "README.md"
289
license = { text = "MIT" }
2910

30-
[project.urls]
31-
homepage = "https://github.com/Davidyz/VectorCode"
32-
github = "https://github.com/Davidyz/VectorCode"
33-
documentation = "https://github.com/Davidyz/VectorCode/blob/main/docs/cli.md"
34-
35-
[project.scripts]
36-
vectorcode = "vectorcode.main:main"
37-
vectorcode-server = "vectorcode.lsp_main:main"
38-
vectorcode-mcp-server = "vectorcode.mcp_main:main"
39-
40-
[build-system]
41-
requires = ["pdm-backend"]
42-
build-backend = "pdm.backend"
43-
44-
[tool.coverage.run]
45-
omit = [
46-
"./tests/*",
47-
"src/vectorcode/_version.py",
48-
"src/vectorcode/__init__.py",
49-
"src/vectorcode/debugging.py",
50-
"/tmp/*",
11+
authors = [ { name = "Davidyz", email = "[email protected]" } ]
12+
requires-python = ">=3.11,<3.15"
13+
classifiers = [
14+
"Programming Language :: Python :: 3 :: Only",
15+
"Programming Language :: Python :: 3.11",
16+
"Programming Language :: Python :: 3.12",
17+
"Programming Language :: Python :: 3.13",
18+
"Programming Language :: Python :: 3.14",
19+
]
20+
dynamic = [ "version" ]
21+
dependencies = [
22+
"charset-normalizer>=3.4.1",
23+
"chromadb<=0.6.3",
24+
"colorlog",
25+
"filelock>=3.15",
26+
"httpx",
27+
"json5",
28+
"numpy",
29+
"pathspec",
30+
"posthog<6",
31+
"psutil",
32+
"pygments",
33+
"sentence-transformers",
34+
"shtab",
35+
"tabulate",
36+
"transformers>=4.36,!=4.51,!=4.51.1,!=4.51.2",
37+
"tree-sitter!=0.25",
38+
"tree-sitter-language-pack",
39+
"wheel<0.46",
5140
]
52-
include = ['src/vectorcode/**/*.py']
41+
optional-dependencies.debug = [ "coredumpy>=0.4.1" ]
42+
optional-dependencies.intel = [ "openvino", "optimum[openvino]" ]
43+
optional-dependencies.legacy = [ "numpy<2", "torch==2.2.2", "transformers<=4.49" ]
44+
optional-dependencies.lsp = [ "lsprotocol", "pygls<2" ]
45+
optional-dependencies.mcp = [ "mcp<2", "pydantic" ]
46+
urls.documentation = "https://github.com/Davidyz/VectorCode/blob/main/docs/cli.md"
47+
urls.github = "https://github.com/Davidyz/VectorCode"
48+
urls.homepage = "https://github.com/Davidyz/VectorCode"
49+
scripts.vectorcode = "vectorcode.main:main"
50+
scripts.vectorcode-mcp-server = "vectorcode.mcp_main:main"
51+
scripts.vectorcode-server = "vectorcode.lsp_main:main"
5352

53+
[dependency-groups]
54+
dev = [
55+
"basedpyright>=1.29.2",
56+
"coverage>=7.6.12",
57+
"debugpy>=1.8.12",
58+
"ipython>=8.31",
59+
"pdm-backend>=2.4.3",
60+
"pre-commit>=4.0.1",
61+
"pytest>=8.3.4",
62+
"pytest-asyncio>=0.25.3",
63+
"ruff>=0.9.1",
64+
]
5465

5566
[tool.pdm]
5667
distribution = true
@@ -60,26 +71,16 @@ source = "scm"
6071
write_to = "./vectorcode/_version.py"
6172
write_template = "__version__ = '{}' # pragma: no cover"
6273

63-
[dependency-groups]
64-
dev = [
65-
"ipython>=8.31.0",
66-
"ruff>=0.9.1",
67-
"pre-commit>=4.0.1",
68-
"pytest>=8.3.4",
69-
"pdm-backend>=2.4.3",
70-
"coverage>=7.6.12",
71-
"pytest-asyncio>=0.25.3",
72-
"debugpy>=1.8.12",
73-
"basedpyright>=1.29.2",
74+
[tool.coverage.run]
75+
omit = [
76+
"./tests/*",
77+
"src/vectorcode/_version.py",
78+
"src/vectorcode/__init__.py",
79+
"src/vectorcode/debugging.py",
80+
"/tmp/*",
7481
]
75-
76-
[project.optional-dependencies]
77-
legacy = ["numpy<2.0.0", "torch==2.2.2", "transformers<=4.49.0"]
78-
intel = ['optimum[openvino]', 'openvino']
79-
lsp = ['pygls<2.0.0', 'lsprotocol']
80-
mcp = ['mcp<2.0.0', 'pydantic']
81-
debug = ["coredumpy>=0.4.1"]
82+
include = [ 'src/vectorcode/**/*.py' ]
8283

8384
[tool.basedpyright]
8485
typeCheckingMode = "standard"
85-
ignore = ["./tests/"]
86+
ignore = [ "./tests/" ]

0 commit comments

Comments
 (0)