Skip to content

Commit cf580ca

Browse files
committed
Use hatch for building
1 parent c613b2d commit cf580ca

10 files changed

Lines changed: 562 additions & 12 deletions

File tree

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
2626
- name: Installing MBROLA
2727
run: |
28-
sudo /bin/bash src/mbrola/install.sh
28+
sudo /bin/bash mbrola/install.sh
2929
3030
- name: Testing with Pytest
3131
run: |

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM python:3.12
22
WORKDIR /project
33
ENV DEBIAN_FRONTEND=noninteractive
4-
COPY src/mbrola/install.sh /install.sh
4+
COPY mbrola/install.sh /install.sh
55
RUN apt-get update && apt-get install -y git build-essential gcc
66
RUN git config --global core.compression 0
77
RUN
88
RUN chmod +x /install.sh && /install.sh
9-
COPY src/mbrola/mbrola.py /project/
9+
COPY mbrola/mbrola.py /project/

main.py

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

mbrola/__about___.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"0.2.0"
File renamed without changes.
File renamed without changes.
File renamed without changes.

pyproject.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ Documentation = "https://github.com/gongcastro/pymbrola#readme"
2929
Issues = "https://github.com/gongcastro/pymbrola/issues"
3030
Source = "https://github.com/gongcastro/pymbrola"
3131

32+
[build-system]
33+
requires = ["setuptools>=78.1.0", "wheel>=0.45.1"]
34+
build-backend = "setuptools.build_meta"
35+
36+
37+
[[tool.uv.index]]
38+
name = "pypi"
39+
url = "https://pypi.org/"
40+
publish-url = "https://pypi.org/"
41+
explicit = true
42+
3243
[tool.hatch.version]
3344
path = "mbrola/__about__.py"
3445

@@ -53,6 +64,7 @@ omit = [
5364
"mbrola/__about__.py",
5465
]
5566

67+
5668
[tool.hatch.build.targets.sdist]
5769
exclude = [
5870
"/.benchmarks",
@@ -67,8 +79,6 @@ exclude = [
6779
"/tests",
6880
"/uv.lock",
6981
"/voices",
70-
71-
7282
]
7383

7484
[tool.pytest.ini_options]
@@ -87,6 +97,7 @@ exclude_lines = [
8797

8898
[dependency-groups]
8999
dev = [
100+
"hatch>=1.14.1",
90101
"pytest>=8.3.5",
91102
"pytest-cov>=5.0.0",
92103
"ruff>=0.12.9",

uv.lock

Lines changed: 545 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)