Skip to content

Commit

Permalink
Merge pull request #6816 from ales-erjavec/revert-6737
Browse files Browse the repository at this point in the history
[MNT] Revert #6737
  • Loading branch information
markotoplak authored May 31, 2024
2 parents 97490a7 + 0b7ca11 commit 8831a57
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 138 deletions.
9 changes: 0 additions & 9 deletions Orange/data/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@
from Orange.util import flatten


try:
# temporary fix for file not closed issue until openpyxl prepare release
from Orange.misc.openpyxl_patch import read_worksheets

openpyxl.reader.excel.ExcelReader.read_worksheets = read_worksheets
except: # pylint: disable=bare-except
pass


# Support values longer than 128K (i.e. text contents features)
csv.field_size_limit(100*1024*1024)

Expand Down
9 changes: 0 additions & 9 deletions Orange/misc/_distmatrix_xlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@
import openpyxl


try:
# temporary fix for file not closed issue until openpyxl prepare release
from Orange.misc.openpyxl_patch import read_worksheets

openpyxl.reader.excel.ExcelReader.read_worksheets = read_worksheets
except: # pylint: disable=bare-except
pass


def read_matrix(filename, sheet_name=None):
sheet = _get_sheet(filename, sheet_name)
cells, empty_cols, empty_rows = _non_empty_cells(sheet)
Expand Down
100 changes: 0 additions & 100 deletions Orange/misc/openpyxl_patch.py

This file was deleted.

17 changes: 0 additions & 17 deletions Orange/misc/tests/test_openpyxl_patch.py

This file was deleted.

2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ requirements:
- keyrings.alt
- networkx
- numpy >=1.20.0,<2
- openpyxl
- openpyxl >=3.1.3
- openTSNE >=0.6.1,!=0.7.0
- pandas >=1.4.0,!=1.5.0,!=2.0.0
- packaging
Expand Down
2 changes: 1 addition & 1 deletion requirements-core.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keyring
keyrings.alt # for alternative keyring implementations
networkx
numpy>=1.20.0,<2
openpyxl
openpyxl>=3.1.3
openTSNE>=0.6.1,!=0.7.0 # 0.7.0 segfaults
packaging
pandas>=1.4.0,!=1.5.0,!=2.0.0
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ deps =
# oldest: keyrings.alt
# oldest: networkx
oldest: numpy==1.20
# oldest: openpyxl
oldest: openpyxl==3.1.3
oldest: openTSNE==0.6.1
oldest: pandas==1.4.0
oldest: pip==19.3
Expand Down

0 comments on commit 8831a57

Please sign in to comment.