Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
python: ["3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.10"]

steps:
- uses: compas-dev/compas-actions.build@v4
with:
invoke_lint: true
check_import: true
use_conda: true
check_import: true
python: ${{ matrix.python }}
5 changes: 3 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ on:

jobs:
docs:
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- uses: compas-dev/compas-actions.docs@v3
- uses: compas-dev/compas-actions.docs@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
use_conda: true
doc_url: https://compas.dev/compas_libigl/
21 changes: 21 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: verify-pr-checklist
on:
pull_request:
types: [assigned, opened, synchronize, reopened, labeled, unlabeled]
branches:
- main
- master

jobs:
build:
name: Check Actions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Changelog check
uses: Zomzog/[email protected]
with:
fileName: CHANGELOG.md
checkNotification: Simple
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98 changes: 81 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,96 @@
name: Release

on:
push:
tags:
- "v*"

name: Create Release
- "v*" # Runs only when a version tag (e.g., v1.0.0) is pushed.

jobs:
build:
create_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

build_wheels:
name: Build wheels on ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
python: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: ubuntu-latest
platform: manylinux
- os: macos-latest
platform: mac
- os: windows-latest
platform: windows

steps:
- uses: compas-dev/compas-actions.build@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install cibuildwheel
run: pipx install cibuildwheel==2.23.1

- name: Build wheels
run: cibuildwheel --output-dir wheelhouse .

- uses: actions/upload-artifact@v4
with:
invoke_lint: true
check_import: true
use_conda: true
python: ${{ matrix.python }}
name: wheels-${{ matrix.platform }}
path: wheelhouse/*.whl

Publish:
needs: build
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: compas-dev/compas-actions.publish@v2
- uses: actions/checkout@v4
with:
pypi_token: ${{ secrets.PYPI }}
github_token: ${{ secrets.GITHUB_TOKEN }}
bdist_wheel: false
fetch-depth: 0

- name: Build SDist
run: pipx run build --sdist

- uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz

publish:
needs: [build_sdist, build_wheels]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/compas_libigl
permissions:
id-token: write # Required for PyPI trusted publishing

steps:
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
path: dist
merge-multiple: true

- uses: actions/download-artifact@v4
with:
name: sdist
path: dist

- name: List files before upload
run: ls -lhR dist

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
117 changes: 36 additions & 81 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
# Byte-compiled / optimized / DLL files
# Python
__pycache__/
*.py[cod]
*$py.class

# C extensions
# *.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
# downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
# wheels/
*.egg-info/
.installed.cfg
*.egg
.pytest_cache
.ruff_cache

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
# Build and packaging
_skbuild/
_build/
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# IDE
.vscode/
.idea/
*.swp
*.swo
.spyderproject
.spyproject
.ropeproject

# Unit test / coverage reports
# Testing and coverage
htmlcov/
.tox/
.coverage
Expand All @@ -46,88 +46,43 @@ coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
# Documentation
docs/_build/
/site

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
# Environment
.env

# virtualenv
.venv
venv/
ENV/
.python-version

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

# ------------------------------------------------------------------------------
# compas_libigl
# ------------------------------------------------------------------------------

*.3dmbak
*.rhl
# Jupyter
.ipynb_checkpoints

temp
# Logs and temp files
*.log
pip-log.txt
pip-delete-this-directory.txt
temp/
local_settings.py

# External dependencies
external/
ext/**
!ext/PLACEHOLDER

# Recipe
recipe/**
!recipe/sha256.py

build/**

.DS_Store

.vscode

*.so

# COMPAS specific
*.3dmbak
*.rhl
src/compas-viewers

generated

*.gz

.pytest_cache
.ruff_cache
# OS
.DS_Store
Thumbs.db
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

## [0.3.1] 2025-04-01

### Added

### Changed

* Pybind11 build system was updated to Nanobind.
* Github actions workflow was updated for pypi support.
* Documentation was updated to build without errors.

### Removed


## [0.3.1] 2023-12-05

Expand Down
Loading
Loading