Skip to content

Commit 2317c94

Browse files
authored
dependency upgrade #63
2 parents 2470568 + 50508fd commit 2317c94

File tree

9 files changed

+97
-26
lines changed

9 files changed

+97
-26
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Changelog
22

3+
### V1.5.1 Changelog (September 7, 2025)
4+
- Update dependencies.
5+
- Make versioning standardized.
6+
- Minor fix to the readme.
7+
- Add bash script for requirement update based on pyproject.toml
8+
39
### V1.5.0 Changelog (July 29, 2025)
410
- Added 17 Knowledge Graph Embedding (KGE) aligner models.
511
- Major documentation update: improved structure, clarity, sectioning, etc.

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ keywords:
1717
- "Alignment"
1818
- "Python Library"
1919
license: "Apache-2.0"
20-
version: "1.5.0"
20+
version: "1.5.1"
2121
date-released: "2025-07-29"

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ git clone [email protected]:sciknoworg/OntoAligner.git
3333
pip install ./ontoaligner
3434
```
3535

36+
Next, verify the installation:
37+
38+
```python
39+
import ontoaligner
40+
41+
print(ontoaligner.__version__)
42+
```
43+
3644
## 📚 Documentation
3745

3846
Comprehensive documentation for OntoAligner, including detailed guides and examples, is available at **[ontoaligner.readthedocs.io](https://ontoaligner.readthedocs.io/)**. Below are some key tutorials with links to both the documentation and the corresponding example codes.

ontoaligner/VERSION

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

ontoaligner/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
__version__ = "1.5.0"
14+
from pathlib import Path
15+
16+
# Load version from VERSION file
17+
__version__ = (Path(__file__).parent / "VERSION").read_text().strip()
1518

1619
from .pipeline import OntoAlignerPipeline
1720
from ontoaligner import ontology, base, encoder, aligner, utils, postprocess

pyproject.toml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "OntoAligner"
3-
version = "1.5.0"
3+
version = "0.0.0"
44
description = "OntoAligner: A Comprehensive Modular and Robust Python Toolkit for Ontology Alignment."
55
authors = ["Hamed Babaei Giglou <[email protected]>"]
66
license="Apache-2.0"
@@ -10,7 +10,7 @@ repository = "https://github.com/sciknoworg/OntoAligner/"
1010
include = ["images/logo-with-background.png"]
1111

1212
[tool.poetry.dependencies]
13-
python = ">=3.10,<4.0.0"
13+
python = ">=3.10,<3.14"
1414
pathlib = "*"
1515
argparse = "*"
1616
numpy = "*"
@@ -20,14 +20,14 @@ scikit-learn = "*"
2020
tqdm = "*"
2121
owlready2 = "0.44"
2222
rdflib = "7.1.1"
23-
torch = "2.6.0"
23+
torch = "^2.8.0"
2424
transformers = "4.50.0"
2525
rapidfuzz = "3.5.2"
2626
openai = "1.56.0"
2727
rank_bm25 = "0.2.2"
28-
huggingface_hub="0.28.1"
29-
sentence-transformers = "4.1.0"
30-
bitsandbytes="0.45.1"
28+
huggingface-hub = "^0.34.4"
29+
sentence-transformers = "^5.1.0"
30+
bitsandbytes="^0.45.1"
3131
pykeen="1.11.1"
3232

3333
[tool.poetry.dev-dependencies]
@@ -38,6 +38,12 @@ wheel = "*"
3838
twine = "*"
3939
pytest = "*"
4040

41+
[tool.poetry-dynamic-versioning]
42+
enable = true
43+
style = "semver"
44+
source = "attr"
45+
attr = "ontoaligner.__version__"
46+
4147
[build-system]
42-
requires = ["poetry-core>=1.0.0"]
43-
build-backend = "poetry.core.masonry.api"
48+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.4.0"]
49+
build-backend = "poetry_dynamic_versioning.backend"

requirements.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
if [ ! -f pyproject.toml ]; then
6+
echo "pyproject.toml not found!"
7+
exit 1
8+
fi
9+
10+
echo "Generating clean requirements.txt with direct dependencies..."
11+
12+
> requirements.txt
13+
14+
awk '
15+
/^\[tool\.poetry\.dependencies\]/ {section="deps"; next}
16+
/^\[tool\.poetry\.dev-dependencies\]/ {section="dev"; next}
17+
/^\[/ {section=""; next}
18+
19+
section!="" && NF>0 {
20+
if ($1 ~ /^python/) next
21+
22+
gsub(/"/, "", $0)
23+
gsub(/ /, "", $0)
24+
25+
split($0, a, "=")
26+
pkg=a[1]
27+
ver=a[2]
28+
29+
# Leave hyphens as-is (do not convert to underscores)
30+
31+
if(ver=="" || ver=="*") {
32+
print pkg
33+
} else {
34+
# Remove ^ or ~ for pip-friendly pin
35+
gsub(/\^|~/, "", ver)
36+
# Add == only if not already present
37+
if(index(ver, "==")==0) {
38+
print pkg "==" ver
39+
} else {
40+
print pkg ver
41+
}
42+
}
43+
}' pyproject.toml > requirements.txt
44+
45+
echo "Done! requirements.txt created."

requirements.txt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@ argparse
33
numpy
44
pandas
55
datasets
6-
scikit_learn
7-
openai==1.56.0
6+
scikit-learn
7+
tqdm
88
owlready2==0.44
9-
rank_bm25==0.2.2
10-
rapidfuzz==3.5.2
119
rdflib==7.1.1
12-
sentence_transformers==4.1.0
13-
torch==2.6.0
14-
tqdm
10+
torch==2.8.0
1511
transformers==4.50.0
16-
huggingface_hub==0.28.1
12+
rapidfuzz==3.5.2
13+
openai==1.56.0
14+
rank_bm25==0.2.2
15+
huggingface-hub==0.34.4
16+
sentence-transformers==5.1.0
1717
bitsandbytes==0.45.1
18+
pykeen==1.11.1
19+
ruff
1820
pre-commit
1921
setuptools
2022
wheel
2123
twine
22-
ruff
23-
pykeen==1.11.1
24+
pytest

setup.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from setuptools import setup, find_packages
2+
import os
23

34
with open("README.md", encoding="utf-8") as f:
45
long_description = f.read()
56

67
setup(
78
name="OntoAligner",
8-
version="1.5.0",
9+
version=open(os.path.join(os.path.dirname(__file__), 'ontoaligner/VERSION')).read().strip(),
910
author="Hamed Babaei Giglou",
1011
author_email="[email protected]",
1112
description="OntoAligner: A Comprehensive Modular and Robust Python Toolkit for Ontology Alignment",
@@ -26,11 +27,11 @@
2627
"rank_bm25==0.2.2",
2728
"rapidfuzz==3.5.2",
2829
"rdflib==7.1.1",
29-
"sentence-transformers==4.1.0",
30-
"torch==2.6.0",
31-
"transformers==4.50.0",
32-
"huggingface_hub==0.28.1",
33-
"bitsandbytes==0.45.1",
30+
"sentence-transformers>=5.1.0,<6.0.0",
31+
"torch>=2.8.0,<3.0.0",
32+
"transformers>=4.56.0,<5.0.0",
33+
"huggingface-hub>=0.34.4,<1.0.0",
34+
"bitsandbytes>=0.45.1,<1.0.0",
3435
"pykeen==1.11.1"
3536
],
3637
classifiers=[

0 commit comments

Comments
 (0)