- 21 Mar, 2019 4 commits
-
-
Michael Droettboom authored
Allow configuring run_docker ports using env vars
-
Michael Droettboom authored
Add html5lib
-
Marc Abramowitz authored
This allows changing various `run_docker` settings using env vars. The primary one that I wanted was the ability to easily set the system port used so that I could run two pyodide containers. Before when running a second instance of `./run_docker`: ``` $ ./run_docker docker: Error response from daemon: driver failed programming external connectivity on endpoint quirky_banach (45f5dd12606ac5d732a311ef3f3c378e359bbbd406a1c65915a300ec413eaf25): Bind for 0.0.0.0:8000 failed: port is already allocated. ``` With this PR: ``` $ PYODIDE_SYSTEM_PORT=8001 ./run_docker root@29308e720856:/src# ``` I also broke the `docker run` command on to multiple lines (which I find more readable; hopefully others agree) and added an `exec` to the command, so the shell process on the host doesn't have to hang around waiting for the container to exit.
-
Marc Abramowitz authored
-
- 19 Mar, 2019 2 commits
-
-
Michael Droettboom authored
Link to @dgym
-
Marc Abramowitz authored
-
- 18 Mar, 2019 3 commits
-
-
Michael Droettboom authored
Add pygments package
-
Michael Droettboom authored
Add beautifulsoup4 (w/ soupsieve)
-
Michael Droettboom authored
Add docutils
-
- 15 Mar, 2019 6 commits
-
-
Marc Abramowitz authored
Example: If you do: ```js languagePluginLoader.then(() => { // pyodide is now ready to use... pyodide.loadPackage('beautifulsoup4').then(() => { pyodide.runPython(` text = """ <div> <!-- These are animals --> <p class="a">Cat</p> <p class="b">Dog</p> <p class="c">Mouse</p> </div> """ from bs4 import BeautifulSoup import soupsieve soup = BeautifulSoup(text, 'html.parser') print(soup.select('p:is(.a, .c)')) `); }); }); ``` then the output is: ``` [<p class="a">Cat</p>, <p class="c">Mouse</p>] ```
-
Marc Abramowitz authored
-
Michael Droettboom authored
Add bleach
-
Marc Abramowitz authored
Example: If you do this: ```js languagePluginLoader.then(() => { // pyodide is now ready to use... pyodide.loadPackage('docutils').then(() => { pyodide.runPython(` import docutils.core print(docutils.core.publish_string("\`Python <http://www.python.org/>\`_ is **cool**!", writer_name='html5', settings_overrides={'embed_stylesheet': False}).decode('utf-8')) `); }); }); ``` then the output is: ``` <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta charset="utf-8"/> <meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" /> <title><string></title> <link rel="stylesheet" href="/lib/python3.7/site-packages/docutils/writers/html5_polyglot/minimal.css" type="text/css" /> <link rel="stylesheet" href="/lib/python3.7/site-packages/docutils/writers/html5_polyglot/plain.css" type="text/css" /> </head> <body> <div class="document"> <p><a class="reference external" href="http://www.python.org/">Python</a> is <strong>cool</strong>!</p> </div> </body> </html> ```
-
Michael Droettboom authored
-
Marc Abramowitz authored
for sanitizing HTML. Example: ```js languagePluginLoader.then(() => { // pyodide is now ready to use... pyodide.loadPackage('bleach').then(() => { pyodide.runPython(` import bleach print(bleach.clean('There is good stuff <script>and bad stuff</script> in here.')) `); }); }); ``` leads to the output: ``` There is good stuff <script>and bad stuff</script> in here. ```
-
- 14 Mar, 2019 3 commits
-
-
Michael Droettboom authored
Automatically rebuild packages if any patches or extra files change
-
Michael Droettboom authored
-
Michael Droettboom authored
Clean up the downloaded file if it's corrupted
-
- 13 Mar, 2019 4 commits
-
-
Michael Droettboom authored
-
Michael Droettboom authored
-
Michael Droettboom authored
Fix #332: Make pyproxy.apply work
-
Michael Droettboom authored
-
- 12 Mar, 2019 3 commits
-
-
Michael Droettboom authored
-
Michael Droettboom authored
-
Roman Yurchak authored
Add a mkpkg tool to make new packages.
-
- 01 Mar, 2019 1 commit
-
-
Michael Droettboom authored
Fix #327: Add sympy support
-
- 28 Feb, 2019 4 commits
-
-
Michael Droettboom authored
-
Michael Droettboom authored
-
Michael Droettboom authored
Build the _decimal C module.
-
Michael Droettboom authored
Fix #316: Add convenience function for converting from nested Arrays
-
- 25 Feb, 2019 2 commits
-
-
Michael Droettboom authored
-
Michael Droettboom authored
-
- 22 Feb, 2019 2 commits
-
-
Michael Droettboom authored
-
Michael Droettboom authored
Fix matplotlib wasm backend after undefined attribute behavior changed
-
- 21 Feb, 2019 6 commits
-
-
Michael Droettboom authored
-
Michael Droettboom authored
-
Michael Droettboom authored
-
Michael Droettboom authored
-
Michael Droettboom authored
Handle numpy scalars in python2js_buffer
-
Michael Droettboom authored
-