Skip to content

Commit e6d4653

Browse files
committed
Updates for version 3.0.0 release
1 parent a86e55a commit e6d4653

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
| | |
1313
| --- | --- |
14-
| Meta | [![Python Version](https://img.shields.io/badge/python-3.8%7C3.9%7C3.10%7C3.11%7C3.12-blue?logo=python&logoColor=ffdd54)](https://www.python.org/downloads/)&nbsp;&nbsp; [![werpy License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://github.com/analyticsinmotion/werpy/blob/main/LICENSE)&nbsp;&nbsp;<!-- ![Maintained](https://img.shields.io/badge/Maintained%3F-yes-green.svg)&nbsp;&nbsp;--> [![Black Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)&nbsp;&nbsp; [![Analytics in Motion](https://raw.githubusercontent.com/analyticsinmotion/.github/main/assets/images/analytics-in-motion-github-badge-rounded.svg)](https://www.analyticsinmotion.com) |
14+
| Meta | [![Python Version](https://img.shields.io/badge/python-3.10%7C3.11%7C3.12%7C3.13-blue?logo=python&logoColor=ffdd54)](https://www.python.org/downloads/)&nbsp;&nbsp; [![werpy License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://github.com/analyticsinmotion/werpy/blob/main/LICENSE)&nbsp;&nbsp;<!-- ![Maintained](https://img.shields.io/badge/Maintained%3F-yes-green.svg)&nbsp;&nbsp;--> [![Black Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)&nbsp;&nbsp; [![Analytics in Motion](https://raw.githubusercontent.com/analyticsinmotion/.github/main/assets/images/analytics-in-motion-github-badge-rounded.svg)](https://www.analyticsinmotion.com) |
1515
| Testing | [![CodeQL](https://github.com/analyticsinmotion/werpy/actions/workflows/codeql.yml/badge.svg)](https://github.com/analyticsinmotion/werpy/actions/workflows/codeql.yml)&nbsp;&nbsp; [![Codacy Security Scan](https://github.com/analyticsinmotion/werpy/actions/workflows/codacy.yml/badge.svg)](https://github.com/analyticsinmotion/werpy/actions/workflows/codacy.yml)&nbsp;&nbsp; [![CodeFactor](https://www.codefactor.io/repository/github/analyticsinmotion/werpy/badge)](https://www.codefactor.io/repository/github/analyticsinmotion/werpy)&nbsp;&nbsp; <!--[![Pylint](https://github.com/analyticsinmotion/werpy/actions/workflows/pylint.yml/badge.svg)](https://github.com/analyticsinmotion/werpy/actions/workflows/pylint.yml)&nbsp;&nbsp;--> <!--[![Bandit](https://github.com/analyticsinmotion/werpy/actions/workflows/bandit.yml/badge.svg)](https://github.com/analyticsinmotion/werpy/actions/workflows/bandit.yml)&nbsp;&nbsp;--> [![CircleCI](https://dl.circleci.com/status-badge/img/gh/analyticsinmotion/werpy/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/analyticsinmotion/werpy/tree/main)&nbsp;&nbsp; [![codecov](https://codecov.io/gh/analyticsinmotion/werpy/graph/badge.svg?token=GGT823AVM8)](https://codecov.io/gh/analyticsinmotion/werpy) &nbsp;&nbsp;[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fanalyticsinmotion%2Fwerpy.svg?type=shield&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2Fanalyticsinmotion%2Fwerpy?ref=badge_shield&issueType=license)|
1616
| Package | [![Pypi](https://img.shields.io/pypi/v/werpy?label=PyPI&color=blue)](https://pypi.org/project/werpy/)&nbsp;&nbsp; [![PyPI Downloads](https://img.shields.io/pypi/dm/werpy?label=PyPI%20downloads)](https://pypi.org/project/werpy/)&nbsp;&nbsp; [![Downloads](https://static.pepy.tech/badge/werpy)](https://pepy.tech/project/werpy)&nbsp;&nbsp;<!--[![sourcerank](https://img.shields.io/librariesio/sourcerank/pypi/werpy)](https://libraries.io/pypi/werpy)&nbsp;&nbsp;--> [![Documentation Status](https://readthedocs.org/projects/werpy/badge/?version=latest)](https://werpy.readthedocs.io/en/latest/?badge=latest)&nbsp;&nbsp; |
1717

pyproject.toml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,21 @@ requires = [
99

1010
[project]
1111
name = 'werpy'
12-
version = '2.1.2'
12+
version = '3.0.0'
1313
description = 'A powerful yet lightweight Python package to calculate and analyze the Word Error Rate (WER).'
1414
readme = 'README.md'
15-
requires-python = '>=3.8'
15+
requires-python = '>=3.10'
1616
license = {file = 'LICENSE'}
1717
authors = [
1818
{name = 'Ross Armstrong', email = '[email protected]'},
1919
]
2020
classifiers = [
2121
"Programming Language :: Python :: 3",
2222
"Programming Language :: Python :: 3 :: Only",
23-
"Programming Language :: Python :: 3.8",
24-
"Programming Language :: Python :: 3.9",
2523
"Programming Language :: Python :: 3.10",
2624
"Programming Language :: Python :: 3.11",
2725
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.13",
2827
"Programming Language :: Cython",
2928
"Programming Language :: Python :: Implementation :: CPython",
3029
"License :: OSI Approved :: BSD License",
@@ -52,12 +51,11 @@ keywords = [
5251
"metrics"
5352
]
5453
dependencies = [
55-
"numpy>=1.21.6; python_version<'3.11'",
56-
"numpy>=1.23.2; python_version>='3.11'",
57-
"pandas>=1.3.0"
54+
"numpy>=1.26.0; python_version<'3.12'",
55+
"numpy>=2.2.0; python_version>='3.12'",
56+
"pandas>=2.0.0"
5857
]
5958

60-
6159
[project.urls]
6260
"Repository" = "https://github.com/analyticsinmotion/werpy"
6361
"Documentation" = "https://werpy.readthedocs.io/"
@@ -69,13 +67,3 @@ docs = [
6967
"sphinx==8.1.3",
7068
"sphinx-nefertiti== 0.7.4",
7169
]
72-
73-
74-
# For localized testing of the package on Windows OS
75-
#[tool.cibuildwheel]
76-
#build = "cp38-* cp39-* cp310-* cp311-* cp312-*"
77-
#skip = "*-win32 *-manylinux_i686 *-manylinux2010_i686 *-manylinux2014_i686 *-manylinux_aarch64 *-manylinux_ppc64le *-manylinux_s390x *-musllinux_i686 *-musllinux_aarch64 *-musllinux_ppc64le *-musllinux_s390x"
78-
79-
#[tool.cibuildwheel.windows]
80-
#build = "cp38-* cp39-* cp310-* cp311-* cp312-*"
81-
#skip = "*-win32"

werpy/metrics.pyx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ sequences.
2020
"""
2121

2222
import numpy as np
23-
cimport numpy as np
23+
cimport numpy as cnp
24+
25+
cnp.import_array()
2426

2527
cimport cython
2628

2729
@cython.boundscheck(False)
2830
@cython.wraparound(False)
29-
cpdef np.ndarray calculations(object reference, object hypothesis):
31+
cpdef cnp.ndarray calculations(object reference, object hypothesis):
3032
cdef list reference_word = reference.split()
3133
cdef list hypothesis_word = hypothesis.split()
3234

0 commit comments

Comments
 (0)