Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on repoze.lru Python package #293

Merged
merged 1 commit into from
Nov 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### New features

### Improvements
* Python installation no longer requires [`repoze.lru`](https://pypi.org/project/repoze.lru/). [#293](https://github.com/XanaduAI/thewalrus/pull/293)

### Bug fixes

Expand All @@ -12,6 +13,8 @@

This release contains contributions from (in alphabetical order):

Mikhail Andrenkov

---

# Version 0.16.2
Expand Down
1 change: 0 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ cython>=0.20
numba>=0.49.1
numpy>=1.9
sympy>=1.5.1
repoze.lru>=0.7
scipy>=1.2.1
breathe==4.29.0
Jinja2==2.11.3
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ numba>=0.48.0
pytest>=5.4.1
flaky>=3.7.0
sympy>=1.5.1
repoze.lru>=0.7
cython
dask[delayed]
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def get_version():
"numba>=0.49.1,<0.54",
"scipy>=1.2.1",
"sympy>=1.5.1",
"repoze.lru>=0.7",
],
"setup_requires": ["cython", "numpy"],
"ext_modules": build_extensions(),
Expand Down
2 changes: 1 addition & 1 deletion thewalrus/_low_rank_haf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
Algorithms for hafnians of low-rank matrices.
"""

from functools import lru_cache
from itertools import product
import numpy as np
from sympy import symbols, expand
from scipy.special import factorial2
from repoze.lru import lru_cache


@lru_cache(maxsize=1000000)
Expand Down