From 36f0fb24efe475de1e96c752ded4b5ef7746215d Mon Sep 17 00:00:00 2001 From: Lakshmi-Bashyam Date: Wed, 9 Oct 2024 16:08:51 +0200 Subject: [PATCH 1/4] Update citation for new release --- CITATION.cff | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index c2ed27b..a513e94 100755 --- a/CITATION.cff +++ b/CITATION.cff @@ -10,11 +10,14 @@ authors: - family-names: Rajendram Bashyam given-names: Lakshmi affiliation: "ZBW - Leibniz Information Centre for Economics" + - family-names: Majal + given-names: Ghulam Mustafa + affiliation: "ZBW - Leibniz Information Centre for Economics" title: "stwfsapy (a library for matching labels of thesaurus concepts via finite-state automata)" abstract: "This library provides functionality to find the labels of SKOS thesaurus concepts in text. A deterministic finite automaton is constructed from the labels of the thesaurus concepts to perform the matching. In addition, a classifier is trained to score the matched concept occurrences." -version: 0.4.0 +version: 0.5.0 license: Apache-2.0 -date-released: 2021-10-18 +date-released: 2024-08-28S repository-code: "https://github.com/zbw/stwfsapy" contact: - name: "Automatization of subject indexing using methods from artificial intelligence (AutoSE)" From ade907e56c22c4b29cc9e3da573ce4351f04dff0 Mon Sep 17 00:00:00 2001 From: Lakshmi-Bashyam Date: Wed, 9 Oct 2024 16:38:00 +0200 Subject: [PATCH 2/4] Update requests for security vulnerability --- poetry.lock | 10 +++++----- pyproject.toml | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index 9a16653..e0e5340 100644 --- a/poetry.lock +++ b/poetry.lock @@ -663,13 +663,13 @@ networkx = ["networkx (>=2.0.0,<3.0.0)"] [[package]] name = "requests" -version = "2.31.0" +version = "2.32.3" description = "Python HTTP for Humans." optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "requests-2.31.0-py3-none-any.whl", hash = "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f"}, - {file = "requests-2.31.0.tar.gz", hash = "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"}, + {file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"}, + {file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"}, ] [package.dependencies] @@ -967,4 +967,4 @@ zstd = ["zstandard (>=0.18.0)"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "d8b60b0839c62bec1f5ae25021efe682c26966814f39c39953ae36494ab8915c" +content-hash = "3353deee9a043f8272d19e6a6f91d17ec6b7f905f7660af275f47f0957be44ba" diff --git a/pyproject.toml b/pyproject.toml index 31fd3ff..a2e30cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,7 @@ homepage = "https://github.com/zbw/stwfsapy" python = ">=3.9,<3.13" scikit-learn = ">0.24,<2.0" rdflib = "7.*" +requests = "^2.32.3" [tool.poetry.group.dev.dependencies] From 59969b95358a24d4286c9a51c2880a32eb5a6bdd Mon Sep 17 00:00:00 2001 From: Lakshmi-Bashyam Date: Wed, 9 Oct 2024 16:40:28 +0200 Subject: [PATCH 3/4] Update github actions to use python 3.9 --- .github/workflows/ci.yml | 4 ++-- .github/workflows/publish.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a1bd66..f590979 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - name: Checkout code uses: actions/checkout@v3 @@ -36,7 +36,7 @@ jobs: - name: Upload coverage uses: codecov/codecov-action@v3 - if: matrix.python-version == '3.8' + if: matrix.python-version == '3.9' - name: Look for security vulnerabilities in dependencies run: poetry run safety check --full-report diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2668893..0483620 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11"] steps: - name: Checkout repository uses: actions/checkout@v3 @@ -18,10 +18,10 @@ jobs: - name: Install poetry run: pipx install poetry - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.9 cache: 'poetry' - name: Install dependencies @@ -40,10 +40,10 @@ jobs: - name: Install poetry run: pipx install poetry - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.9 - name: Build and upload to PyPI env: From f475a0282a81521db8d83791a04f4dc95e7ee89a Mon Sep 17 00:00:00 2001 From: Lakshmi-Bashyam Date: Wed, 9 Oct 2024 17:37:39 +0200 Subject: [PATCH 4/4] Update version for patch release --- CITATION.cff | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index eb1afa0..bd36f5a 100755 --- a/CITATION.cff +++ b/CITATION.cff @@ -15,9 +15,9 @@ authors: affiliation: "ZBW - Leibniz Information Centre for Economics" title: "stwfsapy (a library for matching labels of thesaurus concepts via finite-state automata)" abstract: "This library provides functionality to find the labels of SKOS thesaurus concepts in text. A deterministic finite automaton is constructed from the labels of the thesaurus concepts to perform the matching. In addition, a classifier is trained to score the matched concept occurrences." -version: 0.5.0 +version: 0.5.1 license: Apache-2.0 -date-released: 2024-08-29 +date-released: 2024-10-09 repository-code: "https://github.com/zbw/stwfsapy" contact: - name: "Automatization of subject indexing using methods from artificial intelligence (AutoSE)" diff --git a/pyproject.toml b/pyproject.toml index a2e30cd..37074c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "stwfsapy" -version = "0.5.0" +version = "0.5.1" description = "A library for match labels of thesaurus concepts to text and assigning scores to found occurrences." authors = ["AutoSE "] license = "Apache-2.0"