Commit Graph

455 Commits

Author SHA1 Message Date
Jan Max Meyer 93f184c6e5
Merge pull request #652 from rth/arbitrary-wheel-location
Support installing from URLs in micropip
2020-05-12 14:54:05 +02:00
Jan Max Meyer e8d2d82c1b
Merge pull request #645 from rth/partial-build
Support partial builds
2020-05-12 14:53:17 +02:00
Roman Yurchak 354f79aefd Fix typo in test 2020-05-12 14:11:22 +02:00
Roman Yurchak 21cd9fd366 Minor fix in tests 2020-05-12 12:19:15 +02:00
Roman Yurchak 4be718c852 Add snowballstemmer example file 2020-05-11 10:08:20 +02:00
Roman Yurchak ac68a30511 Supporty custom wheel locations in micropip 2020-05-11 09:51:14 +02:00
Roman Yurchak faee135865
Remove CORS proxy in micropip (#650) 2020-05-10 15:47:09 +02:00
Roman Yurchak 5ba82b81f9 Add mechanism to build a subset of packages 2020-05-09 01:28:44 +02:00
jcaesar 3f9da19e9a
allow micropip to function in a web worker (#632) 2020-04-15 10:28:59 -04:00
JP 2196c3d17c
add autograd and future packages (#609) 2020-02-03 12:50:53 +01:00
benabel 86b1e1e3ee Add package uncertainties (#571) 2019-11-25 13:00:46 -05:00
Sergio 9398f4083b Update versions of various python packages (#570) 2019-11-25 12:58:42 -05:00
Sergio abbcd2c428 Add xlrd python package (#566) 2019-11-21 12:25:12 -05:00
Teon L Brooks 55857ffcac Update MNE package (#460) 2019-10-27 09:21:01 +01:00
Jay Harris 0f452c4e44 Adds cytoolz (#539)
* Adds cytoolz

* Adds trailing newline

* Adds support for toolz and cytoolz

* Adds toolz (dependency of cytoolz)

* Updates import test
2019-10-22 12:07:34 -04:00
William Lachance 0ab5e8a67c More minor patches to python to accomodate Mac 2019-10-21 12:27:18 -04:00
Jay Harris 77e3326559 Adds regex package (#538) 2019-10-16 09:26:41 -04:00
Filip Š 72a410c5ff Fix unknown marker variable (#528)
* Fix unknown marker variable

fix-unknown-marker-variable

* Add tests for fix

* Add comments
2019-10-11 08:56:33 -04:00
Inés Añibarro 74b4461bda Feature/add statsmodels (#515)
* adding meta.yaml for statsmodels

* adding meta.yaml for statsmodels

* adding requirements in meta

* downgrading statsmodels to 0.9.0
2019-10-10 08:25:24 -04:00
Marc Abramowitz 620446455d Add NLTK: Natural Language Toolkit (#360) 2019-08-15 10:27:16 +03:00
Jan Max Meyer e1af6fe57c ENH Make local package sources (path) available for meta.yaml (#324) 2019-07-08 20:37:22 +02:00
Roman Yurchak 2cf8639973 MAINT Move package tests under packages/ dir (#471)
* Move package tests under the packages/ folder

* Fix tests
2019-06-19 14:26:08 -04:00
Roman Yurchak 6898c871f3
Add mmap module (#468) 2019-06-18 17:55:28 -07:00
Joost van Zwieten 020b7f7783 fix micropip.install packages with dependencies (#454)
The variable `req` in method `_PackageManager.add_requirement` is erroneously
reused for iterating over recursive requirements, if any.  This causes the
remaining statement to fail.  This patch renames the variable used for the
recursive requirements to `recurs_req`.

Fixes: #413
2019-06-04 10:00:55 -04:00
Michael Droettboom c3c2f10bc5
Loading wheels from PyPI (#147)
* Add micropip

* Remove CORS proxy for metadata

* Update docs

* Support loading a mixture of built-in and PyPI packages
2019-05-03 13:43:31 -04:00
Michael Droettboom c8db5b6433
Fix #401: Better error message when using "import js" (#404)
* Fix #401: Use PEP 562 to make "import js" work

* Add docs

* Fix handling of missing attributes

* Add CHANGELOG

* Fix iodide import
2019-05-01 14:56:30 -04:00
hexagon6 17dec0920e feature(package): add biopython (#391) 2019-04-24 11:08:47 -04:00
Marc Abramowitz 875df76b2f Add Jinja2 and MarkupSafe (#359)
```javascript
_ = languagePluginLoader.then(() => {
  // pyodide is now ready to use...
  pyodide.loadPackage('Jinja2').then(() => {
    pyodide.runPython(`
import jinja2

template = jinja2.Template('Hello {{ name }}!')
print(template.render(name='Zach'))
    `);
  });
});
```
2019-04-04 13:56:56 -04:00
Teon L Brooks befdfe781d [MRG] Include mne (#372)
* Include mne

* Update meta.yaml
2019-04-03 11:58:33 -04:00
Marc Abramowitz 9402c8bd08 Add html5lib 2019-03-20 23:41:47 -07:00
Michael Droettboom c9c47523b9
Merge pull request #339 from msabramo/pygments
Add pygments package
2019-03-18 08:45:19 -04:00
Michael Droettboom 8dd5c599f6
Merge pull request #341 from msabramo/beautifulsoup4
Add beautifulsoup4 (w/ soupsieve)
2019-03-18 08:44:55 -04:00
Michael Droettboom 29b1420601
Merge pull request #342 from msabramo/docutils
Add docutils
2019-03-18 08:44:43 -04:00
Marc Abramowitz c4e1a4140a Add beautifulsoup4 (w/ soupsieve)
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>]
```
2019-03-15 14:49:58 -07:00
Marc Abramowitz ea09d5004e Add pygments package 2019-03-15 10:10:59 -07:00
Marc Abramowitz d14eee1161 Add docutils
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>&lt;string&gt;</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>
```
2019-03-15 08:14:58 -07:00
Marc Abramowitz e92ba1c901 Add bleach
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 &lt;script&gt;and bad stuff&lt;/script&gt; in here.
```
2019-03-15 00:44:51 -07:00
Michael Droettboom 4e4162fbf4 Fix #327: Add sympy support 2019-02-28 18:38:49 -05:00
Michael Droettboom 2f3a727eab Add test for wasm_backend. Fix PDF test. 2019-02-21 18:26:42 -05:00
Michael Droettboom 68de9439cd Fix matplotlib wasm backend after undefined attribute behavior changed 2019-02-21 18:09:16 -05:00
Madhur Tandon 48880c1631 Align the Figure and Buttons Toolbar to the center.
- Made the ``matplotlib figure`` align to the center of the body of the text.
- The buttons toolbar is now aligned to the center of the plot.
2019-02-02 15:49:45 +05:30
Madhur Tandon a704d5a04b Implement the ABI number functionality.
Modified ``Makefile`` and ``packages/Makefile`` to get ``PYODIDE_PACKAGE_ABI`` from ``Makefile.envs``
Made ``checkABI`` as a public API function.
Modified ``file_packager.py`` to check for the compatible ABI number.
Defined ABI number with which pyodide is built in Makefile.envs
Accepted ABI number in ``file_packager.py`` as an argument.
Modified ``buildpkg.py`` and ``buildall.py`` to account for the new argument.
Added the corresponding ``test_different_ABI`` test.
2019-01-23 00:07:39 +05:30
Madhur Tandon 8bcb07b0f9 Stylize the matplotlib widgets toolbar
Add style to matplotlib widgets
Add Color Change on Hover Functionality
Apply System Fonts to buttons with text
2019-01-16 22:43:19 +05:30
Madhur Tandon 0eb7592179 Add ``Humor Sans`` font for ``xkcd`` plots. 2019-01-06 23:43:10 +05:30
Michael Droettboom 768f1268a3 Add matplotlib and numpy as dependencies 2018-12-20 12:42:56 -05:00
Roman Yurchak 7bcb3dacc2
Merge pull request #271 from darthtrevino/feature/add_networkx_package
Add NetworkX Package
2018-12-10 22:22:45 +01:00
Roman Yurchak 7710c2a321
Merge pull request #251 from mdboom/matplotlib-reduce-imports
Reduce the number of mandatory imports in matplotlib
2018-12-07 09:01:19 +01:00
Chris Trevino e6fe702205 Add test.imports to decorator's meta.yaml 2018-12-06 14:19:09 -08:00
Chris Trevino 3cfcd33c32 Remove testing imports from networkx 2018-12-06 14:06:27 -08:00
Chris Trevino 980f97469b Update networkx meta.yaml test.imports 2018-12-06 13:55:40 -08:00
Chris Trevino cfd73d5a81 Add networkx 2018-12-06 11:24:31 -08:00
Roman Yurchak 15c0228abc Update to scikit-learn 0.20.1 2018-12-04 20:37:15 +01:00
Roman Yurchak edda6eefcd More fixes for joblib 2018-12-04 20:37:15 +01:00
Roman Yurchak b93fcc47b8 Increment version numbers 2018-12-04 20:37:15 +01:00
Roman Yurchak ef993da92f Package scikit-learn 2018-12-04 20:37:15 +01:00
Roman Yurchak 66fe5feb2c Better refactoring 2018-11-15 13:24:27 +01:00
Roman Yurchak d6bc94ef53 Refactor scipy tests 2018-11-15 13:24:27 +01:00
Roman Yurchak ead14ef33e More fixes 2018-11-15 13:22:36 +01:00
Roman Yurchak ccdadc6e93 Move CLAPACK_WA to the root folder 2018-11-15 13:22:36 +01:00
Roman Yurchak 3747c6dbeb Patch mmap 2018-11-15 13:22:36 +01:00
Roman Yurchak 7358049baa Skip scipy.optimize._cobyla missing import 2018-11-15 13:22:36 +01:00
Roman Yurchak 3e1d6348a7 Statically link BLAS/LAPACK 2018-11-15 13:22:36 +01:00
Roman Yurchak 9482984268 More patches for ellip_harm_2.pyx that uses ctypes 2018-11-15 13:22:36 +01:00
Roman Yurchak 862f257423 Use dummy threading + re-enable C++ files that failed due to a gloabl
namespace
2018-11-15 13:22:36 +01:00
Roman Yurchak 858e6e0a6e Re-enable scipy.interpolate._interpolate 2018-11-15 13:22:36 +01:00
Roman Yurchak 56e8a1767a Increase FuncCastEmulation NUM_PARAMS further 2018-11-15 13:22:36 +01:00
Roman Yurchak 27319bc675 Fix build in Docker 2018-11-15 13:22:36 +01:00
Roman Yurchak 3b906e4b68 More patches 2018-11-15 13:22:36 +01:00
Roman Yurchak ad94658e68 Force malloc 2018-11-15 13:22:36 +01:00
Roman Yurchak 40605620f8 Use scipy 0.17.1 2018-11-15 13:22:36 +01:00
Michael Droettboom b071d37e1a Initial steps toward Scipy support 2018-11-15 13:22:36 +01:00
Michael Droettboom f0ff58e799 Back out sys.implementation.cache_tag = None 2018-11-09 08:06:39 -05:00
Michael Droettboom d7a85907cd Fix typo 2018-11-08 17:21:45 -05:00
Michael Droettboom 7620c226cc Reduce the number of mandatory imports 2018-11-08 16:45:14 -05:00
Michael Droettboom d2067f705b Fix handling of bytecode files 2018-11-08 15:03:30 -05:00
Roman Yurchak d9b590f518 Define build/skip_host meta.yaml option 2018-10-29 12:52:13 +01:00
Roman Yurchak 53cd70c35c Package joblib 2018-10-23 12:19:40 +02:00
Michael Droettboom 97829d86b5 Add another subpackage to matplotlib 2018-10-10 14:16:02 -04:00
Roman Yurchak 3b429e61f3 Address review comments 2018-09-21 18:10:48 +02:00
Roman Yurchak da6bbb3b20 Set PYTHONPATH in Makefile.envs to avoiding installing pyodide_build 2018-09-21 12:02:13 +02:00
Roman Yurchak 72293058b9 Converting tools scripts to a python package 2018-09-20 18:44:30 +02:00
Roman Yurchak 1a3166f0ab
Merge pull request #149 from mdboom/matplotlib-2.2.3
Update to Matplotlib 2.2.3
2018-09-11 09:56:56 +02:00
Roman Yurchak 88194ab2c7
Merge pull request #150 from mdboom/pandas-0.23.4
Update to pandas 0.23.4
2018-09-10 21:38:11 +02:00
Michael Droettboom 1d82388fb9 Update to pandas 0.23.4 2018-09-10 13:05:41 -04:00
Michael Droettboom 2adcc8cee9 Update to matplotlib 2.2.3 2018-09-10 13:03:40 -04:00
Michael Droettboom 01b27b37b9 Update to Numpy 1.15.1 2018-09-10 12:55:37 -04:00
Michael Droettboom 56562257ef Fix #71: Upgrade to Python 3.7 2018-09-06 10:56:33 -04:00
Roman Yurchak c9bc2f4473 Remove os.dup2 calls altogether 2018-09-03 14:20:31 +02:00
Roman Yurchak 4404274eef Package nose 2018-09-03 10:29:36 +02:00
Roman Yurchak 56597e2d5a Use NamedTemporaryFile in pytest 2018-09-03 10:29:36 +02:00
Roman Yurchak 5761705326 Remove six 2018-09-03 10:29:36 +02:00
Roman Yurchak c512d8237d Package setuptools 2018-09-03 10:29:36 +02:00
Roman Yurchak 42bdef2306 Package pytest dependencies 2018-09-03 10:29:36 +02:00
Roman Yurchak 58f73c3d79 Package pytest 2018-09-03 10:29:36 +02:00
Michael Droettboom 30e82a2d86 Add patch 2018-08-23 12:06:14 -04:00
Michael Droettboom b66d698414 Install to a directory, and use that, instead of just the build/lib... 2018-08-23 11:59:33 -04:00
Michael Droettboom 14f5e9b39d Fix #115: Forcibly use the local copy of blas and lapack 2018-08-20 22:44:26 -04:00
Roman Yurchak 076e9bb083 Address review comments 2018-08-07 08:24:22 +03:00
Roman Yurchak f38e01e475 Mechanism for testing imports 2018-08-07 08:24:22 +03:00
Roman Yurchak a24a7fe5f8 Add support for sha256 checksum 2018-08-06 18:03:51 +03:00
Roman Yurchak 4bd4cc3255 Avoid rm */build 2018-07-24 10:04:15 -07:00
Michael Droettboom d837883fbb Fix relative path 2018-06-22 16:52:55 -04:00
Michael Droettboom cb93956279 Use PYODIDE_ROOT instead of a relative path 2018-06-22 11:08:00 -04:00
Michael Droettboom 222c0248a1 Add documentation to new build tools.
Clean up argument parsing.
2018-06-22 10:22:00 -04:00
Michael Droettboom 17e1562ded MVP of a proper packaging system 2018-06-20 14:54:47 -04:00