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
076e9bb0
Commit
076e9bb0
authored
Aug 03, 2018
by
Roman Yurchak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address review comments
parent
f38e01e4
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
6 deletions
+43
-6
packages/kiwisolver/meta.yaml
packages/kiwisolver/meta.yaml
+4
-0
packages/matplotlib/meta.yaml
packages/matplotlib/meta.yaml
+4
-0
packages/numpy/meta.yaml
packages/numpy/meta.yaml
+5
-0
packages/pandas/meta.yaml
packages/pandas/meta.yaml
+4
-0
packages/pyparsing/meta.yaml
packages/pyparsing/meta.yaml
+4
-0
packages/python-dateutil/meta.yaml
packages/python-dateutil/meta.yaml
+4
-0
packages/pytz/meta.yaml
packages/pytz/meta.yaml
+4
-0
test/test_common.py
test/test_common.py
+14
-6
No files found.
packages/kiwisolver/meta.yaml
View file @
076e9bb0
...
@@ -5,3 +5,7 @@ package:
...
@@ -5,3 +5,7 @@ package:
source
:
source
:
url
:
https://files.pythonhosted.org/packages/31/60/494fcce70d60a598c32ee00e71542e52e27c978e5f8219fae0d4ac6e2864/kiwisolver-1.0.1.tar.gz
url
:
https://files.pythonhosted.org/packages/31/60/494fcce70d60a598c32ee00e71542e52e27c978e5f8219fae0d4ac6e2864/kiwisolver-1.0.1.tar.gz
md5
:
e2a1718b837e2cd001f7c06934616fcd
md5
:
e2a1718b837e2cd001f7c06934616fcd
test
:
imports
:
-
kiwisolver
packages/matplotlib/meta.yaml
View file @
076e9bb0
...
@@ -39,3 +39,7 @@ requirements:
...
@@ -39,3 +39,7 @@ requirements:
-
pyparsing
-
pyparsing
-
python-dateutil
-
python-dateutil
-
pytz
-
pytz
test
:
imports
:
-
matplotlib
packages/numpy/meta.yaml
View file @
076e9bb0
...
@@ -20,3 +20,8 @@ source:
...
@@ -20,3 +20,8 @@ source:
build
:
build
:
cflags
:
-include math.h -I../../config
cflags
:
-include math.h -I../../config
test
:
imports
:
-
numpy
packages/pandas/meta.yaml
View file @
076e9bb0
...
@@ -17,3 +17,7 @@ requirements:
...
@@ -17,3 +17,7 @@ requirements:
-
numpy
-
numpy
-
python-dateutil
-
python-dateutil
-
pytz
-
pytz
test
:
imports
:
-
pandas
packages/pyparsing/meta.yaml
View file @
076e9bb0
...
@@ -8,3 +8,7 @@ source:
...
@@ -8,3 +8,7 @@ source:
patches
:
patches
:
-
patches/dummy_threading.patch
-
patches/dummy_threading.patch
test
:
imports
:
-
pyparsing
packages/python-dateutil/meta.yaml
View file @
076e9bb0
...
@@ -8,3 +8,7 @@ source:
...
@@ -8,3 +8,7 @@ source:
patches
:
patches
:
-
patches/dummy-thread-lock.patch
-
patches/dummy-thread-lock.patch
test
:
imports
:
-
dateutil
packages/pytz/meta.yaml
View file @
076e9bb0
...
@@ -8,3 +8,7 @@ source:
...
@@ -8,3 +8,7 @@ source:
patches
:
patches
:
-
patches/dummy-threading.patch
-
patches/dummy-threading.patch
test
:
imports
:
-
pytz
test/test_common.py
View file @
076e9bb0
...
@@ -12,19 +12,27 @@ import common # noqa
...
@@ -12,19 +12,27 @@ import common # noqa
def
registered_packages
():
def
registered_packages
():
"""Returns a list of registred package names"""
packages
=
[
name
for
name
in
os
.
listdir
(
PKG_DIR
)
packages
=
[
name
for
name
in
os
.
listdir
(
PKG_DIR
)
if
(
PKG_DIR
/
name
).
is_dir
()]
if
(
PKG_DIR
/
name
).
is_dir
()]
return
packages
return
packages
def
registered_packages_meta
():
"""Returns a dictionary with the contents of `meta.yaml`
for each registed package
"""
packages
=
registered_packages
return
{
name
:
common
.
parse_package
(
PKG_DIR
/
name
/
'meta.yaml'
)
for
name
in
packages
}
@
pytest
.
mark
.
parametrize
(
'name'
,
registered_packages
())
@
pytest
.
mark
.
parametrize
(
'name'
,
registered_packages
())
def
test_meta
(
selenium
,
name
):
def
test_meta
(
selenium
,
name
):
# check that we can parse the meta.yaml
# check that we can parse the meta.yaml
meta
=
common
.
parse_package
(
PKG_DIR
/
name
/
'meta.yaml'
)
meta
=
common
.
parse_package
(
PKG_DIR
/
name
/
'meta.yaml'
)
if
'test'
in
meta
:
# check imports
if
'imports'
in
meta
[
'test'
]:
for
import_name
in
meta
.
get
(
'test'
,
{}).
get
(
'imports'
,
[]):
# check imports
selenium
.
load_package
(
import_name
)
for
import_name
in
meta
[
'test'
][
'imports'
]:
selenium
.
run
(
'import %s'
%
import_name
)
selenium
.
load_package
(
import_name
)
selenium
.
run
(
'import %s'
%
import_name
)
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