Skip to content

Commit cd9b6c4

Browse files
committed
Bump version to 3.0.8 and add py313 and py314 builds
1 parent 40f3113 commit cd9b6c4

14 files changed

Lines changed: 4091 additions & 3644 deletions

File tree

.github/workflows/release-package.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ on:
66
tags:
77
- 'v*.*.*'
88

9+
env:
10+
11+
PYTHONDONTWRITEBYTECODE: 1
12+
913
jobs:
1014

1115
release:
1216
runs-on: ubuntu-24.04
1317
steps:
1418

1519
- name: Checkout repository
16-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
1721
with:
1822
fetch-depth: 0
1923

@@ -48,18 +52,18 @@ jobs:
4852
steps:
4953

5054
- name: Checkout repository
51-
uses: actions/checkout@v4
55+
uses: actions/checkout@v6
5256

5357
- name: Install packages
54-
run: sudo apt-get install libgl1 libpoppler-cpp-dev libpoppler-cpp0v5 libzbar0 tesseract-ocr
58+
run: sudo apt-get install libgl1 libfuzzy-dev libpoppler-cpp-dev libpoppler-cpp0v5 libzbar0 tesseract-ocr libjpeg-dev
5559

56-
- name: Set up Python 3.12
57-
uses: actions/setup-python@v5
60+
- name: Set up Python 3.14
61+
uses: actions/setup-python@v6
5862
with:
59-
python-version: 3.12
63+
python-version: 3.14
6064

6165
- name: Install poetry
62-
run: python -m pip install poetry
66+
run: python -m pip install poetry poetry-plugin-bundle poetry-plugin-export
6367

6468
- name: Build docs
6569
run: make generate_docs
@@ -93,18 +97,18 @@ jobs:
9397
runs-on: ubuntu-24.04
9498
steps:
9599
- name: Checkout repository
96-
uses: actions/checkout@v4
100+
uses: actions/checkout@v6
97101

98102
- name: Install packages
99-
run: sudo apt-get install libgl1 libpoppler-cpp-dev libpoppler-cpp0v5 libzbar0 tesseract-ocr
103+
run: sudo apt-get install libgl1 libfuzzy-dev libpoppler-cpp-dev libpoppler-cpp0v5 libzbar0 tesseract-ocr libjpeg-dev
100104

101-
- name: Set up Python 3.12
102-
uses: actions/setup-python@v5
105+
- name: Set up Python 3.14
106+
uses: actions/setup-python@v6
103107
with:
104-
python-version: 3.12
108+
python-version: 3.14
105109

106110
- name: Install poetry
107-
run: python -m pip install poetry
111+
run: python -m pip install poetry poetry-plugin-bundle poetry-plugin-export
108112

109113
- name: Install dependencies
110114
run: poetry install -E all
@@ -113,7 +117,7 @@ jobs:
113117
run: poetry build
114118

115119
- name: Upload package artifact
116-
uses: actions/upload-artifact@v4
120+
uses: actions/upload-artifact@v7
117121
with:
118122
name: python-package-distributions
119123
path: dist/
@@ -127,7 +131,7 @@ jobs:
127131

128132
steps:
129133
- name: Download dist files
130-
uses: actions/download-artifact@v4
134+
uses: actions/download-artifact@v8
131135
with:
132136
name: python-package-distributions
133137
path: dist/

.github/workflows/test-package.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,30 @@ on:
88
pull_request:
99
branches: [ main ]
1010

11+
12+
env:
13+
14+
PYTHONDONTWRITEBYTECODE: 1
15+
1116
jobs:
1217

1318
docs:
1419
runs-on: ubuntu-24.04
1520
steps:
1621

1722
- name: Checkout repository
18-
uses: actions/checkout@v4
23+
uses: actions/checkout@v6
1924

2025
- name: Install packages
21-
run: sudo apt-get install libgl1 libpoppler-cpp-dev libpoppler-cpp0v5 libzbar0 tesseract-ocr
26+
run: sudo apt-get install libgl1 libfuzzy-dev libpoppler-cpp-dev libpoppler-cpp0v5 libzbar0 tesseract-ocr libjpeg-dev
2227

23-
- name: Set up Python 3.12
24-
uses: actions/setup-python@v5
28+
- name: Set up Python 3.14
29+
uses: actions/setup-python@v6
2530
with:
26-
python-version: 3.12
31+
python-version: 3.14
2732

2833
- name: Install poetry
29-
run: python -m pip install poetry
34+
run: python -m pip install poetry poetry-plugin-bundle poetry-plugin-export
3035

3136
- name: Build docs
3237
run: make generate_docs
@@ -37,23 +42,23 @@ jobs:
3742
strategy:
3843
fail-fast: false
3944
matrix:
40-
python-version: ["3.10", "3.11", "3.12"]
45+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
4146

4247
steps:
4348

4449
- name: Checkout repository
45-
uses: actions/checkout@v4
50+
uses: actions/checkout@v6
4651

4752
- name: Install packages
48-
run: sudo apt-get install libgl1 libpoppler-cpp-dev libpoppler-cpp0v5 libzbar0 tesseract-ocr
53+
run: sudo apt-get install libgl1 libfuzzy-dev libpoppler-cpp-dev libpoppler-cpp0v5 libzbar0 tesseract-ocr libjpeg-dev
4954

5055
- name: Set up Python ${{ matrix.python-version }}
51-
uses: actions/setup-python@v5
56+
uses: actions/setup-python@v6
5257
with:
5358
python-version: ${{ matrix.python-version }}
5459

5560
- name: Install poetry
56-
run: python -m pip install poetry
61+
run: python -m pip install poetry poetry-plugin-bundle poetry-plugin-export
5762

5863
- name: Install dependencies
5964
run: poetry install --with test -E all
@@ -81,9 +86,9 @@ jobs:
8186
if: always()
8287
run: cat error.log
8388

84-
- name: Upload package artifcat
85-
if: ${{ matrix.python-version == '3.12' }}
86-
uses: actions/upload-artifact@v4
89+
- name: Upload package artifact
90+
if: ${{ matrix.python-version == '3.14' }}
91+
uses: actions/upload-artifact@v7
8792
with:
8893
name: python-package-distributions
8994
path: dist/
@@ -97,7 +102,7 @@ jobs:
97102

98103
steps:
99104
- name: Download dist files
100-
uses: actions/download-artifact@v4
105+
uses: actions/download-artifact@v8
101106
with:
102107
name: python-package-distributions
103108
path: dist/

misp_modules/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def main():
355355
ioloop.IOLoop.instance().start()
356356
finally:
357357
ioloop.IOLoop.instance().stop()
358-
return 0
358+
return 0
359359

360360

361361
if __name__ == "__main__":

misp_modules/modules/expansion/docx_enrich.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import json
44

55
import docx
6-
import np
6+
import numpy as np
77

88
misperrors = {"error": "Error"}
99
mispattributes = {"input": ["attachment"], "output": ["freetext", "text"]}

misp_modules/modules/expansion/ocr_enrich.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import json
33

44
import cv2
5-
import np
5+
import numpy as np
66
import pytesseract
77

88
misperrors = {"error": "Error"}

misp_modules/modules/expansion/ods_enrich.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import logging
55

66
import ezodf
7-
import np
7+
import numpy as np
88
import pandas_ods_reader
99

1010
misperrors = {"error": "Error"}

misp_modules/modules/expansion/odt_enrich.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import io
33
import json
44

5-
import np
5+
import numpy as np
66
from ODTReader.odtreader import odtToText
77

88
misperrors = {"error": "Error"}

misp_modules/modules/expansion/pdf_enrich.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import io
33
import json
44

5-
import np
5+
import numpy as np
66
import pdftotext
77

88
misperrors = {"error": "Error"}

misp_modules/modules/expansion/pptx_enrich.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import io
33
import json
44

5-
import np
5+
import numpy as np
66
from pptx import Presentation
77

88
misperrors = {"error": "Error"}

misp_modules/modules/expansion/xlsx_enrich.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import io
33
import json
44

5-
import np
5+
import numpy as np
66
import pandas
77

88
misperrors = {"error": "Error"}

0 commit comments

Comments
 (0)