Skip to content

Commit

Permalink
Use verbose to publish to testpypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Newton committed Jan 16, 2025
1 parent 3b8dda2 commit 9bb2e5f
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 48 deletions.
95 changes: 48 additions & 47 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,57 +77,57 @@ jobs:
path: wheelhouse/*.whl


deadsnakes:
strategy:
fail-fast: false
matrix:
include:
- wheel: "linux-3.14"
python-version: "3.14-dev"
nogil: false
- wheel: "linux-3.14t"
python-version: "3.14-dev"
nogil: true

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: deadsnakes/[email protected]
with:
python-version: ${{ matrix.python-version }}
nogil: ${{ matrix.nogil }}

- name: Install build dependencies
run: python -m pip install --upgrade setuptools wheel

- name: Build Python wheels
run: python setup.py bdist_wheel

- name: Install wheels
run: python -m pip install build/dist/*.whl

- name: Test Python wheels
run: |
mkdir test_dir
cd test_dir
python -V
python -m ft_utils.tests.test_run_all
- name: Upload Python wheels
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.wheel }}.zip
path: build/dist/*.whl
# deadsnakes:
# strategy:
# fail-fast: false
# matrix:
# include:
# - wheel: "linux-3.14"
# python-version: "3.14-dev"
# nogil: false
# - wheel: "linux-3.14t"
# python-version: "3.14-dev"
# nogil: true

# runs-on: ubuntu-latest

# steps:
# - name: Checkout code
# uses: actions/checkout@v4

# - name: Set up Python
# uses: deadsnakes/[email protected]
# with:
# python-version: ${{ matrix.python-version }}
# nogil: ${{ matrix.nogil }}

# - name: Install build dependencies
# run: python -m pip install --upgrade setuptools wheel

# - name: Build Python wheels
# run: python setup.py bdist_wheel

# - name: Install wheels
# run: python -m pip install build/dist/*.whl

# - name: Test Python wheels
# run: |
# mkdir test_dir
# cd test_dir
# python -V
# python -m ft_utils.tests.test_run_all

# - name: Upload Python wheels
# uses: actions/upload-artifact@v4
# with:
# name: ${{ matrix.wheel }}.zip
# path: build/dist/*.whl

publish-to-testpypi:
runs-on: ubuntu-latest
needs:
- cibuildwheel
- deadsnakes
# - deadsnakes
environment:
name: testpypi
url: https://test.pypi.org/p/ft_utils
Expand All @@ -148,13 +148,14 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: true

publish-to-pypi:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs:
- cibuildwheel
- deadsnakes
# - deadsnakes
environment:
name: pypi
url: https://pypi.org/p/ft_utils
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,12 @@ def invoke_main() -> None:
packages=["ft_utils", "ft_utils.native", "ft_utils.tests"],
ext_modules=c_extensions,
classifiers=[
"Development Status :: 1 - alpha/Unstable",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
],
)

Expand Down

0 comments on commit 9bb2e5f

Please sign in to comment.