Skip to content

Commit

Permalink
Merge pull request sympy#8361 from sympy/0.7.6
Browse files Browse the repository at this point in the history
0.7.6
  • Loading branch information
asmeurer committed Nov 27, 2014
2 parents 298bbdb + a684f0b commit 503bc6b
Show file tree
Hide file tree
Showing 33 changed files with 452 additions and 186 deletions.
9 changes: 9 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,15 @@ Venkatesh Halli <[email protected]> Venkatesh H <venkatesh.fatality@g
Kaushik Varanasi <[email protected]> kaushik <[email protected]>
Leonid Blouvshtein <[email protected]> leonidb <[email protected]>
Duane Nykamp <[email protected]> dqnykamp <[email protected]>
Shukla <[email protected]> gamecoder2012 <[email protected]>
Mihai A. Ionescu <[email protected]> extremeplay <[email protected]>
Sarwar Chahal <[email protected]> sarwarc <[email protected]>
Hamish Dickson <[email protected]> mishyTheBear <[email protected]>
Peter Brady <[email protected]> Peter Brady <[email protected]>
Peter Brady <[email protected]> peter <[email protected]>
Craig A. Stoudt <[email protected]> cstoudt <[email protected]>
Raj <[email protected]> raj454raj <[email protected]>
John V. Siratt <[email protected]> John Siratt <[email protected]>
Ted Dokos <[email protected]> ted-dokos <[email protected]>
Akshat Jain <[email protected]> akshat_jain <[email protected]>
Akshat Jain <[email protected]> jugnu <[email protected]>
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ matrix:
- TEST_AUTOWRAP="true"
virtualenv:
system_site_packages: true
- python: 2.7
env:
- TEST_ASCII="true"
- python: 3.4
env:
- TEST_ASCII="true"
allow_failures:
- python: 3.3 # Dummy value
env:
Expand Down
9 changes: 9 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,24 @@ Fawaz Alazemi <[email protected]>
Ambar Mehrotra <[email protected]>
Mark Shoulson <[email protected]>
David P. Sanders <[email protected]>
Peter Brady <[email protected]>
John V. Siratt <[email protected]>
Sarwar Chahal <[email protected]>
Nathan Woods <[email protected]>
Colin B. Macdonald <[email protected]>
Marcus Näslund <[email protected]>
Clemens Novak <[email protected]>
Craig A. Stoudt <[email protected]>
Mridul Seth <[email protected]>
Raj <[email protected]>
Mihai A. Ionescu <[email protected]>
immerrr <[email protected]>
Leonid Blouvshtein <[email protected]>
Peleg Michaeli <[email protected]>
Chai Wah Wu <[email protected]>
ck Lux <[email protected]>
zsc347 <[email protected]>
Hamish Dickson <[email protected]>
Michael Gallaspy <[email protected]>
Roman Inflianskas <[email protected]>
Duane Nykamp <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
recursive-include data *
recursive-include doc *
recursive-include sympy/logic/benchmarks/input *
prune doc/_build
recursive-include examples *.py README

Expand Down
64 changes: 64 additions & 0 deletions bin/generate_test_list.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
"""
Execute like this:
$ python bin/generate_test_list.py
tests = [
'sympy.concrete.tests',
'sympy.core.tests',
'sympy.functions.combinatorial.tests',
'sympy.functions.elementary.tests',
'sympy.functions.special.tests',
'sympy.geometry.tests',
'sympy.integrals.tests',
'sympy.matrices.tests',
'sympy.ntheory.tests',
'sympy.numerics.tests',
'sympy.parsing.tests',
'sympy.physics.tests',
'sympy.plotting.tests',
'sympy.polynomials.tests',
'sympy.printing.tests',
'sympy.series.tests',
'sympy.simplify.tests',
'sympy.solvers.tests',
'sympy.specfun.tests',
'sympy.test_external',
'sympy.utilities.tests',
]
"""

from __future__ import print_function

from glob import glob


def get_paths(level=15):
"""
Generates a set of paths for testfiles searching.
Example:
>>> get_paths(2)
['sympy/test_*.py', 'sympy/*/test_*.py', 'sympy/*/*/test_*.py']
>>> get_paths(6)
['sympy/test_*.py', 'sympy/*/test_*.py', 'sympy/*/*/test_*.py',
'sympy/*/*/*/test_*.py', 'sympy/*/*/*/*/test_*.py',
'sympy/*/*/*/*/*/test_*.py', 'sympy/*/*/*/*/*/*/test_*.py']
"""
wildcards = ["/"]
for i in range(level):
wildcards.append(wildcards[-1] + "*/")
p = ["sympy" + x + "test_*.py" for x in wildcards]
return p

