Skip to content

Update to NumPy 2+ - #81

Open
ruslkhay wants to merge 5 commits into
crflynn:masterfrom
ruslkhay:master
Open

Update to NumPy 2+#81
ruslkhay wants to merge 5 commits into
crflynn:masterfrom
ruslkhay:master

Conversation

@ruslkhay

Copy link
Copy Markdown
  1. Numpy version was updated to 2.*
  2. Range of python version was expanded. Note that now python minimal version is 3.9
  3. Small fixes in the code: for MarkovChain class call np.array(..., copy=False) was replaced by np.asarray.

All pytest show no errors.

@ruslkhay ruslkhay mentioned this pull request Mar 27, 2026
@sjg2203

sjg2203 commented Mar 27, 2026

Copy link
Copy Markdown

@ruslkhay if you update the version number in pyproject.toml, it also needs to be updated consistently in _version.py and CHANGELOG.rst.
I’d recommend using v0.8.0 rather than v1.0.1. Jumping to a 1.x.x release implies that a v1.0.0 existed (which it didn’t) and that a major, breaking change occurred. That’s not really the case here, the changes are mostly cleanup and dependency updates. Using v0.8.0 keeps the versioning aligned with the pattern already established by @crflynn in the original package.

@crflynn Please review the changes here and approve the PR so that this updated version can be pushed to users.

@ruslkhay

Copy link
Copy Markdown
Author

@sjg2203 Thanks for the comment!
In my opinion, such dependencies as numpy and scipy are quite signigicant in terms of this project. A new major version of any of the two modules makes versions of this project incompeteble too. Also, quite a lot of people use this project, so the API is closer to the public than in the initial development (see https://semver.org/).
So I've set the version to v1.0.0.

@sjg2203

sjg2203 commented Mar 27, 2026

Copy link
Copy Markdown

I agree, Stochastic is being used widely and definitely needed that cleanup. Seems all good to me with this v1.0.0.
I updated the classifier Development Status pyproject.toml to production/stable. This better aligns with the new and future-proof v1.0.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants