Skip to content

Commit

Permalink
Travis and Appveyor build for Python 3.9 and 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhers committed Aug 14, 2022
1 parent 3e1b48c commit c418b09
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ environment:
- PYTHON_VERSION: 3.6
- PYTHON_VERSION: 3.7
- PYTHON_VERSION: 3.8
- PYTHON_VERSION: 3.9
- PYTHON_VERSION: 3.10

configuration: Release

Expand Down
92 changes: 92 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ jobs:
compiler: clang
language: cpp
env: PYVER=3.8 PYNUM=3 PYTHON_INSTALL=manual
- os: osx
compiler: clang
language: cpp
env: PYVER=3.9 PYNUM=3 PYTHON_INSTALL=manual
- os: osx
compiler: clang
language: cpp
env: PYVER=3.10 PYNUM=3 PYTHON_INSTALL=manual
- os: osx
compiler: clang
language: cpp
Expand All @@ -60,6 +68,14 @@ jobs:
compiler: clang
language: cpp
env: PYVER=3.8 PYNUM=3 PYTHON_INSTALL=pip BUILD_ARCH=x86_64
- os: osx
compiler: clang
language: cpp
env: PYVER=3.9 PYNUM=3 PYTHON_INSTALL=pip BUILD_ARCH=x86_64
- os: osx
compiler: clang
language: cpp
env: PYVER=3.10 PYNUM=3 PYTHON_INSTALL=pip BUILD_ARCH=x86_64
- os: linux
compiler: gcc
language: cpp
Expand Down Expand Up @@ -119,6 +135,14 @@ jobs:
compiler: gcc
language: cpp
env: PYVER=3.8 PYNUM=3 PYTHON_INSTALL=manual
- os: linux
compiler: gcc
language: cpp
env: PYVER=3.9 PYNUM=3 PYTHON_INSTALL=manual
- os: linux
compiler: gcc
language: cpp
env: PYVER=3.10 PYNUM=3 PYTHON_INSTALL=manual
- os: linux
dist: xenial
compiler: gcc
Expand All @@ -133,6 +157,20 @@ jobs:
python: 3.8
env: PYVER=3.8 PYNUM=3 PYTHON_INSTALL=pip BUILD_ARCH=i686
if: type = cron OR tag IS present
- os: linux
dist: xenial
compiler: gcc
language: python
python: 3.9
env: PYVER=3.9 PYNUM=3 PYTHON_INSTALL=pip BUILD_ARCH=i686
if: type = cron OR tag IS present
- os: linux
dist: xenial
compiler: gcc
language: python
python: 3.10
env: PYVER=3.10 PYNUM=3 PYTHON_INSTALL=pip BUILD_ARCH=i686
if: type = cron OR tag IS present
- os: linux
dist: xenial
compiler: gcc
Expand All @@ -145,6 +183,18 @@ jobs:
language: python
python: 3.8
env: PYVER=3.8 PYNUM=3 PYTHON_INSTALL=pip BUILD_ARCH=x86_64
- os: linux
dist: xenial
compiler: gcc
language: python
python: 3.9
env: PYVER=3.9 PYNUM=3 PYTHON_INSTALL=pip BUILD_ARCH=x86_64
- os: linux
dist: xenial
compiler: gcc
language: python
python: 3.10
env: PYVER=3.10 PYNUM=3 PYTHON_INSTALL=pip BUILD_ARCH=x86_64
- os: linux
compiler: gcc
language: cpp
Expand All @@ -153,6 +203,14 @@ jobs:
compiler: gcc
language: cpp
env: PYVER=3.8 PYNUM=3 PYTHON_INSTALL=manual BACKEND=cuda
- os: linux
compiler: gcc
language: cpp
env: PYVER=3.9 PYNUM=3 PYTHON_INSTALL=manual BACKEND=cuda
- os: linux
compiler: gcc
language: cpp
env: PYVER=3.10 PYNUM=3 PYTHON_INSTALL=manual BACKEND=cuda
- stage: test_pip
os: osx
env: PYVER=2.7 PYNUM=2
Expand All @@ -174,6 +232,14 @@ jobs:
env: PYVER=3.8 PYNUM=3
before_script: pip install dynet
script: python tests/python/test.py
- os: osx
env: PYVER=3.9 PYNUM=3
before_script: pip install dynet
script: python tests/python/test.py
- os: osx
env: PYVER=3.10 PYNUM=3
before_script: pip install dynet
script: python tests/python/test.py
- os: linux
language: python
python: 2.7
Expand Down Expand Up @@ -207,6 +273,18 @@ jobs:
python: 3.8
before_script: pip install dynet
script: python tests/python/test.py
- os: linux
dist: xenial
language: python
python: 3.9
before_script: pip install dynet
script: python tests/python/test.py
- os: linux
dist: xenial
language: python
python: 3.10
before_script: pip install dynet
script: python tests/python/test.py
- os: linux
dist: xenial
language: python
Expand All @@ -221,6 +299,20 @@ jobs:
before_script: .travis/fix_version.sh
script: python setup.py sdist
if: tag IS present
- os: linux
dist: xenial
language: python
python: 3.9
before_script: .travis/fix_version.sh
script: python setup.py sdist
if: tag IS present
- os: linux
dist: xenial
language: python
python: 3.10
before_script: .travis/fix_version.sh
script: python setup.py sdist
if: tag IS present

install:
- travis_retry .travis/install_dependencies.sh
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ def run(self):
"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",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
author="Graham Neubig",
Expand Down

0 comments on commit c418b09

Please sign in to comment.