g = []
for x in get_paths():
g.extend(glob(x))
g = [".".join(x.split("/")[:-1]) for x in g]
g = list(set(g))
g.sort()
print("tests = [")
for x in g:
print(" '%s'," % x)
print(" ]")
10 changes: 10 additions & 0 deletions bin/test_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ if [[ "${TEST_SPHINX}" == "true" ]]; then
elif [[ "${TEST_SAGE}" == "true" ]]; then
sage -v
sage -python bin/test sympy/external/tests/test_sage.py
elif [[ "${TEST_ASCII}" == "true" ]]; then
export LANG=c
mkdir empty
cd empty
cat <<EOF | python
import sympy
sympy.test('print')
EOF
cd ..
bin/doctest
else
# We change directories to make sure that we test the installed version of
# sympy.
Expand Down
9 changes: 9 additions & 0 deletions doc/src/aboutus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -352,15 +352,24 @@ want to be mentioned here, so see our repository history for a full list).
#. Ambar Mehrotra: Fix to documentation
#. Mark Shoulson: Enhanced Egyptian fractions
#. David P. Sanders: Fix to latex printer
#. Peter Brady: avoid caching problem by using function instead of lambda
#. John V. Siratt: Fix to documentation
#. Sarwar Chahal: Fix to documentation
#. Nathan Woods: Fix to C code printer
#. Colin B. Macdonald: Fix to documentation
#. Marcus Näslund: Fix to documentation
#. Clemens Novak: improved docstring for apart
#. Craig A. Stoudt: correct addition of TWave objects
#. Mridul Seth: correct is_tangent for Ellipse non-intersection
#. Raj: fixed typos in four files
#. Mihai A. Ionescu: Improvement to LaplaceTransform
#. immerrr: add check of SYMPY_DEBUG value
#. Leonid Blouvshtein: make integrals aware of both limits being +/-oo
#. Peleg Michaeli: implement the Rademacher distribution
#. Chai Wah Wu: Implement divisor_sigma function
#. ck Lux: handle zoo, oo, nan in as_int and round
#. zsc347: fixed a bug in crypto.rsa_private_key
#. Hamish Dickson: improve qubit tests
#. Michael Gallaspy: improve handling of inequalities involving RootOf
#. Roman Inflianskas: add svg support to preview
#. Duane Nykamp: improved function handling in parse_expr
Expand Down
11 changes: 3 additions & 8 deletions doc/src/modules/numeric-computation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ leveraging a variety of numerical libraries. It is used as follows:
>>> from sympy import *
>>> from sympy.abc import x
>>> expr = sin(x)/x
>>> f = lambdify(x, expr, default_array=True)
>>> f = lambdify(x, expr)
>>> f(3.14)
0.000507214304614

Expand All @@ -55,17 +55,12 @@ difference between SymPy and raw Python.
Lambdify can leverage a variety of numerical backends. By default it uses the
``math`` library. However it also supports ``mpmath`` and most notably,
``numpy``. Using the ``numpy`` library gives the generated function access to
powerful vectorized ufuncs that are backed by compiled C code. Previously
``lambdify`` defaulted to expressing ``sympy.Matrix`` as ``numpy.Matrix``.
This behavior is deprecated in favor of ``numpy.array``, and will be removed in
the next release. For now, setting ``default_array=True`` will provide the
new behavior, and avoid a ``SymPyDeprecationWarning``. See issue
`#7853 <https://github.com/sympy/sympy/issues/7853>`_ for more information.
powerful vectorized ufuncs that are backed by compiled C code.

>>> from sympy import *
>>> from sympy.abc import x
>>> expr = sin(x)/x
>>> f = lambdify(x, expr, "numpy", default_array=True)
>>> f = lambdify(x, expr, "numpy")

>>> import numpy
>>> data = numpy.linspace(1, 10, 10000)
Expand Down
6 changes: 0 additions & 6 deletions doc/src/tutorial/basic_operations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,6 @@ the given numerical library, usually NumPy. For example
>>> f(a) # doctest:+SKIP
[ 0. 0.84147098 0.90929743 0.14112001 -0.7568025 -0.95892427
-0.2794155 0.6569866 0.98935825 0.41211849]

