##// END OF EJS Templates
ipython_directive: Adjust doc examples for reproducibility....
ipython_directive: Adjust doc examples for reproducibility. Before this change, building the documentation twice in a row in an environment configured for reproducible bulids would result in discrepancies such as: diff -ru /gnu/store/...-python-ipython-documentation-8.2.0/share/doc/python-ipython-documentation-8.2.0/html/sphinxext.html /gnu/store/...-python-ipython-documentation-8.2.0-check/share/doc/python-ipython-documentation-8.2.0/html/sphinxext.html --- /gnu/store/...-python-ipython-documentation-8.2.0/share/doc/python-ipython-documentation-8.2.0/html/sphinxext.html 1969-12-31 19:00:01.000000000 -0500 +++ /gnu/store/...-python-ipython-documentation-8.2.0-check/share/doc/python-ipython-documentation-8.2.0/html/sphinxext.html 1969-12-31 19:00:01.000000000 -0500 @@ -682,7 +682,7 @@ <span class="gp">In [2]: </span><span class="kn">import</span> <span class="nn">datetime</span> <span class="gp"> ...: </span><span class="n">datetime</span><span class="o">.</span><span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span> <span class="gp"> ...: </span> -<span class="gh">Out[2]: </span><span class="go">datetime.datetime(2022, 4, 17, 3, 21, 14, 978155)</span> +<span class="gh">Out[2]: </span><span class="go">datetime.datetime(2022, 4, 17, 3, 37, 37, 115081)</span> </pre></div> </div> <p>It supports IPython construct that plain @@ -690,7 +690,7 @@ <div class="highlight-ipython notranslate"><div class="highlight"><pre><span></span><span class="gp">In [3]: </span><span class="kn">import</span> <span class="nn">time</span> <span class="gp">In [4]: </span><span class="o">%</span><span class="k">timeit</span> time.sleep(0.05) -<span class="go">50.2 ms +- 104 us per loop (mean +- std. dev. of 7 runs, 10 loops each)</span> +<span class="go">50.1 ms +- 8.86 us per loop (mean +- std. dev. of 7 runs, 10 loops each)</span> </pre></div> </div> <p>This will also support top-level async when using IPython 7.0+</p> * IPython/sphinxext/ipython_directive.py: Use a fixed date string in the datetime example, and replace the %timeit example by %pdoc, whole output is static.

File last commit:

r1752:af0aa7a3
r27687:71d665c4
Show More
Makefile
130 lines | 3.2 KiB | text/x-makefile | MakefileLexer
# Simple makefile to rapidly deploy IPython with all its dependencies.
# Configuration section. The version numbers and paths declared here may
# change with each release.
# IPython version
IPYTHON_VER=0.9.1
# Declare here version numbers of all the dependencies
PYOPENSSL_VER=0.6
ZOPE_INTERFACE_VER=3.4.1
TWISTED_VER=8.1.0
FOOLSCAP_VER=0.3.1
NOSE_VER=0.10.3
# Repository URLs for all packages. Make sure these are correct for each
# release, since projects may change paths!
IPYTHON_REPO=http://ipython.scipy.org/dist
PYOPENSSL_REPO=http://downloads.sourceforge.net/pyopenssl
ZOPE_INTERFACE_REPO=http://pypi.python.org/packages/source/z/zope.interface
TWISTED_REPO=http://tmrc.mit.edu/mirror/twisted/Twisted/8.1
FOOLSCAP_REPO=http://foolscap.lothar.com/releases
NOSE_REPO=http://somethingaboutorange.com/mrl/projects/nose
#-----------------------------------------------------------------------------
# Main code begins. There shouldn't be much to change here with each release.
#
# Hand-written files to ship in self-contained tarball
SOURCES=pkginstall pkginstall.cfg Makefile README.txt README.html
# Versions of tarballs we ship
IPYTHON=ipython-$(IPYTHON_VER).tar.gz
IP_ALLDEPS=ipython-alldeps-$(IPYTHON_VER)
PYOPENSSL=pyOpenSSL-$(PYOPENSSL_VER).tar.gz
ZOPE_INTERFACE=zope.interface-$(ZOPE_INTERFACE_VER).tar.gz
NOSE=nose-$(NOSE_VER).tar.gz
TWISTED=Twisted-$(TWISTED_VER).tar.bz2
FOOLSCAP=foolscap-$(FOOLSCAP_VER).tar.gz
TARBALLS=$(PYOPENSSL) $(ZOPE_INTERFACE) $(TWISTED) $(FOOLSCAP) \
$(NOSE) $(IPYTHON)
# URLs for downloads
#-----------------------------------------------------------------------------
# Target declaration
#
# Targets to install, in correct dependency order
install: pyopenssl zope.interface twisted foolscap nose ipython
echo
echo "IPython Installation finished."
echo "You can now run the ipython test suite by running:"
echo "iptest"
echo "If all tests pass, you can delete this entire directory."
echo
# Download targets
download: $(TARBALLS)
$(IPYTHON):
wget $(IPYTHON_REPO)/$(IPYTHON)
$(PYOPENSSL):
wget $(PYOPENSSL_REPO)/$(PYOPENSSL)
$(ZOPE_INTERFACE):
wget $(ZOPE_INTERFACE_REPO)/$(ZOPE_INTERFACE)
$(TWISTED):
wget $(TWISTED_REPO)/$(TWISTED)
$(FOOLSCAP):
wget $(FOOLSCAP_REPO)/$(FOOLSCAP)
$(NOSE):
wget $(NOSE_REPO)/$(NOSE)
# The calls to pkginstall must use the actual Python package name
nose: $(NOSE)
./pkginstall nose
zope.interface: $(ZOPE_INTERFACE)
./pkginstall zope.interface zope
pyopenssl: $(PYOPENSSL)
./pkginstall pyOpenSSL OpenSSL
twisted: $(TWISTED)
./pkginstall Twisted
foolscap: $(FOOLSCAP)
./pkginstall foolscap
ipython: $(IPYTHON)
./pkginstall ipython IPython
# Distribution targets
dist: $(IP_ALLDEPS).tar
$(IP_ALLDEPS).tar: download readme
-mkdir $(IP_ALLDEPS)
-ln $(SOURCES) $(TARBALLS) $(IP_ALLDEPS)/
tar cf $(IP_ALLDEPS).tar $(IP_ALLDEPS)
rm -rf $(IP_ALLDEPS)
readme: README.html
README.html: README.txt
rst2html README.txt > README.html
# Auxiliary targets
upload: dist
rsync -e ssh -av README.html $(IP_ALLDEPS).tar \
ipython@ipython.scipy.org:www/dist/alldeps
clean:
ls -p | grep /$ | xargs rm -rf
rm -f $(IP_ALLDEPS)* *~
distclean: clean
rm -f $(TARBALLS)
rm README.html
info:
echo "TARBALLS"
echo $(TARBALLS)