Codebase list python-msgpack / b3f7254
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
7 changed file(s) with 49 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
4646 pytest -v test
4747
4848
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
4960 - name: Set up Python 3.9
5061 uses: actions/setup-python@v1
5162 with:
2121 pip install -U pip
2222 pip install -r requirements.txt
2323 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"
2441
2542 - name: Build wheel
2643 run: |
6885 pytest -v test
6986
7087
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
8888 - name: Upload Wheels
8989 uses: actions/upload-artifact@v1
9090 with:
7676 run: |
7777 ci/runtests.sh
7878
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
7993 - name: Upload Wheels
8094 uses: actions/upload-artifact@v1
8195 with:
3535
3636 .PHONY: linux-wheel
3737 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
4040
4141 .PHONY: linux-arm64-wheel
4242 linux-arm64-wheel:
66 ARCH=`uname -p`
77 echo "arch=$ARCH"
88
9 ls /opt/python
10
911 for V in "${PYTHON_VERSIONS[@]}"; do
1012 PYBIN=/opt/python/$V/bin
1113 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
1315 done
1416
1517 cd dist
00 PYTHON_VERSIONS=(
1 cp310-cp310
12 cp39-cp39
23 cp38-cp38
34 cp37-cp37m
45 cp36-cp36m
5 cp35-cp35m
66 )
124124 },
125125 license="Apache 2.0",
126126 classifiers=[
127 "Programming Language :: Python :: 2",
128 "Programming Language :: Python :: 2.7",
129127 "Programming Language :: Python :: 3",
130 "Programming Language :: Python :: 3.5",
131128 "Programming Language :: Python :: 3.6",
132129 "Programming Language :: Python :: 3.7",
133130 "Programming Language :: Python :: 3.8",
134131 "Programming Language :: Python :: 3.9",
132 "Programming Language :: Python :: 3.10",
135133 "Programming Language :: Python :: Implementation :: CPython",
136134 "Programming Language :: Python :: Implementation :: PyPy",
137135 "Intended Audience :: Developers",