Previously ``lambdify`` defaulted to expressing ``sympy.Matrix`` as
``numpy.Matrix``. This behavior is deprecated in favor of ``numpy.array``, and
will be removed in the next release. For now, setting ``default_array=True``
will provide the new behavior, and avoid a ``SymPyDeprecationWarning``.
See issue `#7853 <https://github.com/sympy/sympy/issues/7853>`_ for more information.

You can use other libraries than NumPy. For example, to use the standard
library math module, use ``"math"``.
Expand Down
56 changes: 3 additions & 53 deletions release/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def release(branch=None, fork='sympy'):
# This has to be run locally because it itself uses fabric. I split it out
# into a separate script so that it can be used without vagrant.
local("../bin/mailmap_update.py")
test_sympy()
source_tarball()
build_docs()
copy_release_files()
Expand Down Expand Up @@ -380,8 +381,10 @@ def show_files(file, print_=True):
'bin/ask_update.py',
'bin/coverage_doctest.py',
'bin/coverage_report.py',
'bin/build_doc.sh',
'bin/diagnose_imports',
'bin/doctest',
'bin/generate_test_list.py',
'bin/get_sympy.py',
'bin/py.bench',
'bin/mailmap_update.py',
Expand Down Expand Up @@ -421,59 +424,6 @@ def show_files(file, print_=True):
# This is just a distribute version of setup.py. Used mainly for setup.py
# develop, which we don't care about in the release tarball
'setupegg.py',
# We don't ship the benchmarks (why?)
'sympy/benchmarks/bench_meijerint.py',
'sympy/benchmarks/bench_symbench.py',
'sympy/core/benchmarks/bench_arit.py',
'sympy/core/benchmarks/bench_assumptions.py',
'sympy/core/benchmarks/bench_basic.py',
'sympy/core/benchmarks/bench_expand.py',
'sympy/core/benchmarks/bench_numbers.py',
'sympy/core/benchmarks/bench_sympify.py',
'sympy/functions/elementary/benchmarks/bench_exp.py',
'sympy/functions/special/benchmarks/bench_special.py',
# More benchmarks
'sympy/integrals/benchmarks/bench_integrate.py',
'sympy/integrals/benchmarks/bench_trigintegrate.py',
'sympy/logic/benchmarks/input/10.cnf',
'sympy/logic/benchmarks/input/100.cnf',
'sympy/logic/benchmarks/input/105.cnf',
'sympy/logic/benchmarks/input/110.cnf',
'sympy/logic/benchmarks/input/115.cnf',
'sympy/logic/benchmarks/input/120.cnf',
'sympy/logic/benchmarks/input/125.cnf',
'sympy/logic/benchmarks/input/130.cnf',
'sympy/logic/benchmarks/input/135.cnf',
'sympy/logic/benchmarks/input/140.cnf',
'sympy/logic/benchmarks/input/145.cnf',
'sympy/logic/benchmarks/input/15.cnf',
'sympy/logic/benchmarks/input/150.cnf',
'sympy/logic/benchmarks/input/20.cnf',
'sympy/logic/benchmarks/input/25.cnf',
'sympy/logic/benchmarks/input/30.cnf',
'sympy/logic/benchmarks/input/35.cnf',
'sympy/logic/benchmarks/input/40.cnf',
'sympy/logic/benchmarks/input/45.cnf',
'sympy/logic/benchmarks/input/50.cnf',
'sympy/logic/benchmarks/input/55.cnf',
'sympy/logic/benchmarks/input/60.cnf',
'sympy/logic/benchmarks/input/65.cnf',
'sympy/logic/benchmarks/input/70.cnf',
'sympy/logic/benchmarks/input/75.cnf',
'sympy/logic/benchmarks/input/80.cnf',
'sympy/logic/benchmarks/input/85.cnf',
'sympy/logic/benchmarks/input/90.cnf',
'sympy/logic/benchmarks/input/95.cnf',
'sympy/logic/benchmarks/run-solvers.py',
'sympy/logic/benchmarks/test-solver.py',
'sympy/matrices/benchmarks/bench_matrix.py',
# More benchmarks...
'sympy/polys/benchmarks/__init__.py',
'sympy/polys/benchmarks/bench_galoispolys.py',
'sympy/polys/benchmarks/bench_groebnertools.py',
'sympy/polys/benchmarks/bench_solvers.py',
'sympy/series/benchmarks/bench_limit.py',
'sympy/solvers/benchmarks/bench_solvers.py',
# Example on how to use tox to test Sympy. For development.
'tox.ini.sample',
}
Expand Down
Loading

0 comments on commit 503bc6b

Please sign in to comment.