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
35 changes: 0 additions & 35 deletions .devcontainer/Dockerfile

This file was deleted.

25 changes: 9 additions & 16 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
{
"name": "Python 3",
"build": {
"dockerfile": "Dockerfile",
"context": "..",
"args": {
// Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"VARIANT": "3.10-bullseye",
// Options
"NODE_VERSION": "lts/*"
"image": "mcr.microsoft.com/devcontainers/python:3.10",
// Add the IDs of extensions you want installed when the container is created.
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"eamodio.gitlens"
]
}
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"eamodio.gitlens"
],
"remoteUser": "vscode"
}
27 changes: 27 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Python Package

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install .

- name: Build package
run: cd python && python -m build --sdist
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist/
28 changes: 28 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Python Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Test with unittest
run: |
python -m unittest discover tests
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.tar.gz
*.zip
*.cgns
*.su2
*.geo_unrolled
Expand Down
29 changes: 29 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Hypersim Build Pipeline Makefile

# Build Python package only
build-package:
@echo "📦 Building Python package..."
python -m build

# Clean build artifacts
clean:
@echo "🧹 Cleaning build artifacts..."
rm -rf dist/ build/ *.egg-info/
@echo "✅ Clean completed"

# Run tests
test:
@echo "🧪 Running tests..."
python -m unittest discover -s tests -v

# Install package in development mode
install:
@echo "📦 Installing package in development mode..."
pip install -e .
pip uninstall -y su2fmt

# Quick build without push (for testing)
build:
@echo "🏗️ Building locally (no push)..."
python -m build
@echo "✅ Local build completed"
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ mesh = parse_mesh("example.su2")
# export mesh file
export_mesh(mesh, "example_generated.su2")
```
#### Note: `visualize_mesh` has been moved to [ezmesh](https://github.com/OpenOrion/ezmesh)


# Devlopement Setup
```
git clone https://github.com/OpenOrion/su2fmt.git
cd su2fmt
pip install -r requirements_dev.txt
make install
```
Loading