Skip to content

Commit

Permalink
Bump Python/Cython version (#268)
Browse files Browse the repository at this point in the history
* cython version bump

* cython version bump

* update doc and pyproject
  • Loading branch information
fxjung authored Aug 14, 2024
1 parent 4f01ec3 commit 866ea41
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For detailed instructions, see the `installation guide <https://ridepy.org/howto

If you're in a hurry, here's the gist:

- RidePy currently works best with Python 3.9
- RidePy works with Python >= 3.9
- If you are on platform other than x86-64 Linux, i.e., one that we don't offer wheels for, you will need to first set up a C++ build environment and the `Boost C++ libraries <https://www.boost.org/>`__. On Debian-like systems, this is easily accomplished with

.. code-block:: bash
Expand Down
6 changes: 3 additions & 3 deletions doc/howto/install-ridepy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ This section explains how to set up RidePy on your machine in various ways.
Prerequisites
-------------

Currently, using Python 3.9 is your best option.
RidePy needs at least Python 3.9.

In addition, you should probably use a Python environment for keeping things clean. The following commands should work for Linux and macOS. On Windows, things might have to be done marginally different.

We recommend using either `Anaconda <https://www.anaconda.com/>`__ (which has the added benefit of being able to handle different Python versions):

.. code::
conda create -n ridepy python=3.9
conda create -n ridepy python=3.12
conda activate ridepy
or simply ``venv`` from the Python standard library (assuming you are already on Python 3.9, alternatively you can additionally use `pyenv <https://github.com/pyenv/pyenv>`__ for managing Python versions):
or simply ``venv`` from the Python standard library (assuming you are already using your desired version, alternatively you can additionally use `pyenv <https://github.com/pyenv/pyenv>`__ for managing Python versions):

.. code::
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Cython",
"Programming Language :: C++",
"Operating System :: POSIX :: Linux",
Expand All @@ -44,7 +47,7 @@ dependencies = [
"notebook",
"jupytext",
"matplotlib",
"cython==3.0a6",
"cython>=3",
"loky",
"typer",
"pyarrow",
Expand All @@ -53,7 +56,7 @@ dependencies = [

[project.optional-dependencies]
dev = [
"black==24.3.0",
"black==24.8.0",
"commitizen",
"pdbpp",
"pre-commit",
Expand Down Expand Up @@ -112,7 +115,7 @@ where = [
[tool.black]
line-length = 88
target-version = [
"py39",
"py312",
]
include = "\\.pyi?$"
exclude = """
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def build_extensions(self):
)
],
compiler_directives={"embedsignature": True},
language_level=3,
),
options={
"build_ext": {
Expand Down

0 comments on commit 866ea41

Please sign in to comment.