Commit Graph

297 Commits

Author SHA1 Message Date
Min RK
a1458ce8fc Merge pull request #1047 from jdfreder/webpack
use webpack
2016-02-24 08:52:35 +01:00
Jonathan Frederic
252b0fcefb Update setupbase to match build output 2016-02-22 07:41:02 -08:00
Jonathan Frederic
b0fb5df3ad Add source maps, chunks, and remove previous build tool 2016-02-22 07:30:56 -08:00
Jonathan Frederic
c3e4def82c Add JS building step to setupbase 2016-02-22 07:30:56 -08:00
Min RK
b0772dd3c7 include SVG mathjax output
we now ship all mathjax output formats

We still strip down to a single font (STIX-Web)
2016-02-22 11:24:09 +01:00
Min RK
204d907df7 distutils.log has no warning
overzealous find/replace for deprecated `logging.warn`.
`distutils.log.warn` is not deprecated and their is no `distutils.log.warning`.
2016-02-22 10:04:17 +01:00
Diego Mesa
482ed8a5a3 updating log.warn to log.warning 2016-02-12 13:53:21 -08:00
Min RK
bb6368a545 package data may be computed prior to components being fetched
trust that it will be re-run after npm/bower
2016-02-06 21:14:13 +01:00
Min RK
b3cab90e9a only scrub SVG output
which is the largest

rather than white-listing HTML-CSS.
This means the various other renderers (perhaps most importantly, MML) are available, not just HTML-CSS

This increases the size of a notebook install by ~800k/19MB or 5%.

Alternately, we could *only* add MML, which would have a negligible affect on install size.
2016-02-06 20:49:11 +01:00
Matthias Bussonnier
3f921ff4d9 Simplify how to pass noprogress 2016-01-26 15:10:37 -08:00
Matthias Bussonnier
8339f40ca2 Apparenlty deactivating progress bar on npm make install much faster...
https://twitter.com/gavinjoyce/status/691773956144119808
https://news.ycombinator.com/item?id=10974929
2016-01-26 14:59:58 -08:00
Jonathan Frederic
e9406edc2d Merge pull request #550 from minrk/shell-only-windows
fix subcommand quoting on Windows in setup.py
2015-10-12 14:17:38 -07:00
Min RK
95f12eb620 include typeahead with installation 2015-10-09 14:23:37 +02:00
Min RK
dd6211f42e fix subcommand running on Windows 2015-10-08 11:35:35 +02:00
Min RK
f175b2391a shell=True wants a string cmd 2015-09-07 12:12:24 +02:00
Min RK
f1396457fb run commands with shell=True
appears to be needed on Windows,
and should be harmless elsewhere.
2015-09-07 12:11:45 +02:00
Matthias Bussonnier
2d5d548d79 Revert "Use NPM, node ES5, and browserify." 2015-08-27 09:00:15 +02:00
Steven Silvester
307d9ee49c Include components in setup base 2015-08-26 14:11:27 -07:00
Jonathan Frederic
b689700910 Only build once, via npm postinstall 2015-08-26 14:06:14 -07:00
Jonathan Frederic
b2bf69f6d7 fix jsversion command 2015-08-26 14:06:11 -07:00
Jonathan Frederic
a719e19b39 Add script to amd-ify the commonjs code,
(backwards compat. and dynamic loading)
2015-08-26 14:06:11 -07:00
Jonathan Frederic
72bdf877fd Fix package check 2015-08-26 14:06:10 -07:00
Kyle Kelley
8f0ea42dd4 Allow for graceful failure by finishing string. ;) 2015-08-26 14:05:14 -07:00
jdfreder
b88fa0163a Use npm for js and less builds 2015-08-26 14:05:14 -07:00
Matthias Bussonnier
80f20cb1d6 include mathjax extensions that are dynamically loaded
Allow to render binomial and other things:

Closes ipython/ipython#8754
2015-08-24 16:13:43 +02:00
Min RK
dee660757d install mathjax safe extension 2015-08-20 21:10:20 -07:00
Min RK
659e1df77e install MathJax safe config
MathJax safe mode is enabled, but a full (non-dev) install omits the Safe.js config file
2015-08-19 22:01:39 -07:00
Min RK
a394579b84 require js/css targets to exist
don't ignore failure to rebuild if the targets are missing

this could happen for users running from git without npm
2015-07-26 12:27:24 -07:00
Min RK
c41df91b10 remove gulp
Follow-suit from ipywidgets and
build js/css with Python/js scripts instead:

e.g.

- `npm run build`
- `setup.py js css`
2015-07-21 16:34:44 -07:00
Jonathan Frederic
5c18ecb151 Merge pull request #102 from Carreau/no-global
Start working on removing global JS IPython
2015-06-01 13:20:50 -07:00
Min RK
3cf959734d prevent installation if main.min.js are missing 2015-05-22 16:07:03 -07:00
Min RK
d54d7904ee trigger gulp js as distutils step
ensures minified js is installed
2015-05-22 16:07:03 -07:00
Matthias Bussonnier
967d20b87f fix Jupyter.version patching in JS 2015-05-21 10:07:57 -04:00
Min RK
d71a59cc9f s/jupyter_notebook/notebook 2015-05-14 10:49:28 -07:00
Min RK
b1562cd21a properly update package_data after components changes
build_py wasn't getting updated,
causing it to leave out components fetched during setup
2015-04-22 16:19:13 -07:00
Min RK
1259a04fc6 Merge pull request #17 from Carreau/gulp-css
use gulp to build css
2015-04-21 15:37:14 -07:00
Matthias Bussonnier
824c45f6a2 build sourcemap and tweek setup.py css to use gulp 2015-04-21 15:37:14 -07:00
Min RK
e520a89e54 install mathjax js/css
restrict to HTML-CSS + STIX-Web for size
2015-04-21 15:37:12 -07:00
Thomas Kluyver
21e945121c Need to specify None explicitly for utime on Python 2 2015-04-21 15:37:10 -07:00
Thomas Kluyver
afa7cd9a21 Add comment about origin of which() 2015-04-21 15:37:09 -07:00
Thomas Kluyver
314fcf163f Include a copy of which() for setup.py 2015-04-21 15:37:09 -07:00
Min RK
f9cb268e0d add setup.py js
from JupyterHub

- fetches node tools locally with npm
- runs bower
- setup.py css uses local less as well,
  so no need to `npm install -g` anything.
2015-04-21 15:37:09 -07:00
Min RK
b9e241b8c1 remove unused IPython code from setup, setupbase 2015-04-21 15:37:06 -07:00
Min RK
8c683b8a0e remove nbconvert 2015-04-09 21:42:46 -07:00
Min RK
1c20a2baae remove ipython_parallel 2015-04-09 14:31:00 -07:00
Min RK
4a97b2a410 jupyter_notebook path in setup base, gitignore 2015-04-08 23:04:20 -07:00
Min RK
a618935010 kernel.resources isn't a package 2015-03-27 17:46:26 -07:00
Min RK
8cc3ebe724 remove nbconvert from package data 2015-03-26 11:21:43 -07:00
Thomas Kluyver
3da1ec7d36 Shim IPython.nbformat so tests pass again 2015-03-25 17:30:14 -07:00
Min RK
62c0ab05b6 remove bundled profiles
and move README_STARTUP to core/profile
2015-03-25 10:23:19 -07:00
Thomas Kluyver
54195eaf34 Remove Qt console package_data from setup
We should remember this when the ipython_qtconsole package gets its own
setup.

Closes gh-8140
2015-03-25 09:53:53 -07:00
MinRK
f0f9cdf3ae remove non-setuptools dependency checks 2015-03-23 11:22:10 -07:00
MinRK
3f93c80d7e remove pexpect from external
make it a dependency on non-Windows
2015-03-23 11:22:09 -07:00
MinRK
e34f926e0e remove appnope from external
make it a dependency on OS X
2015-03-23 11:22:09 -07:00
Thomas Kluyver
8c6b5ea4dd Merge pull request #7632 from minrk/terminado-dep
add terminado as [notebook] dep on non-Windows
2015-02-03 14:28:45 -08:00
Min RK
f979c3c48a add terminado to wheel dependencies 2015-02-03 10:56:26 -08:00
Min RK
01de88687d verify that setup.py jsversion did something 2015-01-30 14:19:25 -08:00
Min RK
67124b4fcc remove strict arg from css_js_prerelease 2015-01-09 14:02:39 -08:00
Min RK
cb0c95575e friendlier error messages when invoke/lessc are missing
and not needed.
2014-12-27 00:16:28 -08:00
Thomas Kluyver
c1ebfd1f3a Add kernel resources directory to package_data 2014-12-13 17:46:25 -08:00
Min RK
46f2ebf1de Remove highlight.js
from components and setupbase
2014-11-14 14:54:50 -08:00
Thomas Kluyver
6b85afb077 Add es6-promise to package_data 2014-11-13 11:59:15 -08:00
Thomas Kluyver
b80be59fef Update some docstrings 2014-11-11 10:45:18 -08:00
Thomas Kluyver
37a2a8a6e5 Install on Windows without using setuptools
This creates batch files, with a .cmd extension, which can launch
IPython from 'ipython' at a command line, to replace the .exe files
created by setuptools.

This makes repeated installations much quicker on Windows.
2014-11-11 10:38:05 -08:00
MinRK
fd17ea8078 Use Draft4 JSON Schema for v4 2014-11-01 16:40:59 -07:00
Kyle Kelley
1dcf9c325d Add term.js to package data for installation. 2014-10-25 17:15:36 -07:00
Matthias Bussonnier
d269912958 Merge pull request #6110 from minrk/binarycomm
support binary buffers in comm messages
2014-10-19 11:03:24 +02:00
MinRK
41cfd4f5cf use invoke instead of fabric
it's the descendant of the part of fabric we actually use,
it doesn't have complex compiled dependencies like fabric,
and it works on Python 3.
2014-10-15 16:53:07 -07:00
MinRK
ec769b6ef8 install text-encoding polyfill 2014-10-15 12:23:32 -07:00
MinRK
1a4b795870 Use Draft4 JSON Schema for both v3 and v4
no longer need jsonpointer
2014-10-08 12:33:31 -07:00
Matthias Bussonnier
be4b180b03 cast unicode to allow json dump 2014-09-29 16:11:19 +02:00
Matthias BUSSONNIER
8b20aee32e use momentjs for nice dates 2014-07-30 23:37:07 +02:00
Thomas Spura
fadeeb0275 fontawesome-4 renamed font folder to fonts 2014-07-27 14:52:04 +02:00
MinRK
ff98a86f2d check_call with list, instead of shell=True 2014-07-23 17:03:14 -07:00
MinRK
168d619726 fab css checks whether it needs to do anything
makefile-style

