summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Disable fast Py_SIZE(PyLong) check in Py3.12a7+ since it's no longer valid ↵0.29.xStefan Behnel2023-05-162-2/+2
| | | | there.
* Prevent calling the dealloc slot of a non-GC base class with GC tracking ↵scoder2023-05-152-6/+41
| | | | | | enabled. (GH-5432) This shows warnings in CPython (3.12) debug builds and can lead to crashes when GC triggers on an object while deallocating it.
* enable passing datetime tests on PyPy (#5427)Matti Picus2023-05-071-3/+0
|
* Update changelog.Stefan Behnel2023-05-021-0/+10
|
* Allow users to override CYTHON_PEP489_MULTI_PHASE_INIT in PyPy 3.9+.Stefan Behnel2023-05-021-3/+4
| | | | | See https://github.com/cython/cython/issues/5413 Improves on https://github.com/cython/cython/pull/5414
* Use CYTHON_PEP489_MULTI_PHASE_INIT on PyPy 3.9 (GH-5414)Matti Picus2023-05-021-2/+5
|
* prepare cython for PyPy3.10 (#5408)Matti Picus2023-04-274-11/+41
|
* Distinguish 'api' import functions from different Cython versions (GH-5383) ↵da-woods2023-04-203-35/+47
| | | | | | | (#5390) Fixes issue with changed signature for these functions between Cython releases Issue was reported here: https://github.com/cython/cython/pull/5289#issuecomment-1509371606
* Update changelog.Stefan Behnel2023-04-131-0/+2
|
* Fix argument type in call to PyGen_GetCode().Stefan Behnel2023-04-131-1/+1
|
* Add .readthedocs.yaml (GH-5370)0dminnimda2023-04-111-0/+25
| | | | | | Backports https://github.com/cython/cython/pull/5254 Closes https://github.com/cython/cython/issues/5364
* Update changelog.Stefan Behnel2023-04-051-0/+10
|
* Fix AnnotationWriter for IndexNode with empty TupleNode (GH-5355)Lisandro Dalcin2023-04-052-1/+9
|
* Prepare release of 0.29.34.0.29.34Stefan Behnel2023-04-022-2/+2
|
* Disable "pylong" and "longintrepr" tests in Py3.12 that accessed ↵Stefan Behnel2023-04-021-3/+6
| | | | PyLongObject struct fields that were removed.
* Update changelog.Stefan Behnel2023-04-021-0/+4
|
* Avoid accessing "PyGenObject->gi_code", which was removed in CPython 3.12a6 ↵Stefan Behnel2023-04-021-0/+4
| | | | | | and replaced with a C-API function. See https://github.com/python/cpython/pull/100749
* Add an explicit (although unnecessary) "noexcept" marker to the ↵Stefan Behnel2023-04-022-1/+34
| | | | | | "PyCapsule_Destructor" function type to document explicitly that it must not emit exceptions. See https://github.com/scipy/scipy/issues/17234
* Fix a reference leak when a for-loop's "else:" branch contains a "break" for ↵Stefan Behnel2023-04-012-10/+42
| | | | | | an outer loop. Closes https://github.com/cython/cython/issues/5347
* Update changelog.Stefan Behnel2023-03-291-0/+15
|
* Do not attempt to write out a depfile on failure (GH-5291)Eli Schwartz2023-03-291-1/+1
| | | | | | | This would be pretty useless as it cannot be used -- the output file does not exist either. But as it happens, on error, the output file is reset to None, so instead we triggered a python traceback while trying to write a depfile for `os.path.relpath(None, cwd)` that was written to `None+'.dep'`
* Allow globally forcing C file regeneration by setting the env var ↵Harmen Stoppels2023-03-291-0/+3
| | | | CYTHON_FORCE_REGEN=1, e.g. from external build systems. (GH-5307)
* Account for possible extension type struct padding when calculating the ↵Miro Hrončok2023-03-242-6/+40
| | | | | itemsize for the "size changed" check (GH-4894) (GH-5289) Backported from https://github.com/cython/cython/pull/4894
* Use a more correct and specific CPython internals guard in __Pyx_Raise(). ↵Tomáš Hrnčiar2023-03-221-7/+7
| | | | | | | (GH-5330) This is a backport of https://github.com/cython/cython/commit/1dba3d3b44ce942dafe4c77dec4c64def22c57e1 from Cython's master branch. See https://github.com/cython/cython/issues/5238#issuecomment-1426853108
* Disable "py_unicode_strings" test in Py3.12, which removed the support for it.Matti Picus2023-03-071-0/+3
| | | | Picked from https://github.com/cython/cython/commit/9d38bf8d620fd09166a5469c76b54f66d7fbd828
* Allow Py3.12 AttributeError suggestions in doctest output.Stefan Behnel2023-03-072-29/+26
|
* Stop using PyLong internals and dict versioning in Py3.12 for 0.29.x ↵Stefan Behnel2023-03-071-2/+4
| | | | (handled differently in master).
* [0.29.x] IpythonMagic: Replace deprecated imp.load_dynamic() by importlib ↵Matus Valo2023-03-062-9/+9
| | | | (GH-5300)
* Fix depfile generation on Windows, across different drives (GH-5283)Eli Schwartz2023-03-011-2/+7
| | | | | | | | | | | | | Since its first implementation in commit https://github.com/cython/cython/commit/9db1fc39b31b7b3b2ed574a79f5f9fd980ee3be7, depfiles try to calculate relative paths for files relative to the project base dir. This usually worked, but fails when the output directory is being used from another Windows drive letter. This can happen for build systems that encourage out of source build directories. When that happens, the logical thing to do is to use an absolute path anyway. That's what those build systems do as well, so the resulting depfiles still align with the build system manifest. (cherry picked from master commit https://github.com/cython/cython/commit/038f94e9fd9e3b7ff279b3bd2627e974b94cb946) See https://github.com/cython/cython/pull/5279
* Merge branch '0.29.x' of git+ssh://github.com/cython/cython into 0.29.xStefan Behnel2023-03-012-0/+4
|\
| * [0.29] Document noexcept in CHANGES.rst (#5273)Matus Valo2023-02-281-0/+3
| |
| * Declare support for Python 3.11 (#5244)Hugo van Kemenade2023-02-061-0/+1
| |
* | Prepare release of 0.29.33.0.29.33Stefan Behnel2023-01-052-2/+2
|/
* Update changelog.Stefan Behnel2023-01-051-0/+3
|
* Avoid exponential recursion when coercing nested conditional expressions.Stefan Behnel2023-01-052-9/+65
| | | | | | This used to coerce the nesting tree twice at each condition, once for `coerce_to()` and once for `analyse_result_type()`, both calling each other for the entire subtree. Closes https://github.com/cython/cython/issues/5197
* Update tox.ini a little and include it in sdist.Stefan Behnel2023-01-052-1/+2
| | | | Closes https://github.com/cython/cython/issues/5193
* Update changelog.Stefan Behnel2023-01-041-7/+25
|
* Add support of const fused type memory views (GH-3118) (GH-5076)da-woods2023-01-044-12/+126
| | | | | | Backport of https://github.com/cython/cython/pull/3118 Fixes https://github.com/cython/cython/issues/3783 Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
* [0.29.x] Avoid using asyncio.get_event_loop (GH-5188)da-woods2023-01-042-22/+36
| | | | | | | The behaviour of creating a new event loop if one doesn't already exist was removed in Python 3.12 alpha and was allegedly deprecated before then. Fixes https://github.com/cython/cython/issues/5183
* numpy.int -> numpy.int_ (#5190)da-woods2022-12-312-7/+7
| | | | | | | * numpy.int -> numpy.int_ numpy.int was deprecated and has now been removed * More fixes
* Add PyUnicode_AsUTF8AndSize to cpython imports [0.29.x] (#5164)Matus Valo2022-12-081-1/+17
| | | Backport of https://github.com/cython/cython/pull/5163
* Add 'cpow' as a forward compatibility to 0.29.x (GH-5060)da-woods2022-12-082-0/+10
| | | See https://github.com/cython/cython/pull/5016
* Avoid triggering type-check assert for cyfuncs [0.29.x] (#5031)da-woods2022-11-262-1/+14
| | | | | | * Avoid triggering type-check assert for cyfuncs * Make some jobs run with debug assertions Co-authored-by: Stefano Rivera <github@rivera.za.net>
* Backport support for PEP-623 to 0.29.x: remove Unicode wstr support (GH-5145)Lisandro Dalcin2022-11-242-17/+17
| | | | | * Adapt PEP-623 support to latest Py3.12 which removes the wstr field in PyUnicode but kept the PyUnicode_*() macros around. * Add Py3.12 to CI build targets.
* Pin line_profiler version to <4 (#5140)da-woods2022-11-231-1/+1
| | | | | Ideally we'd work out why it isn't working, but for now it seems easiest to try to pin the version.
* Update Cython 0.29.33 changelogda-woods2022-11-121-0/+38
|
* Fix various clang warnings (#5086)Lisandro Dalcin2022-10-175-19/+16
| | | | | | * Fix clang -Wcomma * Fix clang -Wextra-semi-stmt * Fix clang -Wconditional-uninitialized * Fix clang -Wunreachable-code-return
* always set CYTHON_UPDATE_DESCRIPTOR_DOC to 0 on PyPy (#5083)Matti Picus2022-10-121-1/+1
| | | It was previously set to 0 via a typo.
* [0.29] deprecation warning for "from x cimport class A" syntax (#4905)da-woods2022-10-111-0/+2
| | | | Unused/rarely used syntax which we plan to remove in Cython 3. See https://github.com/cython/cython/pull/4904
* Revert "Fix PYPY_VERSION_HEX/PYPY_VERSION_NUM typo (#5074)"da-woods2022-10-091-1/+1
| | | | | | This reverts commit 3a063cb43a94786261032266fb02c7234a7c2c07. At least on master it was causing segmentation faults on PyPy3