Skip to content

Commit

Permalink
feat: change build backend to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jan 5, 2025
1 parent f7ce79b commit 5ae8845
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
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

0 comments on commit 5ae8845

Please sign in to comment.