mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 12:03:15 +00:00
Support Python 3.10 and Drop Python 3.5 (#487)
* linux: Use manylinux2014 * mac: Drop Python 3.6 too
This commit is contained in:
parent
9b84e490e7
commit
b3f7254192
7 changed files with 49 additions and 24 deletions
11
.github/workflows/linux.yml
vendored
11
.github/workflows/linux.yml
vendored
|
@ -47,6 +47,17 @@ jobs:
|
||||||
pytest -v test
|
pytest -v test
|
||||||
|
|
||||||
|
|
||||||
|
- name: Set up Python 3.10
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: "3.10"
|
||||||
|
|
||||||
|
- name: Run test (3.10)
|
||||||
|
run: |
|
||||||
|
pip install pytest
|
||||||
|
pip install -v msgpack --only-binary :all: --no-index -f dist/wheelhouse
|
||||||
|
pytest -v test
|
||||||
|
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
|
|
34
.github/workflows/mac.yml
vendored
34
.github/workflows/mac.yml
vendored
|
@ -35,6 +35,23 @@ jobs:
|
||||||
pytest -v test
|
pytest -v test
|
||||||
|
|
||||||
|
|
||||||
|
- name: Set up Python 3.10
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: "3.10"
|
||||||
|
|
||||||
|
- name: Build wheel
|
||||||
|
run: |
|
||||||
|
pip install setuptools wheel
|
||||||
|
python setup.py bdist_wheel
|
||||||
|
|
||||||
|
- name: Run test
|
||||||
|
run: |
|
||||||
|
pip install pytest
|
||||||
|
pip install -v msgpack --only-binary :all: -f dist/ --no-index
|
||||||
|
pytest -v test
|
||||||
|
|
||||||
|
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
|
@ -69,23 +86,6 @@ jobs:
|
||||||
pytest -v test
|
pytest -v test
|
||||||
|
|
||||||
|
|
||||||
- name: Set up Python 3.6
|
|
||||||
uses: actions/setup-python@v1
|
|
||||||
with:
|
|
||||||
python-version: "3.6"
|
|
||||||
|
|
||||||
- name: Build wheel
|
|
||||||
run: |
|
|
||||||
pip install setuptools wheel
|
|
||||||
python setup.py bdist_wheel
|
|
||||||
|
|
||||||
- name: Run test
|
|
||||||
run: |
|
|
||||||
pip install pytest
|
|
||||||
pip install -v msgpack --only-binary :all: -f dist/ --no-index
|
|
||||||
pytest -v test
|
|
||||||
|
|
||||||
|
|
||||||
- name: Upload Wheels
|
- name: Upload Wheels
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
|
14
.github/workflows/windows.yaml
vendored
14
.github/workflows/windows.yaml
vendored
|
@ -77,6 +77,20 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
ci/runtests.sh
|
ci/runtests.sh
|
||||||
|
|
||||||
|
- name: Python 3.10 (amd64)
|
||||||
|
env:
|
||||||
|
PYTHON: "py -3.10-64"
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
ci/runtests.sh
|
||||||
|
|
||||||
|
- name: Python 3.10 (x86)
|
||||||
|
env:
|
||||||
|
PYTHON: "py -3.10-32"
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
ci/runtests.sh
|
||||||
|
|
||||||
- name: Upload Wheels
|
- name: Upload Wheels
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -36,8 +36,8 @@ update-docker:
|
||||||
|
|
||||||
.PHONY: linux-wheel
|
.PHONY: linux-wheel
|
||||||
linux-wheel:
|
linux-wheel:
|
||||||
docker run --rm -v `pwd`:/project -w /project quay.io/pypa/manylinux1_i686 bash docker/buildwheel.sh
|
docker run --rm -v `pwd`:/project -w /project quay.io/pypa/manylinux2014_i686 bash docker/buildwheel.sh
|
||||||
docker run --rm -v `pwd`:/project -w /project quay.io/pypa/manylinux1_x86_64 bash docker/buildwheel.sh
|
docker run --rm -v `pwd`:/project -w /project quay.io/pypa/manylinux2014_x86_64 bash docker/buildwheel.sh
|
||||||
|
|
||||||
.PHONY: linux-arm64-wheel
|
.PHONY: linux-arm64-wheel
|
||||||
linux-arm64-wheel:
|
linux-arm64-wheel:
|
||||||
|
|
|
@ -7,10 +7,12 @@ set -e -x
|
||||||
ARCH=`uname -p`
|
ARCH=`uname -p`
|
||||||
echo "arch=$ARCH"
|
echo "arch=$ARCH"
|
||||||
|
|
||||||
|
ls /opt/python
|
||||||
|
|
||||||
for V in "${PYTHON_VERSIONS[@]}"; do
|
for V in "${PYTHON_VERSIONS[@]}"; do
|
||||||
PYBIN=/opt/python/$V/bin
|
PYBIN=/opt/python/$V/bin
|
||||||
rm -rf build/ # Avoid lib build by narrow Python is used by wide python
|
rm -rf build/ # Avoid lib build by narrow Python is used by wide python
|
||||||
$PYBIN/python setup.py bdist_wheel
|
$PYBIN/python -m build -w
|
||||||
done
|
done
|
||||||
|
|
||||||
cd dist
|
cd dist
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
PYTHON_VERSIONS=(
|
PYTHON_VERSIONS=(
|
||||||
|
cp310-cp310
|
||||||
cp39-cp39
|
cp39-cp39
|
||||||
cp38-cp38
|
cp38-cp38
|
||||||
cp37-cp37m
|
cp37-cp37m
|
||||||
cp36-cp36m
|
cp36-cp36m
|
||||||
cp35-cp35m
|
|
||||||
)
|
)
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -125,14 +125,12 @@ setup(
|
||||||
},
|
},
|
||||||
license="Apache 2.0",
|
license="Apache 2.0",
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Programming Language :: Python :: 2",
|
|
||||||
"Programming Language :: Python :: 2.7",
|
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Programming Language :: Python :: 3.5",
|
|
||||||
"Programming Language :: Python :: 3.6",
|
"Programming Language :: Python :: 3.6",
|
||||||
"Programming Language :: Python :: 3.7",
|
"Programming Language :: Python :: 3.7",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: Implementation :: CPython",
|
"Programming Language :: Python :: Implementation :: CPython",
|
||||||
"Programming Language :: Python :: Implementation :: PyPy",
|
"Programming Language :: Python :: Implementation :: PyPy",
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue