Skip to content

Commit 8f06319

Browse files
committed
3.1.0
Fix the bugs in the workflow.
1 parent 66c1a7e commit 8f06319

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Diff for: .github/workflows/python-publish.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ jobs:
3333
pip install setuptools wheel twine
3434
pip install -r requirements.txt
3535
- name: Build package
36-
run: python setup.py bdist_wheel
36+
run: |
37+
if [ "$RUNNER_OS" == "Linux" ]; then
38+
python setup.py bdist_wheel --plat-name manylinux1_x86_64
39+
elif [ "$RUNNER_OS" == "Windows" ]; then
40+
python setup.py bdist_wheel
41+
else
42+
echo "$RUNNER_OS not supported"
43+
exit 1
44+
fi
3745
- name: Build and publish
3846
env:
3947
TWINE_USERNAME: __token__

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def has_ext_modules(foo):
169169
'video-stream', 'python-c-api', 'rtsp-push', 'rtmp-push',
170170
'rtsp-player', 'rtmp-player', 'ffmpeg-encoder'
171171
],
172-
python_requires='=={0}'.format(PY_VERSION),
172+
python_requires='>=3.5',
173173
license='GPLv3',
174174
install_requires=INSTALL_REQUIRES_FILE,
175175
distclass=BinaryDistribution,

0 commit comments

Comments
 (0)