forked from NREL/ROSCO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
161 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Desired use case | ||
_If you are able, please provide some background about your ROSCO use case. It helps guide our development and could help us better fix your issue._ | ||
|
||
## Description | ||
_Describe the bug here_ | ||
|
||
### Steps to reproduce issue | ||
_Please provide a minimum working example (MWE) if possible_ | ||
|
||
1. … | ||
2. … | ||
3. … | ||
|
||
### Current behavior | ||
… | ||
|
||
### Expected behavior | ||
… | ||
|
||
|
||
### Code versions | ||
_List versions only if relevant_ | ||
- Python | ||
- … |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
# Description of feature | ||
Describe the feature here and provide some context. Under what scenario would this be useful? | ||
|
||
# Potential solution | ||
Can you think of ways to implement this? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
WHEEL=$1 | ||
DEST_DIR=$2 | ||
|
||
python -m pip install delvewheel | ||
python -m delvewheel show "$WHEEL" && python -m delvewheel repair -w "$DEST_DIR" "$WHEEL" --no-mangle-all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,66 @@ | ||
name: Build and upload to PyPI | ||
# https://github.com/pypa/cibuildwheel/blob/main/examples/github-deploy.yml | ||
# Best comparable example: https://github.com/pdfo/pdfo | ||
|
||
# Build on every branch push, tag push, and pull request change: | ||
#on: [push, pull_request] | ||
# Alternatively, to publish when a (published) GitHub Release is created, use the following: | ||
on: | ||
release: | ||
types: | ||
- published | ||
# Build on every pull request (no need for every push) and release change: | ||
on: [pull_request, release] | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
os: [ubuntu-latest, windows-latest, macos-13, macos-14] | ||
|
||
steps: | ||
- name: Setup GNU Fortran | ||
if: false == contains( matrix.os, 'windows') | ||
uses: awvwgk/setup-fortran@v1 | ||
|
||
- name: Install compiler | ||
if: false == contains( matrix.os, 'windows') | ||
id: install_cc | ||
uses: rlalik/setup-cpp-compiler@master | ||
with: | ||
compiler: clang | ||
|
||
- name: Install mingw-w64 on Windows | ||
if: contains( matrix.os, 'windows') | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
path-type: inherit | ||
install: | | ||
mingw-w64-x86_64-gcc | ||
mingw-w64-x86_64-gcc-fortran | ||
mingw-w64-x86_64-zeromq | ||
mingw-w64-x86_64-cmake | ||
mingw-w64-x86_64-pkg-config | ||
- name: Install zeromq ubuntu | ||
if: contains( matrix.os, 'ubuntu') | ||
run: | | ||
sudo apt install libzmq3-dev libzmq5 libczmq-dev libczmq4 | ||
- name: Install zeromq mac | ||
if: contains( matrix.os, 'mac') | ||
run: | | ||
brew install zeromq | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
- name: Build wheels mac and linux | ||
if: false == contains( matrix.os, 'windows') | ||
uses: pypa/[email protected] | ||
env: | ||
CC: ${{ steps.install_cc.outputs.cc }} | ||
CXX: ${{ steps.install_cc.outputs.cxx }} | ||
|
||
- name: Build wheels windows | ||
if: contains( matrix.os, 'windows') | ||
uses: pypa/[email protected] | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ dependencies: | |
- ninja | ||
- numpy | ||
- pandas | ||
- pkg-config | ||
- pyYAML | ||
- pyparsing | ||
- pytest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters