From 58a321e3c0b1db9388e549e2707961e28589d368 Mon Sep 17 00:00:00 2001
From: tqtg <tuantq.vnu@gmail.com>
Date: Sun, 11 Jul 2021 13:31:36 +0800
Subject: [PATCH] support py39

---
 .appveyor.yml                        | 2 +-
 .circleci/config.yml                 | 2 +-
 .github/workflows/python-package.yml | 4 ++--
 .github/workflows/python-publish.yml | 8 +++++---
 setup.py                             | 1 +
 5 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/.appveyor.yml b/.appveyor.yml
index 2b3345ba..794a9d97 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -25,7 +25,7 @@ install:
   - set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%
   - conda config --set always_yes yes --set changeps1 no
   - conda info -a
-  - conda create -q -n test-environment python=%PYTHON_VERSION% numpy scipy
+  - conda create -q -n test-environment python=%PYTHON_VERSION% numpy scipy Cython
   - activate test-environment
   - python -m pip install --upgrade pip
   - pip install wheel twine pytest
diff --git a/.circleci/config.yml b/.circleci/config.yml
index bbc97969..2e17815a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -18,7 +18,7 @@ jobs:
           no_output_timeout: 30m
           command: |
             sudo pip install --upgrade pip
-            sudo pip install --only-binary=numpy,scipy numpy scipy pytest pytest-cov codecov
+            sudo pip install --only-binary=numpy,scipy numpy scipy Cython pytest pytest-cov codecov
             sudo pip install -e .[tests]
       - save_cache:
           key: deps9-{{ .Branch }}
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml
index fbbb2540..e084c1e7 100644
--- a/.github/workflows/python-package.yml
+++ b/.github/workflows/python-package.yml
@@ -16,7 +16,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        python-version: [3.6, 3.7, 3.8]
+        python-version: [3.6, 3.7, 3.8, 3.9]
 
     steps:
     - uses: actions/checkout@v2
@@ -29,7 +29,7 @@ jobs:
     - name: Install dependencies
       run: |
         python -m pip install --upgrade pip
-        python -m pip install --only-binary=numpy,scipy numpy scipy pytest pytest-cov codecov flake8
+        python -m pip install --only-binary=numpy,scipy numpy scipy Cython pytest pytest-cov codecov flake8
         python -m pip install -e .[tests]
         if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
     - name: Lint with flake8
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml
index afc08ae8..85a5e34b 100644
--- a/.github/workflows/python-publish.yml
+++ b/.github/workflows/python-publish.yml
@@ -11,6 +11,8 @@ name: upload
 on:
   release:
     types: [published]
+  push:
+    branches: [ master ]
 
 jobs:
   build-wheels:
@@ -19,7 +21,7 @@ jobs:
     strategy:
       matrix:
         os: [ubuntu-latest, macos-latest, windows-latest]
-        python-version: [3.6, 3.7, 3.8]
+        python-version: [3.6, 3.7, 3.8, 3.9]
         
     steps:
     - uses: actions/checkout@v2
@@ -42,7 +44,7 @@ jobs:
     - name: Install dependencies
       run: |
         python -m pip install --upgrade pip
-        python -m pip install --only-binary=numpy,scipy numpy scipy wheel
+        python -m pip install --only-binary=numpy,scipy numpy scipy Cython wheel
     
     - name: Build wheels
       run: python setup.py bdist_wheel
@@ -80,7 +82,7 @@ jobs:
     - name: Install dependencies
       run: |
         python -m pip install --upgrade pip
-        python -m pip install --only-binary=numpy,scipy numpy scipy wheel
+        python -m pip install --only-binary=numpy,scipy numpy scipy Cython wheel
 
     - name: Build source tar file
       run: python setup.py sdist
diff --git a/setup.py b/setup.py
index b198a4b6..135fb283 100644
--- a/setup.py
+++ b/setup.py
@@ -303,6 +303,7 @@ setup(
         "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
+        "Programming Language :: Python :: 3.9",
         "License :: OSI Approved :: Apache Software License",
         "Topic :: Software Development",
         "Topic :: Scientific/Engineering",
-- 
GitLab