Support Python 3.10 and Drop Python 3.5 (#487)

* linux: Use manylinux2014
* mac: Drop Python 3.6 too
This commit is contained in:
Inada Naoki 2021-11-16 16:19:47 +09:00 committed by GitHub
parent 9b84e490e7
commit b3f7254192
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 49 additions and 24 deletions

View file

@ -47,6 +47,17 @@ jobs:
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
uses: actions/setup-python@v1
with:

View file

@ -35,6 +35,23 @@ jobs:
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
uses: actions/setup-python@v1
with:
@ -69,23 +86,6 @@ jobs:
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
uses: actions/upload-artifact@v1
with:

View file

@ -77,6 +77,20 @@ jobs:
run: |
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
uses: actions/upload-artifact@v1
with:

View file

@ -36,8 +36,8 @@ update-docker:
.PHONY: 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/manylinux1_x86_64 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/manylinux2014_x86_64 bash docker/buildwheel.sh
.PHONY: linux-arm64-wheel
linux-arm64-wheel:

View file

@ -7,10 +7,12 @@ set -e -x
ARCH=`uname -p`
echo "arch=$ARCH"
ls /opt/python
for V in "${PYTHON_VERSIONS[@]}"; do
PYBIN=/opt/python/$V/bin
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
cd dist

View file

@ -1,7 +1,7 @@
PYTHON_VERSIONS=(
cp310-cp310
cp39-cp39
cp38-cp38
cp37-cp37m
cp36-cp36m
cp35-cp35m
)

View file

@ -125,14 +125,12 @@ setup(
},
license="Apache 2.0",
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Intended Audience :: Developers",