Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
3ee42aa7
Commit
3ee42aa7
authored
Sep 20, 2018
by
Roman Yurchak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pyodide_build in tests
parent
64ab6761
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
9 deletions
+7
-9
.circleci/config.yml
.circleci/config.yml
+3
-0
pyodide_build/pywasmcross.py
pyodide_build/pywasmcross.py
+0
-1
test/make_test_list.py
test/make_test_list.py
+1
-1
test/test_common.py
test/test_common.py
+3
-7
No files found.
.circleci/config.yml
View file @
3ee42aa7
...
...
@@ -63,6 +63,9 @@ jobs:
ccache -z
make
ccache -s
# install all relevant pyodide_build files to
# the virtualenv that will be persisted
pip install .
-
save_cache
:
paths
:
...
...
pyodide_build/pywasmcross.py
View file @
3ee42aa7
...
...
@@ -223,7 +223,6 @@ def make_parser(parser):
parser
.
add_argument
(
'--target'
,
type
=
str
,
nargs
=
'?'
,
default
=
common
.
TARGETPYTHON
,
help
=
'The path to the target Python installation'
)
parser
.
add_argument
(
'basename'
,
type
=
str
,
nargs
=
'?'
)
return
parser
...
...
test/make_test_list.py
View file @
3ee42aa7
...
...
@@ -7,7 +7,7 @@ from pathlib import Path
TEST_DIR
=
(
Path
(
__file__
).
parent
/
"cpython/build/3.
6.4
/host/lib/python3.7/test"
)
/
"cpython/build/3.
7.0
/host/lib/python3.7/test"
)
def
collect_tests
(
base_dir
):
...
...
test/test_common.py
View file @
3ee42aa7
import
pytest
import
os
from
pathlib
import
Path
import
sys
from
pyodide_build.common
import
parse_package
BASE_DIR
=
Path
(
__file__
).
parent
.
parent
PKG_DIR
=
BASE_DIR
/
'packages'
# TODO: remove once we have a proper Python package for common functions
sys
.
path
.
append
(
str
(
BASE_DIR
/
'tools'
))
import
common
# noqa
def
registered_packages
():
"""Returns a list of registred package names"""
...
...
@@ -23,7 +19,7 @@ def registered_packages_meta():
for each registed package
"""
packages
=
registered_packages
return
{
name
:
common
.
parse_package
(
PKG_DIR
/
name
/
'meta.yaml'
)
return
{
name
:
parse_package
(
PKG_DIR
/
name
/
'meta.yaml'
)
for
name
in
packages
}
...
...
@@ -34,7 +30,7 @@ UNSUPPORTED_PACKAGES = {'chrome': ['pandas'],
@
pytest
.
mark
.
parametrize
(
'name'
,
registered_packages
())
def
test_import
(
name
,
selenium_standalone
):
# check that we can parse the meta.yaml
meta
=
common
.
parse_package
(
PKG_DIR
/
name
/
'meta.yaml'
)
meta
=
parse_package
(
PKG_DIR
/
name
/
'meta.yaml'
)
if
name
in
UNSUPPORTED_PACKAGES
[
selenium_standalone
.
browser
]:
pytest
.
xfail
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment