Skip to content

Commit ea16e59

Browse files
authored
numpy 2 support
1 parent 0534258 commit ea16e59

File tree

5 files changed

+25
-34
lines changed

5 files changed

+25
-34
lines changed

Diff for: .github/workflows/ci.yml

+15-31
Original file line numberDiff line numberDiff line change
@@ -37,107 +37,91 @@ jobs:
3737
matrix:
3838
config:
3939
# NOTE: When updating this list, also update the 'test' job!
40-
- os-image: ubuntu-latest
41-
os-name: linux
42-
docker-image: quay.io/pypa/manylinux2014_x86_64
43-
python-version: '3.8'
44-
numpy-version: '1.17.*'
4540
- os-image: ubuntu-latest
4641
os-name: linux
4742
docker-image: quay.io/pypa/manylinux2014_x86_64
4843
python-version: '3.9'
49-
numpy-version: '1.19.*'
44+
numpy-version: '2.0.*'
5045
- os-image: ubuntu-latest
5146
os-name: linux
5247
docker-image: quay.io/pypa/manylinux2014_x86_64
5348
python-version: '3.10'
54-
numpy-version: '1.21.*'
49+
numpy-version: '2.0.*'
5550
- os-image: ubuntu-latest
5651
os-name: linux
5752
docker-image: quay.io/pypa/manylinux2014_x86_64
5853
python-version: '3.11'
59-
numpy-version: '1.23.*'
54+
numpy-version: '2.0.*'
6055
- os-image: ubuntu-latest
6156
os-name: linux
6257
docker-image: quay.io/pypa/manylinux2014_x86_64
6358
python-version: '3.12'
64-
numpy-version: '1.26.*'
59+
numpy-version: '2.0.*'
6560

66-
- os-image: macos-11
67-
os-name: mac
68-
arch: x86_64
69-
macos-min-version: '10.9'
70-
python-version: '3.8'
71-
numpy-version: '1.17.*'
7261
- os-image: macos-11
7362
os-name: mac
7463
arch: x86_64
7564
macos-min-version: '10.9'
7665
python-version: '3.9'
77-
numpy-version: '1.19.*'
66+
numpy-version: '2.0.*'
7867
- os-image: macos-11
7968
os-name: mac
8069
arch: x86_64
8170
macos-min-version: '10.9'
8271
python-version: '3.10'
83-
numpy-version: '1.21.*'
72+
numpy-version: '2.0.*'
8473
- os-image: macos-11
8574
os-name: mac
8675
arch: x86_64
8776
macos-min-version: '10.9'
8877
python-version: '3.11'
89-
numpy-version: '1.23.*'
78+
numpy-version: '2.0.*'
9079
- os-image: macos-11
9180
os-name: mac
9281
arch: x86_64
9382
macos-min-version: '10.9'
9483
python-version: '3.12'
95-
numpy-version: '1.26.*'
84+
numpy-version: '2.0.*'
9685

9786
- os-image: macos-14 # M1
9887
os-name: mac
9988
arch: arm64
10089
macos-min-version: '11.0'
10190
python-version: '3.10'
102-
numpy-version: '1.21.*'
91+
numpy-version: '2.0.*'
10392
- os-image: macos-14 # M1
10493
os-name: mac
10594
arch: arm64
10695
macos-min-version: '11.0'
10796
python-version: '3.11'
108-
numpy-version: '1.23.*'
97+
numpy-version: '2.0.*'
10998
- os-image: macos-14 # M1
11099
os-name: mac
111100
arch: arm64
112101
macos-min-version: '11.0'
113102
python-version: '3.12'
114-
numpy-version: '1.26.*'
103+
numpy-version: '2.0.*'
115104

116-
- os-image: windows-latest
117-
os-name: windows
118-
python-version: '3.8'
119-
python-arch: '64'
120-
numpy-version: '1.17.*'
121105
- os-image: windows-latest
122106
os-name: windows
123107
python-version: '3.9'
124108
python-arch: '64'
125-
numpy-version: '1.19.*'
109+
numpy-version: '2.0.*'
126110
- os-image: windows-latest
127111
os-name: windows
128112
python-version: '3.10'
129113
python-arch: '64'
130-
numpy-version: '1.21.*'
114+
numpy-version: '2.0.*'
131115
- os-image: windows-latest
132116
os-name: windows
133117
python-version: '3.11'
134118
python-arch: '64'
135-
numpy-version: '1.23.*'
119+
numpy-version: '2.0.*'
136120
- os-image: windows-latest
137121
os-name: windows
138122
python-version: '3.12'
139123
python-arch: '64'
140-
numpy-version: '1.26.*'
124+
numpy-version: '2.0.*'
141125

142126
permissions:
143127
security-events: write

Diff for: CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.12.0] - 2024-06-23
8+
### Changed
9+
- Require numpy 2.0 or higher.
10+
11+
### Removed
12+
- Drop Python 3.8 support.
13+
714
## [0.11.1] - 2023-02-08
815
### Added
916
- macOS arm64 support (Python 3.10 and higher).

Diff for: pyvirtualcam/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.11.1"
1+
__version__ = "0.12.0"

Diff for: pyvirtualcam/camera.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def send(self, frame: np.ndarray) -> None:
345345

346346
print(s)
347347

348-
frame = np.array(frame.reshape(-1), copy=False, order='C')
348+
frame = np.asarray(frame.reshape(-1), order='C')
349349
self._backend.send(frame)
350350

351351
@property

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def build_extensions(self):
155155
ext_modules=ext_modules,
156156
packages = find_packages(),
157157
setup_requires=['pybind11>=2.6.0'],
158-
install_requires=['numpy'],
158+
install_requires=['numpy>=2.0'],
159159
cmdclass={'build_ext': BuildExt},
160160
zip_safe=False,
161161
)

0 commit comments

Comments
 (0)