adds `force` arg to override, minify implies force.
2014-07-23 16:59:44 -07:00
MinRK
b1882ca9e5 add strict arg to css_js setup decorator
and attempt to build css on build_by (install)
2014-07-23 16:59:43 -07:00
MinRK
0eae787b58 don’t store minified css in development
- setup css defaults to non-minified css
- build minified css and jsversion on sdist/wheel
2014-07-23 14:19:27 -07:00
MinRK
11bcc6e1e5 merge separate input/expected notebooks for execute preprocessor 2014-06-26 16:33:13 -07:00
Julia Evans
06adb299c0 Oops, preprocessor*s* 2014-06-26 13:21:28 -07:00
Julia Evans
4fcf0df53a Add preprocessor test inputs to find_package_data() 2014-06-26 13:21:28 -07:00
Thomas Kluyver
556257a66b Fix bootstrap location in package_data 2014-06-10 13:00:47 -07:00
Thomas Kluyver
1e9413a293 Merge pull request #5658 from jhamrick/nbvalidate
Improve nbformat json validator
2014-04-25 13:51:49 -07:00
MinRK
b563aaf948 add ipython[terminal] dependency group
for pyreadline on Windows.

gnureadline is still a dependency on OS X

pyreadline will *not* be installed by default anymore.
There will no longer be any checks for dependencies in entry points.
2014-04-21 11:42:03 -07:00
Matthias BUSSONNIER
2d43dcdc7f mark v3.withref.json as part of package 2014-04-19 14:59:05 +02:00
MinRK
5b75a7992d remove inappropriate wheel tag override
I misunderstood how these tags are interpreted.
We do not want `py2` and `py3`, we want `py27` and `py33`,
which indicate >= matching in the minor version.

This means we should build wheels with the minimum supported Python.
2014-04-02 12:45:29 -07:00
cgohlke
8644bf3d84 Install jquery-ui theme images 2014-03-25 22:20:18 -07:00
cgohlke
248695cb8e Install ui-bg_glass_75_e6e6e6_1x400.png 2014-03-25 21:52:09 -07:00
MinRK
710818c526 do not install less sources
only their css build results are used after install
2014-03-14 15:24:05 -07:00
MinRK
07b8b93e96 install bootstrap-tour css 2014-03-13 14:30:32 -07:00
Thomas Kluyver
80af3b4cfb Merge pull request #4802 from ivanov/ui-docs
Tour of the notebook UI (was UI elements inline with highlighting)
2014-03-07 12:09:32 -08:00
MinRK
3588fe40a9 Merge Security Pull Request: google-caja
Adds HTML sanitization.

The basics:

- untrusted HTML is always sanitized, with no warning
  (there is console logging for changes made)
- markdown is always treated as untrusted
- no warnings for simply excluded output (e.g. Javascript)
- CSS tags and attributes are always stripped from untrusted HTML
- never check whether HTML is "safe," only sanitize
- add 'Trust notebook' to File menu
2014-03-04 17:35:55 -08:00
Thomas Kluyver
9a87d9a0f2 Fix wheel dependency specification 2014-03-04 09:49:40 -08:00
MinRK
156207ab41 don't forget to install caja 2014-03-03 16:10:21 -08:00
Thomas Kluyver
78943c7258 Add mock to requirements for testing 2014-03-03 12:30:47 -08:00
MinRK
31804fa3cb install bootstrap-tour component 2014-02-28 20:04:22 -08:00
MinRK
9417c4071d only depend on readline package in CPython
shouldn't try to install it on PyPy

not sure about PyReadline on PyPy on Windows
2014-02-21 12:16:19 -08:00
MinRK
1491e4cec6 depend on new gnureadline instead of readline on OS X
this is the same package under a different name,
to avoid the stdlib-overriding behavior that relied on easy_install's unpleasantness.
2014-02-21 01:50:36 -08:00
Thomas Kluyver
53cbcfc3bb Merge pull request #5047 from minrk/check-pkg-data
only validate package_data when it might be used
2014-02-13 17:17:36 -08:00
Jonathan Frederic
67a7cd1b33 Fixed setup base so it requires the correct files 2014-02-07 21:15:22 -08:00
MinRK
17d5c263a8 run check_package_data as part of build_py
rather than explicitly in setup.py
2014-02-07 14:12:53 -08:00