Skip to content

Commit 6ffb10d

Browse files
authored
Merge pull request #206 from alexmv/no-bleeding-edge-cython
Stop requiring a bleeding-edge Cython.
2 parents 6ee9f63 + 152c0d4 commit 6ffb10d

6 files changed

Lines changed: 16 additions & 7 deletions

File tree

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changes
22
=======
33

4+
4.0.3
5+
~~~~
6+
* FIX: Stop requiring bleeding-edge Cython unless necesasry (for Python 3.12). #206
7+
48
4.0.2
59
~~~~~
610
* FIX: AttributeError on certain methods. #191

README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ To check out the development sources, you can use Git_::
5454
You may also download source tarballs of any snapshot from that URL.
5555

5656
Source releases will require a C compiler in order to build `line_profiler`.
57-
In addition, git checkouts will also require Cython_ >= 0.10. Source releases
57+
In addition, git checkouts will also require Cython. Source releases
5858
on PyPI should contain the pregenerated C sources, so Cython should not be
5959
required in that case.
6060

@@ -381,8 +381,7 @@ Frequently Asked Questions
381381
It should contain the generated C sources already. If you are running into
382382
problems, that may be a bug; let me know. If you are building from
383383
a git checkout or snapshot, you will need Cython to generate the
384-
C sources. You will probably need version 0.10 or higher. There is a bug in
385-
some earlier versions in how it handles NULL PyObject* pointers.
384+
C sources.
386385

387386
As of version ``3.0.0`` manylinux wheels containing the binaries are
388387
available on pypi. Work is still needed to publish osx and win32 wheels.

kernprof.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# NOTE: This version needs to be manually maintained with the line_profiler
1515
# __version__ for now.
16-
__version__ = '4.0.2'
16+
__version__ = '4.0.3'
1717

1818
# Guard the import of cProfile such that 3.x people
1919
# without lsprof can still use this script.

line_profiler/line_profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
f'Has it been compiled? Underlying error is ex={ex!r}'
1717
)
1818

19-
__version__ = '4.0.2'
19+
__version__ = '4.0.3'
2020

2121

2222
def load_ipython_extension(ip):

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
[build-system]
2-
requires = ["setuptools>=41.0.1", "Cython>=3.0.0a11"]
2+
requires = [
3+
"setuptools>=41.0.1",
4+
"Cython==3.0.0a11 ; python_version < '4.0' and python_version >= '3.12' ",
5+
"Cython>=0.29.24,<=3.0.0a11 ; python_version < '3.12' ",
6+
]
37
build-backend = "setuptools.build_meta" # comment out to disable pep517
48

59
[tool.coverage.run]

requirements/build.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Cython is the only hard requirement
2-
Cython>=3.0.0a11
2+
Cython==3.0.0a11 ; python_version < '4.0' and python_version >= '3.12' # Python 3.12+
3+
Cython>=0.29.24,<=3.0.0a11 ; python_version < '3.12' # Python 3.6 - 3.11
4+
35
scikit-build>=0.11.1
46
cmake>=3.21.2
57
ninja>=1.10.2

0 commit comments

Comments
 (0)