Skip to content

Commit

Permalink
added python 3.9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Gal Ben David committed Dec 14, 2020
1 parent df08414 commit 920f8fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,30 @@ name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8, pypy3]
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
steps:
- uses: actions/checkout@v1
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Ubuntu packages
run: >-
sudo apt install g++-9;
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9;
- name: Test module
run: >-
python setup.py test
deploy:
needs: build
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v1
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Build a source tarball
Expand Down
9 changes: 3 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='PySubstringSearch',
version='0.3.0',
version='0.3.1',
author='Gal Ben David',
author_email='[email protected]',
url='https://github.com/Intsights/PySubstringSearch',
Expand All @@ -21,6 +21,7 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
keywords='substring pattern search suffix array c++',
python_requires='>=3.6',
Expand All @@ -38,15 +39,11 @@
),
language='c++',
extra_compile_args=[
'-Ofast',
'-std=c++17',
],
extra_link_args=[
'-lpthread',
],
include_dirs=[
'src',
]
],
),
],
)

0 comments on commit 920f8fc

Please sign in to comment.