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
cfd73d5a
Commit
cfd73d5a
authored
Dec 06, 2018
by
Chris Trevino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add networkx
parent
fd6e0bf4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
0 deletions
+49
-0
packages/decorator/meta.yaml
packages/decorator/meta.yaml
+7
-0
packages/networkx/meta.yaml
packages/networkx/meta.yaml
+16
-0
test/packages/test_networkx.py
test/packages/test_networkx.py
+26
-0
No files found.
packages/decorator/meta.yaml
0 → 100644
View file @
cfd73d5a
package
:
name
:
decorator
version
:
4.3.0
source
:
url
:
https://files.pythonhosted.org/packages/6f/24/15a229626c775aae5806312f6bf1e2a73785be3402c0acdec5dbddd8c11e/decorator-4.3.0.tar.gz
sha256
:
c39efa13fbdeb4506c476c9b3babf6a718da943dab7811c206005a4a956c080c
packages/networkx/meta.yaml
0 → 100644
View file @
cfd73d5a
package
:
name
:
networkx
version
:
'
2.2'
source
:
url
:
https://files.pythonhosted.org/packages/f3/f4/7e20ef40b118478191cec0b58c3192f822cace858c19505c7670961b76b2/networkx-2.2.zip
sha256
:
45e56f7ab6fe81652fb4bc9f44faddb0e9025f469f602df14e3b2551c2ea5c8b
requirements
:
run
:
-
decorator
-
setuptools
test
:
imports
:
-
networkx
\ No newline at end of file
test/packages/test_networkx.py
0 → 100644
View file @
cfd73d5a
from
textwrap
import
dedent
import
pytest
def
test_networkx_basicgraph
(
selenium_standalone
,
request
):
selenium
=
selenium_standalone
if
selenium
.
browser
==
'chrome'
:
request
.
applymarker
(
pytest
.
mark
.
xfail
(
run
=
False
,
reason
=
'chrome not supported'
))
selenium
.
load_package
([
'networkx'
,
'numpy'
])
cmd
=
dedent
(
r"""
import networkx as nx
from numpy.testing import assert_equal
G = nx.Graph()
G.add_nodes_from([1,2,3])
G.add_edges_from([(1,2), (1,3)])
assert_equal(3, G.number_of_nodes())
assert_equal(2, G.number_of_edges())
"""
)
selenium
.
run
(
cmd
)
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