Commit Graph

218 Commits

Author SHA1 Message Date
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
Jonathan Frederic
da7b329772 Glob fix so directories aren't accidently treated like files 2014-02-07 10:10:14 -08:00
MinRK
c79134f2d9 only validate package_data when it might be used
closes #5046
2014-02-05 21:36:49 -08:00
MinRK
a2511de20d font-awesome moved 2014-02-03 17:26:17 -08:00
MinRK
07f757789f validate package_data
and fix errors caught by the validation
2014-02-03 17:22:43 -08:00
MinRK
197dc25b97 fix missing-wheel command
because an empty distutils command must implement three no-op methods and one class attribute.

Which makes perfect sense.
2014-02-03 17:22:42 -08:00
MinRK
4c41c331d7 we only install man pages to usr/share
let the function reflect this, rather than having several entries with no files.
2014-02-03 17:22:42 -08:00
MinRK
143ab47bfa whitelist installed components
we don't need most of what's in components to be installed.
Much of it is included just for sdists or development.
2014-02-03 17:22:42 -08:00
MinRK
d8ade7980d platform-dependent requirements
in bdist_wheel
2014-02-03 17:22:42 -08:00
MinRK
29b1aa4c93 only put Python major version in wheel tags
results in 'py2-none-any' instead of 'py27-none-any'.

This is supported by pip and PEP 425, but not available from bdist_wheel by default.
2014-02-03 17:22:41 -08:00
MinRK
22c5e3ec2b mention that pexpect ships in IPython.external
and only check for it on posix
2014-02-03 17:22:41 -08:00
MinRK
3050be2795 include marked.js in package_data 2014-01-14 16:53:40 -08:00
Thomas Kluyver
5a8d9182c4 Fix glob pattern for nbconvert template files 2014-01-08 10:14:52 -08:00
Thomas Kluyver
22f7bd4597 Walk nbconvert templates directory for package data files 2014-01-07 17:15:55 -08:00
Min RK
a80e387b0a Merge pull request #4700 from minrk/ifmain
use if main block in entry points
2013-12-17 11:04:00 -08:00
Min RK
12acd244ca Merge pull request #4692 from takluyver/setup-symlink-improvements
setup.py symlink improvements
2013-12-17 11:03:33 -08:00
Thomas Kluyver
74cb75e0c9 Add 'unsymlink command to remove the symlink 2013-12-16 15:12:39 -08:00
MinRK
efe3e67e39 move import into ifmain block 2013-12-16 15:02:39 -08:00
Thomas Kluyver
37edc78d76 If symlink already exists, clobber it with current one 2013-12-16 11:42:04 -08:00
Thomas Kluyver
24b7085554 Also check that existing symlink has desired target before allowing it. 2013-12-15 17:07:46 -08:00
MinRK
c491cfaab2 remove irunner and iplogger from installed scripts 2013-12-15 16:42:39 -08:00
MinRK
f42fc663d2 use if main block in entry points
closes #4698
2013-12-15 10:33:13 -08:00
Thomas Kluyver
c479ba9d18 Only ignore existing target for symlink if it is already a symlink 2013-12-13 18:14:51 -08:00
Thomas Kluyver
a391a1f755 Don't build Python modules unnecessarily before symlinking to site-packages 2013-12-13 18:08:14 -08:00
Thomas Kluyver
431e078992 Add sample wav file to package_data 2013-11-11 10:24:28 -08:00
MinRK
71d6a80629 add setup.py jsversion
for writing the IPython version to `IPython.version` in javascript.

supersedes #4357
2013-11-07 16:34:13 -08:00
Thomas Kluyver
655e870d02 Add comment to automatically generated scripts. 2013-11-05 08:51:44 -08:00
Thomas Kluyver
883c46b5b5 Rework setup to allow installing on Python 2 and 3.
Scripts named ipython and ipython[23], etc.

