Skip to content

Commit 08bfca3

Browse files
authored
Merge pull request #102 from anhaidgroup/dev
Release 0.4.6 changes
2 parents 151f129 + 9cff080 commit 08bfca3

File tree

6 files changed

+48
-8
lines changed

6 files changed

+48
-8
lines changed

.github/workflows/pip-test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Testing on linux, windows, macos, for python versions 3.7, 3.8, 3.9, 3.10, 3.11, 3.12
2+
3+
name: Test pip install
4+
5+
on:
6+
- push
7+
- pull_request
8+
9+
jobs:
10+
build:
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
16+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
17+
runs-on: ${{ matrix.os }}
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v3
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Version check
28+
run: python --version
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install "Cython>=0.29.23" "coveralls"
33+
- name: Install package
34+
run: |
35+
python setup.py sdist
36+
pip install dist/py-stringmatching-0.4.6.tar.gz

.github/workflows/testing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Testing on linux, windows, macos, for python versions 3.7, 3.8, 3.9, 3.10, 3.11, 3.12
22

3-
name: Testing
3+
name: Unit testing
44

55
on:
66
- push
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install dependencies
3030
run: |
3131
python -m pip install --upgrade pip
32-
pip install numpy Cython>=0.29.23 coveralls
32+
pip install "numpy<2.0" "Cython>=0.29.23" "coveralls"
3333
- name: Install package
3434
run: python setup.py build_ext --inplace
3535
- name: Run tests

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v0.4.6 - 7/5/2024
2+
* Limited Numpy to <2.0 in setup.py, due to compatibility issues
3+
* Added preliminary testing of pip install to Github Actions workflow
4+
15
v0.4.5 - 1/26/2024
26
* Discontinued usage of cythonize.py during setup due to Python 3.12 compatibility issues
37

py_stringmatching/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.4.5"
1+
__version__ = "0.4.6"
22

33
# Import tokenizers
44
from py_stringmatching.tokenizer.alphabetic_tokenizer import AlphabeticTokenizer

py_stringmatching/similarity_measure/cython/cython_levenshtein.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
import cython
44
import numpy as np
5-
cimport numpy as np
5+
cimport numpy as cnp
66
from py_stringmatching.similarity_measure.cython.cython_utils import int_min_three
77
from numpy import int32
88
from numpy cimport int32_t
99

1010
DTYPE = int
11-
ctypedef np.int_t DTYPE_t
11+
ctypedef cnp.int_t DTYPE_t
1212

1313
@cython.boundscheck(False)
1414
@cython.wraparound(False)

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def generate_cython():
104104

105105
setuptools.setup(
106106
name='py-stringmatching',
107-
version='0.4.5',
107+
version='0.4.6',
108108
description='Python library for string matching.',
109109
long_description=LONG_DESCRIPTION,
110110
url='https://sites.google.com/site/anhaidgroup/projects/magellan/py_stringmatching',
@@ -136,10 +136,10 @@ def generate_cython():
136136
],
137137
packages=packages,
138138
install_requires=[
139-
'numpy >= 1.7.0',
139+
'numpy >= 1.7.0,<2.0',
140140
],
141141
setup_requires=[
142-
'numpy >= 1.7.0'
142+
'numpy >= 1.7.0,<2.0'
143143
],
144144
ext_modules=extensions,
145145
cmdclass=cmdclass,

0 commit comments

Comments
 (0)