SymPy 0.7.0 Release Candidate 1

23 views
Skip to first unread message

Aaron Meurer

unread,
Jun 12, 2011, 1:48:03 AM6/12/11
to sy...@googlegroups.com
After weeks of work, and more than a year since the last release,
we've finally reached a point where we can release a release candidate
for SymPy 0.7.0. I talked with Ondřej, and we agreed that the best
way to do a release would be to follow the following steps (also
described at https://github.com/sympy/sympy/wiki/New-Release):

1. Fix all blockers (i.e., issues marked with the label Milestone-Release0.7.0).
2. Create a new branch 0.7.0, do the release patches in it.
3. Continue in master just like if nothing was happening.
4. Create rc1 from the 0.7.0 branch, test it, push fixes to 0.7.0. do
rc2 etc. do final release.
5. Wait for some time and see if all is ok, possibly do some release
fixes (like wait for one week).
6. Merge 0.7.0 with master, delete the branch.
7. If more fixes are needed, simply fork from the latest 0.7.0 tag,
and push more fixes, release and merge.

We are currently at step 4. I have pushed a branch named 0.7.0, for
which the latest commit is tagged sympy-0.7.0.rc1 to the main
repository. I have also created tarball distributions.

Please test these distributions. All tests should pass with Python
2.4-2.7, both 32- and 64-bit, and with gmpy installed or not
installed. Please test that this is the case from the tarballed
distributions themselves by running

./setup.py --prefix=<temporary directory> install

From the unpacked tarballs, and running the tests from that prefixed
path. You can also run sandboxes tests using tox.

Also, I would really appreciate it if people could test the Windows
installer. I don't have Windows, so I can't even verify that it works
at all.

Finally, you should review the changes I've made since master in the
0.7.0 branch. Most of them are commits that fix tests.

I have uploaded the tarballs to
http://code.google.com/p/sympy/downloads/list. I would have attached
the files to this email, but they were too large, and furthermore,
GMail does not allow sending .exe attachments.

In accordance with the above steps, please continue to push patches to
master as if no release were happening. Push a patch into the 0.7.0
branch if and only if it is critical for the release (e.g., fixes a
test failure in the release candidate).

Aaron Meurer

Aaron S. Meurer

unread,
Jun 12, 2011, 2:02:18 AM6/12/11
to sy...@googlegroups.com
Well, I just noticed that sympy does not import under Python 2.4. I have fixed this in the 0.7.0 branch. Please report any other problems that you find, and I'll roll them out into a 0.7.0.rc2.

Aaron Meurer

Matteo Boscolo

unread,
Jun 12, 2011, 4:02:25 AM6/12/11
to sy...@googlegroups.com
Hi all :
I got this two geometrical entity:
Ellipse: Center Point : (-22.1368,132.821) , horizontalRadius
Axi=641.625758588, Mino Axi=561.422256982
Arc\Circle: Center Point : (-370.288,132.821) , Radius 256.867341765 ,
StartAngle=0, EndAngle=6.28318530718

if I intersect this two entity I got the following error:
>>> e=geo.Ellipse(geo.Point(-22.1368,132.821),641.625758588,561.422256982)
>>> c=geo.Circle(geo.Point(-370.288,132.821),256.867341765)
>>> e.intersection(c)
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module>
e.intersection(c)
File "C:\Python26\lib\site-packages\sympy\geometry\ellipse.py", line
854, in intersection
return self._do_circle_intersection(o)
File "C:\Python26\lib\site-packages\sympy\geometry\ellipse.py", line
779, in _do_circle_intersection
yy = solve(o.equation().subs(x, xi), y)
File "C:\Python26\lib\site-packages\sympy\solvers\solvers.py", line
255, in solve
solution = _solve(f, *symbols, **flags)
File "C:\Python26\lib\site-packages\sympy\solvers\solvers.py", line
533, in _solve
soln = tsolve(f_num, symbol)
File "C:\Python26\lib\site-packages\sympy\solvers\solvers.py", line
986, in tsolve
"(tsolve: at least one Function expected at this point")
NotImplementedError: Unable to solve the equation(tsolve: at least one
Function expected at this point

or

>>> c.intersection(e)
Traceback (most recent call last):
File "<pyshell#12>", line 1, in <module>
c.intersection(e)
File "C:\Python26\lib\site-packages\sympy\geometry\ellipse.py", line
1083, in intersection
return Ellipse.intersection(self, o)
File "C:\Python26\lib\site-packages\sympy\geometry\ellipse.py", line
860, in intersection
return self._do_ellipse_intersection(o)
File "C:\Python26\lib\site-packages\sympy\geometry\ellipse.py", line
794, in _do_ellipse_intersection
result = solve([seq, oeq], [x, y])
File "C:\Python26\lib\site-packages\sympy\solvers\solvers.py", line
255, in solve
solution = _solve(f, *symbols, **flags)
File "C:\Python26\lib\site-packages\sympy\solvers\solvers.py", line
593, in _solve
return solve_poly_system(polys)
File "C:\Python26\lib\site-packages\sympy\solvers\polysys.py", line
41, in solve_poly_system
return solve_biquadratic(f, g, opt)
File "C:\Python26\lib\site-packages\sympy\solvers\polysys.py", line
49, in solve_biquadratic
G = groebner([f, g])
File "C:\Python26\lib\site-packages\sympy\polys\polytools.py", line
5298, in groebner
raise DomainError("can't compute a Groebner basis over %s" % domain)
DomainError: can't compute a Groebner basis over RR

I dose this test with sympy 0.7.rc1

Regards,
Matteo


David Joyner

unread,
Jun 12, 2011, 7:23:58 AM6/12/11
to sy...@googlegroups.com
On Sun, Jun 12, 2011 at 1:48 AM, Aaron Meurer <asme...@gmail.com> wrote:

...

> Please test these distributions.  All tests should pass with Python
> 2.4-2.7, both 32- and 64-bit, and with gmpy installed or not
> installed.  Please test that this is the case from the tarballed
> distributions themselves by running
>
> ./setup.py --prefix=<temporary directory> install
>
> From the unpacked tarballs, and running the tests from that prefixed
> path.  You can also run sandboxes tests using tox.
>

On a mac OS 10.6.7, I ran

./setup.py install
./setup.py test

with no problems. The --prefix option was not recognized.
The system Python for 10.6.7 is 2.7.


>
> Aaron Meurer
>
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To post to this group, send email to sy...@googlegroups.com.
> To unsubscribe from this group, send email to sympy+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
>
>

Tomo Lazovich

unread,
Jun 12, 2011, 10:07:30 AM6/12/11
to sy...@googlegroups.com
I tested the Windows installer in Windows 7. You have to be sure to run the installer as an administrator or it complains that it can't set some registry keys. Besides that, it seems to have installed without any problems.  Is it possible to run the tests in Windows? I can't seem to find the setup.py file.
--
Tomo Lazovich
Harvard College '11
278 Winthrop House Mail Center
Cambridge, MA 02138

krastano...@gmail.com

unread,
Jun 12, 2011, 11:39:05 AM6/12/11
to sy...@googlegroups.com
On 12 June 2011 16:07, Tomo Lazovich <lazo...@fas.harvard.edu> wrote:
I tested the Windows installer in Windows 7. You have to be sure to run the installer as an administrator or it complains that it can't set some registry keys. Besides that, it seems to have installed without any problems.  Is it possible to run the tests in Windows? I can't seem to find the setup.py file.

On Sun, Jun 12, 2011 at 6:23 AM, David Joyner <wdjo...@gmail.com> wrote:
On Sun, Jun 12, 2011 at 1:48 AM, Aaron Meurer <asme...@gmail.com> wrote:

...

> Please test these distributions.  All tests should pass with Python
> 2.4-2.7, both 32- and 64-bit, and with gmpy installed or not
> installed.  Please test that this is the case from the tarballed
> distributions themselves by running
>
> ./setup.py --prefix=<temporary directory> install
>
> From the unpacked tarballs, and running the tests from that prefixed
> path.  You can also run sandboxes tests using tox.
>

On a mac OS 10.6.7, I ran

./setup.py install
./setup.py test

with no problems. The --prefix option was not recognized.
The system Python for 10.6.7 is 2.7.
The --prefix command is not recognized and it's not present in --help.

Aaron Meurer

unread,
Jun 12, 2011, 1:13:01 PM6/12/11
to sy...@googlegroups.com
On Sun, Jun 12, 2011 at 9:39 AM, krastano...@gmail.com
<krastano...@gmail.com> wrote:
> On 12 June 2011 16:07, Tomo Lazovich <lazo...@fas.harvard.edu> wrote:
>>
>> I tested the Windows installer in Windows 7. You have to be sure to run
>> the installer as an administrator or it complains that it can't set some
>> registry keys. Besides that, it seems to have installed without any
>> problems.  Is it possible to run the tests in Windows? I can't seem to find
>> the setup.py file.
>>
>> On Sun, Jun 12, 2011 at 6:23 AM, David Joyner <wdjo...@gmail.com> wrote:
>>>
>>> On Sun, Jun 12, 2011 at 1:48 AM, Aaron Meurer <asme...@gmail.com> wrote:
>>>
>>> ...
>>>
>>> > Please test these distributions.  All tests should pass with Python
>>> > 2.4-2.7, both 32- and 64-bit, and with gmpy installed or not
>>> > installed.  Please test that this is the case from the tarballed
>>> > distributions themselves by running
>>> >
>>> > ./setup.py --prefix=<temporary directory> install
>>> >
>>> > From the unpacked tarballs, and running the tests from that prefixed
>>> > path.  You can also run sandboxes tests using tox.
>>> >
>>>
>>> On a mac OS 10.6.7, I ran
>>>
>>> ./setup.py install
>>> ./setup.py test
>>>
>>> with no problems. The --prefix option was not recognized.
>>> The system Python for 10.6.7 is 2.7.
>
> The --prefix command is not recognized and it's not present in --help.

This must be some issue with your distutils. I did "./setup.py
install --prefix=~/Desktop/sympy" and it installed it in that
directory. The option doesn't show up in --help for me either, but it
still works.

By the way, I just verified using tox that the tests pass everywhere
in the 0.7.0 branch on my machine. I will wait another day to see if
any other issues come up, then I will create a rc2 so people can test
it in Python 2.4 (sorry about that btw).

Aaron Meurer

Renato Coutinho

unread,
Jun 12, 2011, 2:19:07 PM6/12/11
to sy...@googlegroups.com
On Sun, Jun 12, 2011 at 11:07 AM, Tomo Lazovich
<lazo...@fas.harvard.edu> wrote:
> I tested the Windows installer in Windows 7. You have to be sure to run the
> installer as an administrator or it complains that it can't set some
> registry keys. Besides that, it seems to have installed without any
> problems.  Is it possible to run the tests in Windows? I can't seem to find
> the setup.py file.

You can do this:

>>> from sympy.utilities.runtests import test
>>> test()

I did this yesterday in python 2.6 and 2.7 in windows XP, all tests passed.

Renato

Tomo Lazovich

unread,
Jun 12, 2011, 2:27:28 PM6/12/11
to sy...@googlegroups.com
I just ran the tests in Windows 7 and they all pass.


--
You received this message because you are subscribed to the Google Groups "sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to sympy+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sympy?hl=en.

Tomo Lazovich

unread,
Jun 12, 2011, 2:27:45 PM6/12/11
to sy...@googlegroups.com
Oh sorry, Windows 7 with Python 2.7.

Chris Smith

unread,
Jun 12, 2011, 3:03:48 PM6/12/11
to sy...@googlegroups.com
Try to use Rational approximations of the numbers. e.g. Rational('0.3') -> 3/10 (note the quotes).

David Joyner

unread,
Jun 12, 2011, 6:00:18 PM6/12/11
to sy...@googlegroups.com
On Sun, Jun 12, 2011 at 1:13 PM, Aaron Meurer <asme...@gmail.com> wrote:


...

>>>> with no problems. The --prefix option was not recognized.


>>>> The system Python for 10.6.7 is 2.7.
>>
>> The --prefix command is not recognized and it's not present in --help.
>
> This must be some issue with your distutils.  I did "./setup.py
> install --prefix=~/Desktop/sympy" and it installed it in that

Sorry, I misunderstood. setup.py --prefix ... install (as I thought you first
you suggested) does not work but setup.py install --prefix... does work
fine. Also,
../setup.py test
passes when run from that directory.

Aaron Meurer

unread,
Jun 12, 2011, 8:18:04 PM6/12/11
to sy...@googlegroups.com
Ah, you're right. I didn't realize that --prefix had to come after
install. It was just by accident that I happened to do it in that
order myself.

I'd still consider this to be a bug in distutils btw.

Aaron Meurer

Aaron Meurer

unread,
Jun 12, 2011, 8:30:57 PM6/12/11
to sy...@googlegroups.com
I just realized that I didn't upload the built docs anywhere. They
are at http://code.google.com/p/sympy/downloads/detail?name=sympy-0.7.0.rc1-docs-html.zip.

Note that I might remove the older rc docs once I do the actual
release, since it's of little value to have rc docs, and I kind of
doubt they will even change.

Aaron Meurer

Ondrej Certik

unread,
Jun 13, 2011, 1:38:14 AM6/13/11
to sy...@googlegroups.com

All tests pass on my Ubuntu Natty (64 bit). Installation also seems to
work just fine.

Ondrej

smichr

unread,
Jun 14, 2011, 2:05:40 PM6/14/11
to sy...@googlegroups.com
Installing and attempting to load under 2.4 (XP) gives

    poly = g.as_poly(*symbols, extension=True)
                                       ^
    SyntaxError: invalid syntax

Mateusz Paprocki

unread,
Jun 14, 2011, 2:20:29 PM6/14/11
to sy...@googlegroups.com
Hi,

This is invalid syntax in 2.4. This was introduced in 157c6240. You can either change this to g.as_poly(*symbols, **{'extension': True}) or remove *, because Poly supports generators passing both in star args and iterable containers, e.g.:

In [1]: (x**2 + sqrt(2)*y).as_poly(x, y, extension=True)
Out[1]: Poly(x**2 + 2**(1/2)*y, x, y, domain='QQ<2**(1/2)>')

In [2]: (x**2 + sqrt(2)*y).as_poly((x, y), extension=True)
Out[2]: Poly(x**2 + 2**(1/2)*y, x, y, domain='QQ<2**(1/2)>')

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sympy/-/HPs0ZzkGUXIJ.

To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to sympy+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sympy?hl=en.

Mateusz

smichr

unread,
Jun 14, 2011, 2:41:21 PM6/14/11
to sy...@googlegroups.com
After replacing `extension=True` with `**dict(extension=True)` I got the following:

    >>> from sympy.utilities.runtests import *
    >>> test()
    ============================= test process starts ==============================
    executable:   C:\Program Files\Python24\Lib\site-packages\pythonwin\Pythonwin.exe  (2.4.4-final-0)
    ground types: python

    sympy\assumptions\tests\test_assumptions_2.py[5] .....                      [OK]
    sympy\assumptions\tests\test_query.py[39] ..ff.......E.E........................
    .                                                                         [FAIL]
    sympy\assumptions\tests\test_refine.py[4] ....                              [OK]
    sympy\concrete\tests\test_gosper.py[10] ..E.EEEEEE                        [FAIL]
    sympy\concrete\tests\test_products.py[4] EEEE                             [FAIL]
    sympy\concrete\tests\test_sums_products.py[22] EEEEEEffffEEEEEEEEEEEE     [FAIL]
    sympy\core\tests\test_arit.py[48] ...f...............................E..........
    ..                                                                        [FAIL]
    sympy\core\tests\test_assumptions.py[28] ............................       [OK]
    sympy\core\tests\test_basic.py[10] ..........                               [OK]
    sympy\core\tests\test_cache.py[1] .                                         [OK]
    sympy\core\tests\test_complex.py[13] .............                          [OK]
    sympy\core\tests\test_containers.py[5] .....                                [OK]
    sympy\core\tests\test_count_ops.py[2] ..                                    [OK]
    sympy\core\tests\test_diff.py[6] ......                                     [OK]
    sympy\core\tests\test_equal.py[6] ......                                    [OK]
    sympy\core\tests\test_eval.py[8] .....f..                                   [OK]
    sympy\core\tests\test_eval_power.py[13] ........E....                     [FAIL]
    sympy\core\tests\test_evalf.py[24] .EEEEFF.E.EEEEE..E......               [FAIL]
    sympy\core\tests\test_expand.py[6] ......                                   [OK]
    Traceback (most recent call last):
      File "<interactive input>", line 1, in ?
      File "C:\program files\Python24\Lib\site-packages\sympy\utilities\runtests.py", line 162, in test
        return t.test(sort=sort)
      File "C:\program files\Python24\Lib\site-packages\sympy\utilities\runtests.py", line 468, in test
        self.test_file(f)
      File "C:\program files\Python24\Lib\site-packages\sympy\utilities\runtests.py", line 480, in test_file
        execfile(filename, gl)
      File "c:\program files\python24\lib\site-packages\sympy\core\tests\test_expr.py", line 7, in ?
        from sympy.physics.secondquant import FockState
      File "C:\program files\Python24\Lib\site-packages\sympy\physics\__init__.py", line 6, in ?
        from matrices import mgamma, msigma, minkowski_tensor
      File "C:\program files\Python24\Lib\site-packages\sympy\physics\matrices.py", line 90, in ?
        minkowski_tensor = Matrix( (
      File "C:\program files\Python24\Lib\site-packages\sympy\matrices\matrices.py", line 126, in __init__
        raise TypeError("Matrix constructor doesn't accept %s as input" % str(type(mat)))
    TypeError: Matrix constructor doesn't accept <type 'tuple'> as input
    >>>

Chris Smith

unread,
Jun 14, 2011, 2:45:52 PM6/14/11
to sy...@googlegroups.com
Do you want a pull request, perhaps marked as 0.7.0, Aaron, or are you already making these changes?

Aaron Meurer

unread,
Jun 14, 2011, 4:52:58 PM6/14/11
to sy...@googlegroups.com
This was all already fixed in the 0.7.0 branch a while ago. See my
second response to this thread and the commits in that branch.

I will run all the tests again in the 0.7.0 branch with tox, and then
I will create an rc2, which should work in Python 2.4.

Also, we need to resolve issue 1379. Should test() and doctest() be
imported with "from sympy import *"?

Aaron Meurer

On Tue, Jun 14, 2011 at 12:45 PM, Chris Smith <smi...@gmail.com> wrote:
> Do you want a pull request, perhaps marked as 0.7.0, Aaron, or are you
> already making these changes?
>

> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.

Chris Smith

unread,
Jun 14, 2011, 5:00:39 PM6/14/11
to sy...@googlegroups.com
On Tue, Jun 14, 2011 at 3:52 PM, Aaron Meurer <asme...@gmail.com> wrote:
This was all already fixed in the 0.7.0 branch a while ago.  See my
second response to this thread and the commits in that branch.

I will run all the tests again in the 0.7.0 branch with tox, and then
I will create an rc2, which should work in Python 2.4.

Also, we need to resolve issue 1379.  Should test() and doctest() be
imported with "from sympy import *"?

I never run these interactively, so I don't care too much. But it was a little difficult finding where they were stored when I wanted to do the tests. Could they be imported into a namespace, say, in utilities so utilities.test() would work? Or maybe testing could be a main level module that contains testing functions so testing.test() would work.

Ondrej Certik

unread,
Jun 14, 2011, 6:50:07 PM6/14/11
to sy...@googlegroups.com

I am voting to just do "sympy.test()", just like it used to be, and
just like it is for scipy and numpy.

Ondrej

Aaron Meurer

unread,
Jun 14, 2011, 7:12:12 PM6/14/11
to sy...@googlegroups.com
OK, I put it back in in the 0.7.0 branch. As soon as I run all the
tests with tox (will take a few hours), I will create 0.7.0.rc2.

Aaron Meurer

Ondrej Certik

unread,
Jun 14, 2011, 7:39:17 PM6/14/11
to sy...@googlegroups.com
On Tue, Jun 14, 2011 at 4:12 PM, Aaron Meurer <asme...@gmail.com> wrote:
> OK, I put it back in in the 0.7.0 branch.  As soon as I run all the
> tests with tox (will take a few hours), I will create 0.7.0.rc2.

Thanks! I appreciate it.

Ondrej

Aaron Meurer

unread,
Jun 15, 2011, 12:26:29 AM6/15/11
to sy...@googlegroups.com
OK, all tests passed everywhere in the 0.7.0 branch with tox, so I've
created a 0.7.0.rc2. See
http://code.google.com/p/sympy/downloads/list. The docs have not
changed since rc1, so I did not update that file.

Again, please download this and test it. It should now work for all
versions of Python from 2.4 to 2.7. Especially please test the
Windows installer, as I do not have Windows to test on.

As far as I know, no outstanding issues remain, so if no one finds any
problems with this release candidate in a week, I will do the full
release.

Aaron Meurer

Aaron Meurer

unread,
Jun 15, 2011, 12:33:14 AM6/15/11
to sy...@googlegroups.com
Oh, and just a reminder, I would like for people to sign off all the
changes to the 0.7.0 branch. Just mention on
http://code.google.com/p/sympy/issues/detail?id=2488 if you are OK
with them, or if you see any problems.

And if everyone could make sure that the release notes
(https://github.com/sympy/sympy/wiki/Release-Notes-for-0.7.0) are up
to date, that would be great. I think the quantum stuff needs to be
written better, and any relevant recent changes to master should be
included (those that weren't there when the document was originally
written).

Aaron Meurer

Ondrej Certik

unread,
Jun 15, 2011, 1:33:17 AM6/15/11
to sy...@googlegroups.com
On Tue, Jun 14, 2011 at 9:33 PM, Aaron Meurer <asme...@gmail.com> wrote:
> Oh, and just a reminder, I would like for people to sign off all the
> changes to the 0.7.0 branch.  Just mention on
> http://code.google.com/p/sympy/issues/detail?id=2488 if you are OK
> with them, or if you see any problems.
>
> And if everyone could make sure that the release notes
> (https://github.com/sympy/sympy/wiki/Release-Notes-for-0.7.0) are up
> to date, that would be great.  I think the quantum stuff needs to be
> written better, and any relevant recent changes to master should be
> included (those that weren't there when the document was originally
> written).

I have updated the Quantum stuff again.

Ondrej

Sean Vig

unread,
Jun 15, 2011, 8:00:23 PM6/15/11
to sy...@googlegroups.com
On Tue, Jun 14, 2011 at 23:26, Aaron Meurer <asme...@gmail.com> wrote:
OK, all tests passed everywhere in the 0.7.0 branch with tox, so I've
created a 0.7.0.rc2.  See
http://code.google.com/p/sympy/downloads/list.  The docs have not
changed since rc1, so I did not update that file.

Again, please download this and test it.  It should now work for all
versions of Python from 2.4 to 2.7.  Especially please test the
Windows installer, as I do not have Windows to test on.

As far as I know, no outstanding issues remain, so if no one finds any
problems with this release candidate in a week, I will do the full
release.

Aaron Meurer

I have all tests passing under 2.7.2 in Arch and in Windows 7.

Sean
Reply all
Reply to author
Forward
0 new messages