Skip to content

Commit e5fbdbd

Browse files
authored
Merge pull request #262 from PrimozGodec/temp-fix-lxml
[FIX] Temporarily skip installing yfinace and pandas_datareader for MacOS
2 parents a752b99 + 780fbf7 commit e5fbdbd

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import unittest
2+
from datetime import datetime
3+
4+
5+
class TestReintroduceYahoo(unittest.TestCase):
6+
def test_time_bomb(self):
7+
"""
8+
When this test start to fail, check if there are already ARM wheels for
9+
LXML library for Python 3.9 and 3.10. If they exist revert commit that part
10+
of it is also this test.
11+
"""
12+
self.assertLess(datetime.now(), datetime(2024, 1, 1), "Happy new year")
13+
14+
15+
if __name__ == "__main__":
16+
unittest.main()

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@
6666
'statsmodels>=0.13.0',
6767
'python-dateutil',
6868
'pandas', # statsmodels requires this but doesn't have it in dependencies?
69-
'pandas_datareader',
69+
'pandas_datareader; sys_platform!="darwin"',
7070
'numpy',
7171
'scipy>=1.9.2',
7272
'more-itertools',
7373
# required to get current timezone
7474
# adding it does not hurt, Pandas have it as a dependency
7575
'python-dateutil',
76-
'yfinance',
76+
'yfinance; sys_platform!="darwin"',
7777
'pyqtgraph>=0.13.1',
7878
],
7979
extras_require={

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ deps =
2626
oldest: orange-widget-base==4.18.0
2727
oldest: orange-canvas-core==0.1.27
2828
oldest: scipy==1.9.2
29+
oldest: pandas==1.4.0
2930
latest: https://github.com/biolab/orange3/archive/refs/heads/master.zip#egg=orange3
3031
latest: https://github.com/biolab/orange-canvas-core/archive/refs/heads/master.zip#egg=orange-canvas-core
3132
latest: https://github.com/biolab/orange-widget-base/archive/refs/heads/master.zip#egg=orange-widget-base

0 commit comments

Comments
 (0)