Support Python 3.10 and Drop Python 3.5 (#487)
* linux: Use manylinux2014
* mac: Drop Python 3.6 too
Inada Naoki authored 2 years ago
GitHub committed 2 years ago
46 | 46 |
pytest -v test
|
47 | 47 |
|
48 | 48 |
|
|
49 |
- name: Set up Python 3.10
|
|
50 |
uses: actions/setup-python@v1
|
|
51 |
with:
|
|
52 |
python-version: "3.10"
|
|
53 |
|
|
54 |
- name: Run test (3.10)
|
|
55 |
run: |
|
|
56 |
pip install pytest
|
|
57 |
pip install -v msgpack --only-binary :all: --no-index -f dist/wheelhouse
|
|
58 |
pytest -v test
|
|
59 |
|
49 | 60 |
- name: Set up Python 3.9
|
50 | 61 |
uses: actions/setup-python@v1
|
51 | 62 |
with:
|
21 | 21 |
pip install -U pip
|
22 | 22 |
pip install -r requirements.txt
|
23 | 23 |
make cython
|
|
24 |
|
|
25 |
- name: Build wheel
|
|
26 |
run: |
|
|
27 |
pip install setuptools wheel
|
|
28 |
python setup.py bdist_wheel
|
|
29 |
|
|
30 |
- name: Run test
|
|
31 |
run: |
|
|
32 |
pip install pytest
|
|
33 |
pip install -v msgpack --only-binary :all: -f dist/ --no-index
|
|
34 |
pytest -v test
|
|
35 |
|
|
36 |
|
|
37 |
- name: Set up Python 3.10
|
|
38 |
uses: actions/setup-python@v1
|
|
39 |
with:
|
|
40 |
python-version: "3.10"
|
24 | 41 |
|
25 | 42 |
- name: Build wheel
|
26 | 43 |
run: |
|
|
68 | 85 |
pytest -v test
|
69 | 86 |
|
70 | 87 |
|
71 | |
- name: Set up Python 3.6
|
72 | |
uses: actions/setup-python@v1
|
73 | |
with:
|
74 | |
python-version: "3.6"
|
75 | |
|
76 | |
- name: Build wheel
|
77 | |
run: |
|
78 | |
pip install setuptools wheel
|
79 | |
python setup.py bdist_wheel
|
80 | |
|
81 | |
- name: Run test
|
82 | |
run: |
|
83 | |
pip install pytest
|
84 | |
pip install -v msgpack --only-binary :all: -f dist/ --no-index
|
85 | |
pytest -v test
|
86 | |
|
87 | |
|
88 | 88 |
- name: Upload Wheels
|
89 | 89 |
uses: actions/upload-artifact@v1
|
90 | 90 |
with:
|
76 | 76 |
run: |
|
77 | 77 |
ci/runtests.sh
|
78 | 78 |
|
|
79 |
- name: Python 3.10 (amd64)
|
|
80 |
env:
|
|
81 |
PYTHON: "py -3.10-64"
|
|
82 |
shell: bash
|
|
83 |
run: |
|
|
84 |
ci/runtests.sh
|
|
85 |
|
|
86 |
- name: Python 3.10 (x86)
|
|
87 |
env:
|
|
88 |
PYTHON: "py -3.10-32"
|
|
89 |
shell: bash
|
|
90 |
run: |
|
|
91 |
ci/runtests.sh
|
|
92 |
|
79 | 93 |
- name: Upload Wheels
|
80 | 94 |
uses: actions/upload-artifact@v1
|
81 | 95 |
with:
|
35 | 35 |
|
36 | 36 |
.PHONY: linux-wheel
|
37 | 37 |
linux-wheel:
|
38 | |
docker run --rm -v `pwd`:/project -w /project quay.io/pypa/manylinux1_i686 bash docker/buildwheel.sh
|
39 | |
docker run --rm -v `pwd`:/project -w /project quay.io/pypa/manylinux1_x86_64 bash docker/buildwheel.sh
|
|
38 |
docker run --rm -v `pwd`:/project -w /project quay.io/pypa/manylinux2014_i686 bash docker/buildwheel.sh
|
|
39 |
docker run --rm -v `pwd`:/project -w /project quay.io/pypa/manylinux2014_x86_64 bash docker/buildwheel.sh
|
40 | 40 |
|
41 | 41 |
.PHONY: linux-arm64-wheel
|
42 | 42 |
linux-arm64-wheel:
|
6 | 6 |
ARCH=`uname -p`
|
7 | 7 |
echo "arch=$ARCH"
|
8 | 8 |
|
|
9 |
ls /opt/python
|
|
10 |
|
9 | 11 |
for V in "${PYTHON_VERSIONS[@]}"; do
|
10 | 12 |
PYBIN=/opt/python/$V/bin
|
11 | 13 |
rm -rf build/ # Avoid lib build by narrow Python is used by wide python
|
12 | |
$PYBIN/python setup.py bdist_wheel
|
|
14 |
$PYBIN/python -m build -w
|
13 | 15 |
done
|
14 | 16 |
|
15 | 17 |
cd dist
|
0 | 0 |
PYTHON_VERSIONS=(
|
|
1 |
cp310-cp310
|
1 | 2 |
cp39-cp39
|
2 | 3 |
cp38-cp38
|
3 | 4 |
cp37-cp37m
|
4 | 5 |
cp36-cp36m
|
5 | |
cp35-cp35m
|
6 | 6 |
)
|
124 | 124 |
},
|
125 | 125 |
license="Apache 2.0",
|
126 | 126 |
classifiers=[
|
127 | |
"Programming Language :: Python :: 2",
|
128 | |
"Programming Language :: Python :: 2.7",
|
129 | 127 |
"Programming Language :: Python :: 3",
|
130 | |
"Programming Language :: Python :: 3.5",
|
131 | 128 |
"Programming Language :: Python :: 3.6",
|
132 | 129 |
"Programming Language :: Python :: 3.7",
|
133 | 130 |
"Programming Language :: Python :: 3.8",
|
134 | 131 |
"Programming Language :: Python :: 3.9",
|
|
132 |
"Programming Language :: Python :: 3.10",
|
135 | 133 |
"Programming Language :: Python :: Implementation :: CPython",
|
136 | 134 |
"Programming Language :: Python :: Implementation :: PyPy",
|
137 | 135 |
"Intended Audience :: Developers",
|