Skip to content

Commit

Permalink
Merge branch 'main' into feat/sht
Browse files Browse the repository at this point in the history
  • Loading branch information
Trico-Everfire authored Dec 4, 2024
2 parents 9a86ec4 + 9be8dae commit 1f4c06a
Show file tree
Hide file tree
Showing 116 changed files with 17,269 additions and 1,207 deletions.
66 changes: 0 additions & 66 deletions .clang-format

This file was deleted.

1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ij_yaml_spaces_within_braces = true
ij_yaml_spaces_within_brackets = true

[{*.cmake,CMakeLists.txt}]
indent_style = space
ij_cmake_align_command_call_r_par = false
ij_cmake_align_control_flow_r_par = false
ij_cmake_align_multiline_parameters_in_calls = false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Create & Deploy Docs
uses: DenverCoder1/doxygen-github-pages-action@v1.3.1
uses: DenverCoder1/doxygen-github-pages-action@v2.0.0
with:
github_token: ${{secrets.GITHUB_TOKEN}}
branch: docs
65 changes: 65 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Build Wheels
on:
workflow_dispatch:
inputs:
version:
type: string
required: true
default: YYYY.MM.DDdevN
description: 'The package version'
release:
type: boolean
required: true
default: false
description: 'Push a release to PyPI'

jobs:
build_sdist:
name: Build SDist
runs-on: ubuntu-latest
defaults:
run:
working-directory: '${{github.workspace}}/lang/python'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Configure CMake
working-directory: '${{github.workspace}}'
run: cmake -G "Unix Makefiles" -B build -DCMAKE_BUILD_TYPE=Release -DSOURCEPP_BUILD_PYTHON_WRAPPERS=ON -DSOURCEPP_PYTHON_VERSION="${{inputs.version}}"

- name: Build SDist
run: |
pipx run build --sdist
- name: Check Metadata
run: |
pipx run twine check dist/*
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: dist-sdist
path: ${{github.workspace}}/lang/python/dist/*.tar.gz

upload_release:
name: Upload a Release
if: inputs.release
needs: [build_sdist]
runs-on: ubuntu-latest
environment:
name: pypi-release
url: https://pypi.org/p/sourcepp
permissions:
id-token: write
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: dist-sdist
path: dist

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
34 changes: 31 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,43 @@
# IDEs
# IDE
.idea/
.vs/
.vscode/
CMakeSettings.json

# Project exclude paths

# Build
build/
dist/
cmake-build-*/
out/
*.dll
*.ilk
*.pdb
*.pyd
*.so*

# Generated
# Docs
docs/html/


# Test
test/res/
test/Helpers.h


# Python
.mypy_cache/
.venv/
__pycache__/
wheelhouse/
*.pyi
*.typed
*.whl

lang/python/CMakeLists.txt
lang/python/pyproject.toml
lang/python/src/sourcepp/__init__.py

lang/python/LICENSE
lang/python/README.md
lang/python/THIRDPARTY_LEGAL_NOTICES.txt
Loading

0 comments on commit 1f4c06a

Please sign in to comment.