Skip to content

Commit

Permalink
pinned importlib-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
aschonfeld committed Mar 27, 2021
1 parent 1b90d0e commit 8d520e4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ include README.md
include CHANGES.md
include LICENSE
include requirements.txt
include requirements-test.txt
7 changes: 7 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
importlib-metadata<=3.7.3; python_version <= '3.6'
importlib-metadata; python_version != '3.6'
ipython
mock
pytest
pytest-cov
pytest-server-fixtures
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def run_tests(self):
"redis": ["redislite"],
"streamlit": ["streamlit"],
"swifter": ["swifter"],
"tests": ["ipython", "mock", "pytest", "pytest-cov", "pytest-server-fixtures"],
"tests": open("requirements-test.txt").read(),
},
classifiers=[
"Development Status :: 4 - Beta",
Expand Down
2 changes: 2 additions & 0 deletions tests/dtale/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def test_main(unittest):
df, pd.DataFrame([dict(a=1, b=2, c=3)]), "loader should load json"
)

pytest.importorskip("pyarrow")

with mock.patch("dtale.cli.script.show", mock.Mock()) as mock_show:
parquet_path = os.path.join(
os.path.dirname(__file__), "..", "data/test_df.parquet"
Expand Down
1 change: 1 addition & 0 deletions tests/dtale/test_show_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def json(self):

@pytest.mark.unit
def test_show_parquet():
pytest.importorskip("pyarrrow")
import dtale

parquet_path = os.path.join(os.path.dirname(__file__), "..", "data/test_df.parquet")
Expand Down

0 comments on commit 8d520e4

Please sign in to comment.