Skip to content

Commit

Permalink
Test building sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
flozz committed Jan 7, 2024
1 parent 5fc75ad commit 3c70bed
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 60 deletions.
116 changes: 59 additions & 57 deletions .github/workflows/python-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-[0-9]+"
branches:
- test-sdist

jobs:

Expand All @@ -28,7 +30,7 @@ jobs:

- name: "Install python dependencies"
run: |
pip install setuptools
pip install setuptools build
- name: "Build source distribution"
run: |
Expand All @@ -41,59 +43,59 @@ jobs:
path: dist/
retention-days: 1

build_wheels:

name: "Build wheels on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- windows-2019
- macos-11

steps:

- name: "Checkout the repository"
uses: actions/checkout@v4
with:
submodules: true

- name: "Build wheels"
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
CIBW_SKIP: cp*-win32

- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl
retention-days: 1

publish_pypi:

name: "Publish packages on PyPI"
runs-on: ubuntu-latest
needs:
- build_sdist
- build_wheels

steps:

- name: "Download artifacts"
uses: actions/download-artifact@v4

- name: "Move packages to the dist/ folder"
run: |
mkdir dist/
mv sdist/* dist/
mv wheels-*/*.whl dist/
- name: "Publish packages on PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
# build_wheels:
#
# name: "Build wheels on ${{ matrix.os }}"
# runs-on: ${{ matrix.os }}
#
# strategy:
# fail-fast: false
# matrix:
# os:
# - ubuntu-22.04
# - windows-2019
# - macos-11
#
# steps:
#
# - name: "Checkout the repository"
# uses: actions/checkout@v4
# with:
# submodules: true
#
# - name: "Build wheels"
# uses: pypa/[email protected]
# env:
# CIBW_ARCHS_MACOS: x86_64 arm64 universal2
# CIBW_SKIP: cp*-win32
#
# - name: "Upload artifacts"
# uses: actions/upload-artifact@v4
# with:
# name: wheels-${{ matrix.os }}
# path: ./wheelhouse/*.whl
# retention-days: 1
#
# publish_pypi:
#
# name: "Publish packages on PyPI"
# runs-on: ubuntu-latest
# needs:
# - build_sdist
# - build_wheels
#
# steps:
#
# - name: "Download artifacts"
# uses: actions/download-artifact@v4
#
# - name: "Move packages to the dist/ folder"
# run: |
# mkdir dist/
# mv sdist/* dist/
# mv wheels-*/*.whl dist/
#
# - name: "Publish packages on PyPI"
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
42 changes: 39 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,44 @@
# YOGA Package
include README.rst
include LICENSE

include assimp/CREDITS
include assimp/LICENSE
include assimp/Readme.md
include yoga/model/assimp.h
include yoga/model/_assimp.cpp
include yoga/model/assimp.cpp

# Assimp sources
recursive-include assimp AUTHORS CREDITS
recursive-include assimp README.* Readme.* readme.* README *info.txt README*.txt
recursive-include assimp LICENSE License.txt license.txt UNLICENSE
recursive-include assimp CMakeLists.txt *.in *.cmake *.cmakein *.ac *.am
recursive-include assimp *.bor *.msc
recursive-include assimp ChangeLog *Changes.txt
recursive-include assimp *.rc
recursive-include assimp *.c *.h *.cpp *.hpp *.cc *.inl *.included *.def *.S *.asm
recursive-exclude assimp/build *
recursive-exclude assimp/doc *
recursive-exclude assimp/fuzz *
recursive-exclude assimp/packaging *
recursive-exclude assimp/port *
recursive-exclude assimp/samples *
recursive-exclude assimp/scripts *
recursive-exclude assimp/test *
recursive-exclude assimp/tools *
recursive-exclude assimp/contrib/android-cmake *
recursive-exclude assimp/contrib/draco/tools *
recursive-exclude assimp/contrib/googletest *
recursive-exclude assimp/contrib/googletest *
recursive-exclude assimp/contrib/zip/test *

# Repository "noise"
global-exclude .git*
global-exclude *.png
recursive-exclude .github *
recursive-exclude doc *
recursive-exclude scripts *
recursive-exclude test *
recursive-exclude winbuild *
exclude .flake8
exclude noxfile.py
exclude requirements*.txt
exclude RELEASE.rst

0 comments on commit 3c70bed

Please sign in to comment.