Skip to content

Commit

Permalink
Remove support for Python 2.7 on Windows
Browse files Browse the repository at this point in the history
Mercurial 6.2 released in July 2022 removed support for Python 2.7.
It was the last project using pythoncapi_compat.h which required
Python 2.7 support (on Windows).

Remove PYCAPI_COMPAT_STATIC_INLINE() macro: use "static inline"
directly.

See:

* https://www.mercurial-scm.org/downloads
* https://wiki.mercurial-scm.org/SupportedPythonVersions
  • Loading branch information
vstinner committed Aug 21, 2023
1 parent 47c0656 commit 2e3b977
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 102 deletions.
3 changes: 1 addition & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ C++03 and C++11 are supported on Python 3.6 and newer.

A C99 subset is required, like ``static inline`` functions: see `PEP 7
<https://www.python.org/dev/peps/pep-0007/>`_. ISO C90 is partially supported
for Python 2.7 and Visual Studio 2008 (avoid mixed declarations and code, ``gcc
-Werror=declaration-after-statement``).
for Python 2.7.

Some functions related to frame objects and ``PyThreadState`` are not available
on PyPy.
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Changelog
=========

* 2023-08-21: Remove support for Python 2.7, Python 3.4 and older.
* 2023-08-16: Add ``Py_IsFinalizing()`` function.
* 2023-07-21: Add ``PyDict_GetItemRef()`` function.
* 2023-07-18: Add ``PyModule_Add()`` function.
Expand Down
Loading

0 comments on commit 2e3b977

Please sign in to comment.