Skip to content

Commit 920f8fc

Browse files
author
Gal Ben David
committed
added python 3.9 support
1 parent df08414 commit 920f8fc

2 files changed

Lines changed: 12 additions & 17 deletions

File tree

.github/workflows/pythonpackage.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,30 @@ name: Build
22
on: [push, pull_request]
33
jobs:
44
build:
5-
runs-on: ubuntu-latest
5+
runs-on: ubuntu-20.04
66
strategy:
77
max-parallel: 4
88
matrix:
9-
python-version: [3.6, 3.7, 3.8, pypy3]
9+
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
1010
steps:
11-
- uses: actions/checkout@v1
11+
- name: Checkout
12+
uses: actions/checkout@v2
1213
- name: Set up Python ${{ matrix.python-version }}
13-
uses: actions/setup-python@v1
14+
uses: actions/setup-python@v2
1415
with:
1516
python-version: ${{ matrix.python-version }}
16-
- name: Install Ubuntu packages
17-
run: >-
18-
sudo apt install g++-9;
19-
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9;
2017
- name: Test module
2118
run: >-
2219
python setup.py test
2320
deploy:
2421
needs: build
25-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-20.04
2623
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
2724
steps:
28-
- uses: actions/checkout@v1
25+
- name: Checkout
26+
uses: actions/checkout@v2
2927
- name: Set up Python 3.8
30-
uses: actions/setup-python@v1
28+
uses: actions/setup-python@v2
3129
with:
3230
python-version: 3.8
3331
- name: Build a source tarball

setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name='PySubstringSearch',
8-
version='0.3.0',
8+
version='0.3.1',
99
author='Gal Ben David',
1010
author_email='gal@intsights.com',
1111
url='https://github.com/Intsights/PySubstringSearch',
@@ -21,6 +21,7 @@
2121
'Programming Language :: Python :: 3.6',
2222
'Programming Language :: Python :: 3.7',
2323
'Programming Language :: Python :: 3.8',
24+
'Programming Language :: Python :: 3.9',
2425
],
2526
keywords='substring pattern search suffix array c++',
2627
python_requires='>=3.6',
@@ -38,15 +39,11 @@
3839
),
3940
language='c++',
4041
extra_compile_args=[
41-
'-Ofast',
4242
'-std=c++17',
4343
],
44-
extra_link_args=[
45-
'-lpthread',
46-
],
4744
include_dirs=[
4845
'src',
49-
]
46+
],
5047
),
5148
],
5249
)

0 commit comments

Comments
 (0)