Skip to content

Commit e4d95fa

Browse files
authored
Update to enable python 3.9 building on Linux (#1314)
* Update to enable python 3.9 building on Linux Signed-off-by: Yong Tang <[email protected]> * Switch to always use ubuntu:20.04 Signed-off-by: Yong Tang <[email protected]>
1 parent ac75e1c commit e4d95fa

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ jobs:
252252
runs-on: ubuntu-latest
253253
strategy:
254254
matrix:
255-
python: ['3.6', '3.7', '3.8']
255+
python: ['3.6', '3.7', '3.8', '3.9']
256256
steps:
257257
- uses: actions/checkout@v2
258258
- uses: actions/download-artifact@v1
@@ -281,16 +281,10 @@ jobs:
281281
linux-test:
282282
name: Test ${{ matrix.python }} Linux
283283
needs: linux-wheel
284-
runs-on: ${{ matrix.os }}
284+
runs-on: ubuntu-20.04
285285
strategy:
286286
matrix:
287-
os: [ubuntu-18.04, ubuntu-20.04]
288-
python: ['3.7', '3.8']
289-
exclude:
290-
- os: ubuntu-18.04
291-
python: '3.8'
292-
- os: ubuntu-20.04
293-
python: '3.7'
287+
python: ['3.7', '3.8', '3.9']
294288
steps:
295289
- uses: actions/checkout@v2
296290
- uses: actions/download-artifact@v1
@@ -317,7 +311,7 @@ jobs:
317311
set -x -e
318312
df -h
319313
docker run -i --rm -v $PWD:/v -w /v --net=host \
320-
buildpack-deps:$(echo ${{ matrix.os }} | awk -F- '{print $2}') \
314+
buildpack-deps:20.04 \
321315
bash -x -e .github/workflows/build.wheel.sh python${{ matrix.python }}
322316
323317
windows-bazel:
@@ -469,6 +463,10 @@ jobs:
469463
with:
470464
name: Linux-3.8-wheel
471465
path: Linux-3.8-wheel
466+
- uses: actions/download-artifact@v1
467+
with:
468+
name: Linux-3.9-wheel
469+
path: Linux-3.9-wheel
472470
- uses: actions/download-artifact@v1
473471
with:
474472
name: Windows-3.6-wheel
@@ -490,6 +488,7 @@ jobs:
490488
cp Linux-3.6-wheel/*.whl wheelhouse/
491489
cp Linux-3.7-wheel/*.whl wheelhouse/
492490
cp Linux-3.8-wheel/*.whl wheelhouse/
491+
cp Linux-3.9-wheel/*.whl wheelhouse/
493492
cp Windows-3.6-wheel/*.whl wheelhouse/
494493
cp Windows-3.7-wheel/*.whl wheelhouse/
495494
cp Windows-3.8-wheel/*.whl wheelhouse/
@@ -585,11 +584,10 @@ jobs:
585584
name: Nightly ${{ matrix.python }} Linux
586585
if: github.event_name == 'push'
587586
needs: [build-number, release]
588-
runs-on: ${{ matrix.os }}
587+
runs-on: ubuntu-20.04
589588
strategy:
590589
matrix:
591-
os: [ubuntu-18.04]
592-
python: ['3.6', '3.7', '3.8']
590+
python: ['3.6', '3.7', '3.8', '3.9']
593591
steps:
594592
- uses: actions/download-artifact@v1
595593
with:
@@ -685,6 +683,10 @@ jobs:
685683
with:
686684
name: Linux-3.8-nightly
687685
path: Linux-3.8-nightly
686+
- uses: actions/download-artifact@v1
687+
with:
688+
name: Linux-3.9-nightly
689+
path: Linux-3.9-nightly
688690
- uses: actions/download-artifact@v1
689691
with:
690692
name: Windows-3.6-nightly
@@ -706,6 +708,7 @@ jobs:
706708
cp Linux-3.6-nightly/*.whl dist/
707709
cp Linux-3.7-nightly/*.whl dist/
708710
cp Linux-3.8-nightly/*.whl dist/
711+
cp Linux-3.9-nightly/*.whl dist/
709712
cp Windows-3.6-nightly/*.whl dist/
710713
cp Windows-3.7-nightly/*.whl dist/
711714
cp Windows-3.8-nightly/*.whl dist/

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def has_ext_modules(self):
134134
],
135135
keywords="tensorflow io machine learning",
136136
packages=setuptools.find_packages(where=".", exclude=["tests"]),
137-
python_requires=">=3.5, <3.9",
137+
python_requires=">=3.5, <3.10",
138138
install_requires=[package],
139139
package_data={".": ["*.so"],},
140140
project_urls={

0 commit comments

Comments
 (0)