Skip to content

Commit 1014ccf

Browse files
authored
Fix/relax numpy version constraint (#56)
* bump python to ^3.10 and allow for numpy >=2.0.0 * bump up version and make dependency groups optional * Update coverage badge in README [skip ci] * add extras in pyproject toml * added release notes * fix release notes --------- Co-authored-by: finitearth <finitearth@users.noreply.github.com>
1 parent d486c61 commit 1014ccf

File tree

5 files changed

+29
-5
lines changed

5 files changed

+29
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
![promptolution](https://github.com/user-attachments/assets/84c050bd-61a1-4f2e-bc4e-874d9b4a69af)
22

3-
![Coverage](https://img.shields.io/badge/Coverage-87%25-green)
3+
![Coverage](https://img.shields.io/badge/Coverage-89%25-green)
44
[![CI](https://github.com/finitearth/promptolution/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/finitearth/promptolution/actions/workflows/ci.yml)
55
[![Docs](https://github.com/finitearth/promptolution/actions/workflows/docs.yml/badge.svg?branch=main)](https://github.com/finitearth/promptolution/actions/workflows/docs.yml)
66
![Code Style](https://img.shields.io/badge/Code%20Style-black-black)
7-
![Python Versions](https://img.shields.io/badge/Python%20Versions-≥3.9-blue)
7+
![Python Versions](https://img.shields.io/badge/Python%20Versions-≥3.10-blue)
88

99

1010

docs/release-notes/v2.0.1.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Release v2.0.1
2+
### What's changed
3+
- updated python requirement to >=3.10 (as 3.9 will lose support after October 2025)
4+
- fixed numpy version constraints (thanks to @asalaria-cisco)
5+
- make dependencies groups extras optional
6+
7+
**Full Changelog**: [here](https://github.com/finitearth/promptolution/compare/v2.0.0...v2.0.1)

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ nav:
4747
- Home: index.md
4848
- Release Notes:
4949
- Overview: release-notes.md
50+
- v2.0.1: release-notes/v2.0.1.md
5051
- v2.0.0: release-notes/v2.0.0.md
5152
- v1.4.0: release-notes/v1.4.0.md
5253
- v1.3.2: release-notes/v1.3.2.md

pyproject.toml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,40 @@
11
[tool.poetry]
22
name = "promptolution"
3-
version = "2.0.0"
3+
version = "2.0.1"
44
description = "A framework for prompt optimization and a zoo of prompt optimization algorithms."
55
authors = ["Tom Zehle, Moritz Schlager, Timo Heiß"]
66
readme = "README.md"
77

88
[tool.poetry.dependencies]
9-
python = "^3.9"
10-
numpy = "^1.26.0"
9+
python = "^3.10"
10+
numpy = ">=1.26.0, <3.0.0"
1111
pandas = "^2.2.2"
1212
tqdm = "^4.66.5"
1313
scikit-learn = "^1.5.2"
1414
fastparquet = "^2024.11.0"
15+
openai = {version = "^1.0.0", optional = true}
16+
requests = {version = "^2.31.0", optional = true}
17+
vllm = {version = "^0.8.3", optional = true}
18+
transformers = {version = "^4.48.0", optional = true}
1519

20+
[tool.poetry.extras]
21+
api = ["openai", "requests"]
22+
vllm = ["vllm"]
23+
transformers = ["transformers"]
24+
25+
[tool.poetry.group.api]
26+
optional = true
1627
[tool.poetry.group.api.dependencies]
1728
openai = "^1.0.0"
1829
requests = "^2.31.0"
1930

31+
[tool.poetry.group.vllm]
32+
optional = true
2033
[tool.poetry.group.vllm.dependencies]
2134
vllm = "^0.8.3"
2235

36+
[tool.poetry.group.transformers]
37+
optional = true
2338
[tool.poetry.group.transformers.dependencies]
2439
transformers = "^4.48.0"
2540

src/promptolution

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit fa8ae08c7517783a26ed397b438fa2a468d78764

0 commit comments

Comments
 (0)