Python Versions We Support

55 views
Skip to first unread message

Fumbani Banda

unread,
Dec 14, 2022, 8:42:34 AM12/14/22
to sympy

Hi everyone, I would like to update the Wiki page on Python versions that we support. Currently, the page is blank.

I was wondering if there's a way, I can get the list of all the Python versions supported by sympy.

P.S: My name is Fumbani Banda and I have recently developed an interest in contributing to open-source. I'm an undergraduate in Computer Science and I use python to code my projects. 

I have read the documentation and installed sympy. I have followed the getting started tutorials and I have grasped some components of what sympy is about.

Simon Cross

unread,
Dec 14, 2022, 9:39:29 AM12/14/22
to sy...@googlegroups.com
Hi Fumbani,

If you look at the PyPI page for sympy, you can see the list of
officially supported Python versions
(https://pypi.org/project/sympy/). Currently that list is 3.8, 3.9 and
3.10.

The list is generated from sympy's setup.py file:
https://github.com/sympy/sympy/blob/master/setup.py#L344-L348

You will see that 3.11 is also listed in the setup.py file, but
presumably a new release has not been built since 3.11 was added.

Regards,
Simon

Fumbani Banda

unread,
Dec 14, 2022, 11:14:16 AM12/14/22
to sympy
Hi Simon,

This is very helpful.

Regards,
Fumbani

Oscar Benjamin

unread,
Dec 14, 2022, 3:20:36 PM12/14/22
to sy...@googlegroups.com
Hi Simon,

Yes, I think that SymPy 1.11 was released shortly before CPython 3.11.
It was tested against 3.11 through all the beta versions etc.

I don't immediately have 3.11 to hand. Does pip still install SymPy
from PyPI under 3.11?

Oscar
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAD5NRCEAYu183u2ouPphBYrJfQXA%2BjzigUjL3qeq9CVHSYUo-Q%40mail.gmail.com.

Peter Stahlecker

unread,
Dec 14, 2022, 3:27:49 PM12/14/22
to sy...@googlegroups.com
I have used sympy (sympy.physics.mechanics) for the last two weeks with python 3.11, and all seems fine. Of course I do not use the finer points of sympy, just what's needed for sympy.physics.mechanics.

--
Best regards,

Peter Stahlecker

Simon Cross

unread,
Dec 14, 2022, 4:55:22 PM12/14/22
to sy...@googlegroups.com
Hi Oscar,

The sympy wheel is marked py3-none-any, so it installs on any version
of Python 3.

Regards,
Simon

Aaron Meurer

unread,
Dec 14, 2022, 5:28:08 PM12/14/22
to sy...@googlegroups.com
This is the page for Python versions we support
https://github.com/sympy/sympy/wiki/Python-version-support-policy. The
current policy is to support all Python versions that are not end of
life (see https://devguide.python.org/versions/#versions), although,
I'd like to shorten that list
(https://github.com/sympy/sympy/issues/21884). I'm also planning on
moving this page from the wiki to the documentation (I may do this in
https://github.com/sympy/sympy/pull/23879 or in a future PR).

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/c683c43c-07df-466a-a96a-f6ad208dfe88n%40googlegroups.com.

Jeremy Monat

unread,
Dec 14, 2022, 5:32:01 PM12/14/22
to sy...@googlegroups.com
Great idea to move into the documentation which Python versions SymPy supports. I recently encountered a package that didn't support 3.11, and that wasn't started on the package's Quick Start page, so it caused me confusion.

Aaron Meurer

unread,
Dec 14, 2022, 5:49:12 PM12/14/22
to sy...@googlegroups.com
Which quickstart page are you referring to?

We should avoid mentioning Python versions on too many pages. Python
releases every year, and we will basically always support the latest
version. But we can't keep up with updating a dozen pages with the
latest Python version all the time. IMO the only pages that should
explicitly mention Python versions are the Python version support page
and the release notes pages (which wouldn't be updated once the
release happens).

Aaron Meurer
> To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAO00iLgP2P4V1HY15AofGKqyjHJp%3DhXOMwvq_Cu0uXz8-0L%2BUA%40mail.gmail.com.

Jeremy Monat

unread,
Dec 14, 2022, 5:52:24 PM12/14/22
to sy...@googlegroups.com
This was the quickstart page of a different package unrelated to SymPy, specifically Airflow.


Fumbani Banda

unread,
Dec 16, 2022, 12:44:40 AM12/16/22
to sympy
Hi everyone,
Thank you for the replies and the great discussion.
I went through all the links and learned of the discussion when sympy wanted to adopt NEP 29 but I guess that hasn't happened because Python support policy says we use EOL.
I simply updated the wiki here with the content from the Python support policy.

Regards,
Fumbani
Reply all
Reply to author
Forward
0 new messages