Skip to content

Commit

Permalink
fix: Update dependencies for Python 3.12, allow NumPy 2.0
Browse files Browse the repository at this point in the history
Updating dependencies for better compatibility with Python 3.12 and
future releases.
  • Loading branch information
riddella authored and ariddell committed Jun 19, 2024
1 parent 0160378 commit c4cce8e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ The document-topic distributions are available in ``model.doc_topic_``.
Requirements
------------
Python 3.9+ and NumPy is required.
Python 3.10 and NumPy.
Caveat
------
Expand Down
7 changes: 3 additions & 4 deletions doc/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Installing lda
==============

lda requires Python (>=3.9,<=3.12) and NumPy (>=1.13.0,<2.0). If these
lda requires Python and NumPy. If these
requirements are satisfied, lda should install successfully on Linux, macOS and Windows with::

pip install lda
Expand All @@ -17,7 +17,6 @@ Installing from source requires you to have installed the Python development
headers and a working C/C++ compiler. Under Debian-based operating systems,
which include Ubuntu, you can install all these requirements by issuing::

sudo apt-get install build-essential python3-dev python3-setuptools \
python3-numpy
sudo apt-get install build-essential python3-dev

You can compile and install lda using the ``pip install`` or ``poetry install`` command.
You can compile and install lda using the ``pip install``.
7 changes: 6 additions & 1 deletion doc/source/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
What's New
============

v3.0.0 (tba)
v3.0.1 (19. June 2024)
======================
- Drop support for Python 3.9.
- Construct nzw in fortran order to reduce cache misses in hot loops. Thanks @ghuls.

v3.0.0 (4. December 2023)
============
- Drop support for Python 3.6, 3.7 and 3.8
- Wheels for Python 3.9, 3.10, 3.11 and 3.12
Expand Down
17 changes: 8 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lda"
version = "3.0.0"
version = "3.0.1"
description = "Topic modeling with latent Dirichlet allocation"
authors = ["lda developers <[email protected]>"]
license = "MPL 2.0"
Expand All @@ -15,7 +15,6 @@ classifiers = [
"Programming Language :: Cython",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -34,11 +33,11 @@ include = [
script = "build.py"

[tool.poetry.dependencies]
python = ">=3.9,<=3.12"
numpy = ">=1.13.0,<2.0"
python = ">=3.10"
numpy = ">=1.83"

[tool.poetry.group.dev.dependencies]
cython = "^3.0.3"
cython = "^3.0.8"
scipy = "^1.11.3"
sphinx = "^7.2.6"
sphinx-autoapi = "^3.0.0"
Expand All @@ -57,12 +56,12 @@ flake8 = "^5.0.1"

[tool.poetry.group.build.dependencies]
meson-python = "^0.14.0"
cython = "^3.0.3"
ninja = "^1.11.1.1"
cibuildwheel = "^2.16.2"
cython = "^3.0.8"
ninja = "^1.11"
cibuildwheel = "^2.16"

[tool.cibuildwheel]
build = "cp39-* cp310-* cp311-* cp312-*"
build = "cp310-* cp311-* cp312-*"
skip = ["pp*", "*i686", "*win32"]
test-requires = ["oslotest", "scipy", "setuptools"]
test-command = "python -m unittest discover -s {project}/lda/tests"
Expand Down

0 comments on commit c4cce8e

Please sign in to comment.