From 934f19b38bd258c2b8a316d886fe0161ddceb3be Mon Sep 17 00:00:00 2001 From: Enno Hermann Date: Thu, 7 Nov 2024 00:35:29 +0100 Subject: [PATCH] temp: test wheels --- .github/workflows/pypi-release.yml | 22 ++++++++++++---------- pyproject.toml | 2 -- setup.py | 16 ++-------------- 3 files changed, 14 insertions(+), 26 deletions(-) diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index 822990e967..f191d7c63b 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -2,6 +2,8 @@ name: Publish Python 🐍 distributions 📦 to PyPI on: release: types: [published] + pull_request: + types: [opened, synchronize, reopened] defaults: run: shell: @@ -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 @@ -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 diff --git a/pyproject.toml b/pyproject.toml index d13e2145d8..e2a9c0376d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,8 +2,6 @@ requires = [ "setuptools", "setuptools-scm", - "cython>=3.0.0", - "numpy>=2.0.0", ] build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 1cf2def1d3..2693d77d5b 100644 --- a/setup.py +++ b/setup.py @@ -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()