Skip to content

Commit

Permalink
temp: test wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
eginhard committed Nov 6, 2024
1 parent 4fc282e commit 934f19b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 26 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Publish Python 🐍 distributions 📦 to PyPI
on:
release:
types: [published]
pull_request:
types: [opened, synchronize, reopened]
defaults:
run:
shell:
Expand All @@ -12,14 +14,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify tag matches version
run: |
set -ex
version=$(grep -m 1 version pyproject.toml | grep -P '\d+\.\d+\.\d+' -o)
tag="${GITHUB_REF/refs\/tags\/}"
if [[ "v$version" != "$tag" ]]; then
exit 1
fi
# - name: Verify tag matches version
# run: |
# set -ex
# version=$(grep -m 1 version pyproject.toml | grep -P '\d+\.\d+\.\d+' -o)
# tag="${GITHUB_REF/refs\/tags\/}"
# if [[ "v$version" != "$tag" ]]; then
# exit 1
# fi
- uses: actions/setup-python@v5
with:
python-version: 3.9
Expand Down Expand Up @@ -64,5 +66,5 @@ jobs:
merge-multiple: true
- run: |
ls -lh dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
requires = [
"setuptools",
"setuptools-scm",
"cython>=3.0.0",
"numpy>=2.0.0",
]
build-backend = "setuptools.build_meta"

Expand Down
16 changes: 2 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,6 @@
# .,*++++::::::++++*,.
# ``````

import numpy
from Cython.Build import cythonize
from setuptools import Extension, setup
from setuptools import setup

exts = [
Extension(
name="TTS.tts.utils.monotonic_align.core",
sources=["TTS/tts/utils/monotonic_align/core.pyx"],
)
]
setup(
include_dirs=numpy.get_include(),
ext_modules=cythonize(exts, language_level=3),
zip_safe=False,
)
setup()

0 comments on commit 934f19b

Please sign in to comment.