Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.13
4 changes: 2 additions & 2 deletions phonemizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""Multilingual text to phones converter"""

from .phonemize import phonemize # pylint: disable=unused-import
import importlib.metadata


__version__ = '3.3.0'
__version__ = importlib.metadata.version(__name__)
"""Phonemizer version"""
21 changes: 6 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@
# along with phonemizer. If not, see <http://www.gnu.org/licenses/>.

[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["phonemizer"]

[project]
name = "phonemizer"
version = "3.3.0"
description = "Simple text to phones converter for multiple languages"
authors = [
{name = "Mathieu Bernard", email = "[email protected]"},
Expand All @@ -38,7 +42,6 @@ classifiers = [
"Operating System :: OS Independent"]

requires-python = ">= 3.8"
dynamic = ["version"]
dependencies = [
"joblib",
"segments",
Expand All @@ -59,18 +62,6 @@ Repository = "https://github.com/bootphon/phonemizer"
Issues = "https://github.com/bootphon/phonemizer"
Changelog = "https://github.com/bootphon/phonemizer/blob/master/docs/source/changelog.rst"

[tool.setuptools.packages]
find = {}

[tool.setuptools.package-data]
phonemizer = [
"share/espeak/*",
"share/festival/*",
"share/segments/*"]

[tool.setuptools.dynamic]
version = {attr = "phonemizer.__version__"}

[tool.pytest.ini_options]
minversion = "6.0"
testpaths = "test"
Expand Down