Skip to content

Commit 7ac26f0

Browse files
authored
Better define the install requirements (#52)
1 parent a11d28e commit 7ac26f0

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

docs/changes/v1.2.0.rst

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.. _v1.2.0:
2+
3+
1.2.0
4+
=====
5+
6+
Fixes
7+
.....
8+
9+
* Fixed being unable to build from source using the PyPI package
10+
11+
Changes
12+
.......
13+
14+
* Dropped support for Python 3.6
15+
* Added support for Python 3.10

openjpeg/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import re
44

55

6-
__version__ = '1.2.0'
6+
__version__ = '1.2.1'
77

88

99
VERSION_PATTERN = r"""

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
cython
2-
numpy>=1.20.0
1+
numpy>=1.20.0; python_version == '3.7'
2+
numpy>=1.22.0; python_version >= '3.8'

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ def setup_oj():
142142
"Topic :: Software Development :: Libraries",
143143
],
144144
python_requires = ">=3.7",
145-
install_requires = ["numpy>=1.20"],
145+
install_requires = [
146+
"numpy >= 1.20; python_version == '3.7'",
147+
"numpy >= 1.22; python_version >= '3.8'",
148+
],
146149
ext_modules = [ext],
147150
# Plugin registrations
148151
entry_points = {

0 commit comments

Comments
 (0)