Skip to content

Commit 18e337e

Browse files
authored
Merge pull request #130 from data-apis/add-hvplot
PR: Add hvplot
2 parents 7333c47 + 0fd7e2f commit 18e337e

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

k8/images/hvplot/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# syntax = docker/dockerfile:1.1.7-experimental
2+
ARG FROM
3+
FROM ${FROM}
4+
5+
WORKDIR /usr/src/app
6+
7+
RUN git clone \
8+
--branch v0.6.0 \
9+
--depth 1 \
10+
https://github.com/holoviz/hvplot.git \
11+
.
12+
13+
RUN --mount=type=cache,target=/root/.cache/pip \
14+
pip install -e .[tests] \
15+
pytest-custom_exit_code
16+
17+
RUN python -c "import hvplot"
18+
19+
COPY rename_tests.py .
20+
RUN python rename_tests.py
21+
22+
ENV PYTHON_RECORD_API_FROM_MODULES=hvplot
23+
CMD ["pytest", "--verbose", "hvplot/tests/", "--suppress-tests-failed-exit-code"]

k8/images/hvplot/rename_tests.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import glob
2+
import shutil
3+
import os.path as osp
4+
all_tests = glob.glob('hvplot/tests/test*')
5+
for test_file in all_tests:
6+
print(test_file)
7+
print(test_file.split('test'))
8+
*_, rest = test_file.split('test')
9+
new_path = osp.join('hvplot/tests', f'test_{rest}')
10+
print(rest)
11+
shutil.move(test_file, new_path)

k8/images/hvplot/version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0.2

0 commit comments

Comments
 (0)