Skip to content

Commit ac3559e

Browse files
authored
[MRG] Change numpy version (due to ABI change) (#326)
* update delease file and add it to doc ith mystè_parser * typos in release file * update PR template * test debug doc build * test debug doc build * wrog circleci * set proper version number * add numpy 1.20 constraint * remove python 3.6 deprecated in december * add python 3.10 * debug pip on windows * proper yml * remoe 3.10 becauqe of troch * next try * try distutils * back * try something * new stuf * debug yaml * test back to old vriso f numpy * try something * windows is worksing? * proper version numpy * update release file
1 parent 176c6b4 commit ac3559e

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

RELEASES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ tensorflow). We also introduce a simple benchmark on CPU GPU for the sinkhorn
1111
solver that will be provided in the
1212
[backend](https://pythonot.github.io/gen_modules/ot.backend.html) documentation.
1313

14+
This release also brings a few changes in dependencies and compatibility. First
15+
we removed tests for Python 3.6 that will not be updated in the future.
16+
Also note that POT now depends on Numpy (>= 1.20) because a recent change in ABI is making the
17+
wheels non-compatible with older numpy versions. If you really need an older
18+
numpy POT will work with no problems but you will need to build it from source.
1419

1520
As always we want to that the contributors who helped make POT better (and bug free).
1621

@@ -24,6 +29,7 @@ As always we want to that the contributors who helped make POT better (and bug f
2429

2530
#### Closed issues
2631

32+
- Fix bug in older Numpy ABI (<1.20) (Issue #308, PR #326)
2733
- Fix bug in `ot.dist` function when non euclidean distance (Issue #305, PR #306)
2834
- Fix gradient scaling for functions using `nx.set_gradients` (Issue #309, PR
2935
#310)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "numpy>=1.16", "cython>=0.23"]
2+
requires = ["setuptools", "wheel", "numpy>=1.20", "cython>=0.23"]
33
build-backend = "setuptools.build_meta"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
numpy>=1.16
1+
numpy>=1.20
22
scipy>=1.3
33
cython
44
matplotlib

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
license='MIT',
6969
scripts=[],
7070
data_files=[],
71-
setup_requires=["numpy>=1.16", "cython>=0.23"],
72-
install_requires=["numpy>=1.16", "scipy>=1.0"],
71+
setup_requires=["numpy>=1.20", "cython>=0.23"],
72+
install_requires=["numpy>=1.20", "scipy>=1.0"],
7373
classifiers=[
7474
'Development Status :: 5 - Production/Stable',
7575
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)