Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update to enable python 3.9 building on Linux #1314

Merged
merged 2 commits into from
Feb 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.6', '3.7', '3.8']
python: ['3.6', '3.7', '3.8', '3.9']
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v1
Expand Down Expand Up @@ -281,16 +281,10 @@ jobs:
linux-test:
name: Test ${{ matrix.python }} Linux
needs: linux-wheel
runs-on: ${{ matrix.os }}
runs-on: ubuntu-20.04
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
python: ['3.7', '3.8']
exclude:
- os: ubuntu-18.04
python: '3.8'
- os: ubuntu-20.04
python: '3.7'
python: ['3.7', '3.8', '3.9']
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v1
Expand All @@ -317,7 +311,7 @@ jobs:
set -x -e
df -h
docker run -i --rm -v $PWD:/v -w /v --net=host \
buildpack-deps:$(echo ${{ matrix.os }} | awk -F- '{print $2}') \
buildpack-deps:20.04 \
bash -x -e .github/workflows/build.wheel.sh python${{ matrix.python }}

windows-bazel:
Expand Down Expand Up @@ -469,6 +463,10 @@ jobs:
with:
name: Linux-3.8-wheel
path: Linux-3.8-wheel
- uses: actions/download-artifact@v1
with:
name: Linux-3.9-wheel
path: Linux-3.9-wheel
- uses: actions/download-artifact@v1
with:
name: Windows-3.6-wheel
Expand All @@ -490,6 +488,7 @@ jobs:
cp Linux-3.6-wheel/*.whl wheelhouse/
cp Linux-3.7-wheel/*.whl wheelhouse/
cp Linux-3.8-wheel/*.whl wheelhouse/
cp Linux-3.9-wheel/*.whl wheelhouse/
cp Windows-3.6-wheel/*.whl wheelhouse/
cp Windows-3.7-wheel/*.whl wheelhouse/
cp Windows-3.8-wheel/*.whl wheelhouse/
Expand Down Expand Up @@ -585,11 +584,10 @@ jobs:
name: Nightly ${{ matrix.python }} Linux
if: github.event_name == 'push'
needs: [build-number, release]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-20.04
strategy:
matrix:
os: [ubuntu-18.04]
python: ['3.6', '3.7', '3.8']
python: ['3.6', '3.7', '3.8', '3.9']
steps:
- uses: actions/download-artifact@v1
with:
Expand Down Expand Up @@ -685,6 +683,10 @@ jobs:
with:
name: Linux-3.8-nightly
path: Linux-3.8-nightly
- uses: actions/download-artifact@v1
with:
name: Linux-3.9-nightly
path: Linux-3.9-nightly
- uses: actions/download-artifact@v1
with:
name: Windows-3.6-nightly
Expand All @@ -706,6 +708,7 @@ jobs:
cp Linux-3.6-nightly/*.whl dist/
cp Linux-3.7-nightly/*.whl dist/
cp Linux-3.8-nightly/*.whl dist/
cp Linux-3.9-nightly/*.whl dist/
cp Windows-3.6-nightly/*.whl dist/
cp Windows-3.7-nightly/*.whl dist/
cp Windows-3.8-nightly/*.whl dist/
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def has_ext_modules(self):
],
keywords="tensorflow io machine learning",
packages=setuptools.find_packages(where=".", exclude=["tests"]),
python_requires=">=3.5, <3.9",
python_requires=">=3.5, <3.10",
install_requires=[package],
package_data={".": ["*.so"],},
project_urls={
Expand Down