- 10 May, 2019 4 commits
-
-
Boxiang Sun authored
-
Boxiang Sun authored
-
Boxiang Sun authored
The sqlite build failed on SlapOS, check later
-
Boxiang Sun authored
-
- 29 Mar, 2019 1 commit
-
-
Mike Lay authored
* Change *not* to *now*
-
- 26 Mar, 2019 4 commits
-
-
Michael Droettboom authored
-
Marc Abramowitz authored
The first URL from PyPI is often a platform-specific wheel, so it's better if we prefer to grab a source distribution that we can build with emscripten. Before: ``` $ bin/pyodide mkpkg lxml $ grep 'url: ' packages/lxml/meta.yaml url: https://files.pythonhosted.org/packages/28/32/951337aa3d14e58cae3f585e468e402141f5ac3728589eccca765c4e17ce/lxml-4.3.2-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl ``` After: ``` $ bin/pyodide mkpkg lxml $ grep 'url: ' packages/lxml/meta.yaml url: https://files.pythonhosted.org/packages/65/6f/d070609b415f4a24bf36b7deb94bfd791e8d023c0dbf4233659af53fe0ab/lxml-4.3.2.tar.gz ``` Closes: #363.
-
Farooq Abdul Rehman authored
-
Marc Abramowitz authored
* Enable building sqlite3 into cpython
-
- 22 Mar, 2019 2 commits
-
-
Michael Droettboom authored
CHANGELOG.md: soupseive => soupsieve
-
Marc Abramowitz authored
-
- 21 Mar, 2019 10 commits
-
-
Michael Droettboom authored
-
Michael Droettboom authored
-
Michael Droettboom authored
Partially address #338: Provide simple method for interactive testing
-
Michael Droettboom authored
Use JS multi-line string for Python code
-
Michael Droettboom authored
Allow configuring run_docker ports using env vars
-
Marc Abramowitz authored
so that the Python code looks nicer and is less error-prone to edit.
-
Michael Droettboom authored
Add html5lib
-
Michael Droettboom authored
-
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 4 commits
-
-
Michael Droettboom authored
-
Michael Droettboom authored
-
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 7 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
This adds a basic repl-like console webpage that can be used for testing of the local pyodide install. It removes the broken examples based on standalone iodide.
-
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 2 commits
-
-
Michael Droettboom authored
-
Michael Droettboom authored
-