Neither distutils nor setuptools made this easy.
2013-10-31 17:38:34 -07:00
Thomas Kluyver
e8d357707a Fix renaming scripts 2013-10-29 09:15:55 -07:00
Thomas Kluyver
432377439b Fix renaming scripts with 3 suffix on Python 3 2013-10-29 09:15:55 -07:00
Min RK
d1de1d26f4 Merge pull request #4198 from jdfreder/versionconversion_nbconvert
add upgrade / downgrade to nbformat
2013-10-28 19:54:13 -07:00
Paul Ivanov
d46a7d6b75 include js tests in package_data 2013-10-23 11:04:56 -07:00
Thomas Kluyver
0cd7d8a5de Remove pycolor script 2013-10-04 12:48:32 -07:00
Jonathan Frederic
171dd43def Added test nbs to setup and removed todo 2013-09-24 21:24:34 +00:00
Brian E. Granger
c3510eb75f Merge pull request #4207 from minrk/setup-css
add `setup.py css` command
2013-09-20 11:57:28 -07:00
Thomas Kluyver
04b5a4b0ac Fix iptest setuptools entry point 2013-09-19 15:21:13 -07:00
MinRK
74795c2c56 add setup.py css command
It just does `cd IPython/html && fab css`, but I'm tired of doing it manually.
2013-09-14 12:24:57 -07:00
Paul Ivanov
b435738592 added check_for_tornado, closes #3916
This way, those relying on the output of `python setup.py install` get
clued in about the fact that it is required for the notebook
2013-08-05 22:19:33 -07:00
damianavila
309649e469 Fixed path in setupbase, again... 2013-07-25 08:09:05 -03:00
damianavila
839cd00e50 Fixed typo in reveal/*.tpl path in setupbase. 2013-07-25 08:01:44 -03:00
damianavila
61cc245423 Add reveal/*.tpl path to setupbase. 2013-07-25 07:58:26 -03:00
Jonathan Frederic
211eb6fb4e Try including everything
(Trying to get config tests to pass)
2013-07-17 17:16:29 -07:00
Jonathan Frederic
2cf4fffb3b Copy ipynb example files need for nbconvert tests 2013-07-17 16:50:23 -07:00
Paul Ivanov
1f997d3892 check for markdown no longer needed, closes #3610
After #3582 was merged, we no longer depend on a python version of
markdown
2013-07-10 22:23:50 -07:00
Matthias Bussonnier
9b08a557e5 Merge pull request #3538 from minrk/launch_ip
add IPython.start_ipython

A public API for starting a real (non-embedded) IPython instance.

should avoid API breakage in the future due to simple module renames, as has just happened with the removal of frontend.

For implementation purposes, I have added launch_new_instance as a classmethod on Application. I did this, because I wanted to add the ability to pass arguments to the instance, and didn't want to manually update every duplicate launch_new_instance.

closes #1537
2013-07-10 01:59:53 -07:00
MinRK
f4d4090fe3 use start_ipython in entry points
increases visibility of the public API to snoopers.
2013-07-04 12:51:11 -07:00
MinRK
00cf5001c5 fix tplx extension in nbconvert latex templates 2013-07-04 09:50:42 -07:00
MinRK
af65f1177d include nbconvert templates in installation
fixes path spec in setupbase.py:find_package_data
2013-07-03 20:40:43 -07:00
Brian E. Granger
1c478745fa Fixing imports in setupbase.py. 2013-06-30 20:59:12 -07:00
Brian E. Granger
072a94370d Fixing install logic for nbconvert. 2013-06-30 18:05:02 -07:00
Paul Ivanov
0c11e07148 Merge pull request #3381 from minrk/retina
enable 2x (retina) display
2013-06-28 16:02:52 -07:00
MinRK
a3653e34b1 update references for IPython.html 2013-06-27 11:14:10 -07:00
MinRK
7f255c9d26 remove a few dangling frontends from setupbase 2013-06-27 11:14:09 -07:00
MinRK
38b58e784c make sure test files are installed 2013-05-29 14:10:57 -07:00
Takafumi Arakaki
4aa2bca46c Fix: "python ABS/PATH/TO/ipython.py" fails
The following line in setupbase.py was the problem.  It assumes
that your CWD is always at the repository root.  This patch removes
this assumption.

    execfile(pjoin('IPython','core','release.py'), globals())
2013-05-10 23:30:26 +02:00
MinRK
cba52f17e5 use utils/submodule in setup.py
`setup.py anything` will halt with an informative error
if the submodules are unclean.

It will fetch the submodules if they are entirely absent.

Nothing will happen if it is not a git repo.
2013-05-03 15:42:10 -07:00
Thomas Kluyver
405e434d45 Fix for checking submodules location
Closes gh-3257
2013-05-02 13:47:18 +01:00
MinRK
6e32ee5546 ensure submodules exist prior to doing anything
git submodule update fires before distutils gets fired up
because distutils cannot be trusted.
2013-04-30 16:18:52 -07:00
Thomas Robitaille
a3500c3b15 Fix a bug that caused man pages to not be installed in Python 3 when running from the source tree. 2012-09-17 10:49:21 +02:00
MinRK
e972672ddd remove spurious print statement from setupbase.py 2012-08-01 16:14:21 -07:00
MinRK
d2940640f5 record sysinfo in sdist
closes #2054
2012-06-30 15:17:46 -07:00
MinRK
abab58c0eb add missing plugin .txt to package_data 2012-06-30 00:51:18 -07:00
MinRK
06188412b3 remove ipython-qtconsole gui-script
Always use `ipython qtconsole`

QtConsole entry in the Windows Start Menu is updated appropriately.
2012-06-23 21:32:16 -07:00
Thomas Kluyver
2c693fc89b Exclude IPython.quarantine from installation. 2012-04-15 12:49:46 +01:00
Thomas Kluyver
2711bdf8dd Fix writing git commit ID to a file on build with Python 3. 2012-04-14 18:32:49 +01:00
Fernando Perez
ffe488ee0b Emergency fix for py3 breakage introduced in 576f6f (merge of #1538)
Unicode literals (u'foo') aren't valid in Python 3.{1,2} (they will be
again in 3.3, and I failed to notice this.  This is a quick fix, will
discuss further on-list.  But I want master to remain working for py3
users.
2012-04-14 02:10:58 -07:00
Fernando Perez
4b73021647 Merge pull request #1445 from minrk/nosphinx
Don't build sphinx docs for sdists, it makes our source distributions unnecessarily large (and their generation much slower).  Online access to docs is pervasive these days, and our docs are also much easier to build now, reducing the justification for keeping built docs in the source download.
2012-04-14 00:54:37 -07:00
MinRK
cc4f0f3619 use writelines when writing _sysinfo.py 2012-04-13 21:47:40 -07:00
MinRK
0495291a83 store git commit hash in utils._sysinfo instead of hidden git_commit_info.ini data file. 2012-03-30 14:17:16 -07:00
MinRK
212ec345e6 fix system->os.system typo
in setupbase.py
2012-02-28 10:26:03 -08:00
Thomas Kluyver
914d61f1bd Make single setup script work on Python 2 and Python 3. 2012-01-04 21:51:24 +00:00
MinRK
5ffe131458 exclude mathjax from notebook package_data
closes #1018
2011-12-05 21:26:41 -08:00
MinRK
03cae6504e add README to startup dir 2011-10-30 17:28:52 -07:00
MinRK
ba96d936ca protect record_commit_info from configparser error 2011-10-24 13:45:10 -07:00
Fernando Perez
c27de98c35 Add SVG qt console icon to package data. 2011-10-20 17:16:38 -07:00
Thomas Kluyver
ce1973748f Fix IPython.utils.sysinfo for Python 3. 2011-10-08 18:27:08 +01:00
Bernardo B. Marques
8e32204222 remove all trailling spaces 2011-10-04 11:14:41 -03:00
Thomas Kluyver
dba0917e83 Add Trove classifiers for PyPI. 2011-09-07 12:24:11 +01:00
Thomas Kluyver
4bf2e41967 Allow 'python setup.py install' to work correctly for either Python 2 or 3. 2011-09-07 12:22:32 +01:00
Thomas Kluyver
56a2b006e0 Make installation with Python 3 possible. 2011-09-07 12:18:47 +01:00