Skip to content

Commit bd1b29e

Browse files
committed
chore: modernize packaging to pyproject.toml
1 parent 254c66e commit bd1b29e

6 files changed

Lines changed: 71 additions & 124 deletions

File tree

.github/workflows/build-tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Build Tests
2+
3+
on:
4+
pull_request:
5+
branches: [dev, master, main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
uses: OpenVoiceOS/gh-automations/.github/workflows/build-tests.yml@dev
11+
secrets: inherit
12+
with:
13+
python_versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'

.github/workflows/build_tests.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

ovos_tts_plugin_cotovia/version.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
VERSION_BUILD = 5
55
VERSION_ALPHA = 4
66
# END_VERSION_BLOCK
7+
8+
__version__ = f"{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_BUILD}"
9+
if VERSION_ALPHA:
10+
__version__ += f"a{VERSION_ALPHA}"

pyproject.toml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[build-system]
2+
requires = ["setuptools>=61", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "ovos-tts-plugin-cotovia"
7+
dynamic = ["version"]
8+
description = "A galician/spanish tts plugin for OVOS"
9+
license = {text = "Apache-2.0"}
10+
authors = [
11+
{name = "JarbasAi", email = "jarbasai@mailfence.com"}
12+
]
13+
keywords = ["mycroft", "ovos", "plugin", "tts"]
14+
classifiers = [
15+
"Development Status :: 3 - Alpha",
16+
"Intended Audience :: Developers",
17+
"Topic :: Text Processing :: Linguistic",
18+
"License :: OSI Approved :: Apache Software License",
19+
"Programming Language :: Python :: 2",
20+
"Programming Language :: Python :: 2.7",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.0",
23+
"Programming Language :: Python :: 3.1",
24+
"Programming Language :: Python :: 3.2",
25+
"Programming Language :: Python :: 3.3",
26+
"Programming Language :: Python :: 3.4",
27+
"Programming Language :: Python :: 3.5",
28+
"Programming Language :: Python :: 3.6",
29+
]
30+
dependencies = [
31+
"ovos-plugin-manager>=1.0.0,<3.0.0",
32+
]
33+
34+
[project.urls]
35+
Homepage = "https://github.com/OpenVoiceOS/ovos-tts-plugin-cotovia"
36+
37+
[project.entry-points."opm.tts"]
38+
"ovos-tts-plugin-cotovia" = "ovos_tts_plugin_cotovia:CotoviaTTSPlugin"
39+
40+
[project.entry-points."opm.tts.config"]
41+
"ovos-tts-plugin-cotovia.config" = "ovos_tts_plugin_cotovia:CotoviaTTSPluginConfig"
42+
43+
[tool.setuptools.dynamic]
44+
version = {attr = "ovos_tts_plugin_cotovia.version.__version__"}
45+
46+
[tool.setuptools.packages.find]
47+
where = ["."]
48+
include = ["ovos_tts_plugin_cotovia*"]
49+
50+
[tool.setuptools.package-data]
51+
ovos_tts_plugin_cotovia = [
52+
"bin/*",
53+
"data/**/*",
54+
]

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)