Skip to content
Open
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
24 changes: 10 additions & 14 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ jobs:
../trilinos
- name: Create reduced tarball (ROL + Binder files + Teuchos)
run: |
#pushd ../trilinos-build
#make package_source
#popd
cmake --build ../trilinos-build --target package_source
- name: Unpack reduced tarball
run: |
Expand Down Expand Up @@ -103,7 +100,7 @@ jobs:
name: sdist
- name: Store source distribution name
run: |
SDIST_NAME=$(find . -name "pyrol-*.tar.gz" -print -quit)
SDIST_NAME=$(find . -name "rol_python-*.tar.gz" -print -quit)
echo $SDIST_NAME
echo "SDIST_NAME=${SDIST_NAME}" >> $GITHUB_ENV
- name: Set up Python
Expand All @@ -116,11 +113,13 @@ jobs:
output-dir: dist
package-dir: ${{ env.SDIST_NAME }}
env:
CIBW_BUILD: "cp311* cp312*"
CIBW_BUILD: "cp3*"
CIBW_SKIP: "*i686 *musllinux*"
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL_LINUX: |
yum install -y openblas-devel ninja-build
yum install -y openblas-devel ninja-build
CIBW_TEST_COMMAND:
cd {project}/packages/rol/pyrol/test/algorithm && python -m unittest test_typeU.py
- name: Set artifact name
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
Expand All @@ -134,15 +133,15 @@ jobs:
name: ${{ env.ARTIFACT_NAME }}
path: dist/*

publish-testpypi:
publish-pypi:
if: github.event_name == 'release' && github.event.action == 'published'
needs:
- build-sdist
- build-wheels
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/pyrol
name: pypi
url: https://pypi.org/p/rol-python
permissions:
id-token: write
steps:
Expand All @@ -161,10 +160,7 @@ jobs:
with:
name: wheels-macos
path: dist/
- name: Debug
run: ls dist
- name: Publish distribution to TestPyPI
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
repository-url: https://test.pypi.org/legacy/
verbose: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Rapid Optimization Library (ROL)

![Rapid Optimization Library](rol.png)
![Rapid Optimization Library](https://raw.githubusercontent.com/sandialabs/rol/refs/heads/develop/rol.png)

**ROL** (as in rock and _roll_) is a high-performance C++ library for numerical optimization.
ROL brings an extensive collection of state-of-the-art optimization algorithms to virtually
Expand Down
4 changes: 2 additions & 2 deletions pyrol/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ requires = ["scikit-build-core>=0.3.3","pybind11 @ git+https://github.com/pybind
build-backend = "scikit_build_core.build"

[project]
name = "pyrol"
name = "rol-python"
version = "VERSION"
description="A Python interface to the Rapid Optimization Library (ROL)"
description="Python interface to the Rapid Optimization Library (ROL)"
readme = "packages/rol/README.md"
license = "BSD-3-Clause"
authors = [
Expand Down