Skip to content

Commit

Permalink
Merge branch 'dev' into feature/333-affine-space-codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
alphaville committed Aug 15, 2024
2 parents 502c610 + 44af0fe commit 6fe3edd
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 19 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.12'
architecture: 'x64'
- run: cargo test --features rp
- run: cargo test --features jem
Expand All @@ -36,7 +36,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11]
os: [macos-latest]
env:
DO_DOCKER: 0
steps:
Expand All @@ -50,10 +50,9 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: '3.8'
architecture: 'x64'
python-version: '3.12'
- run: cargo test --features rp
- run: cargo test --features jem
- run: bash ./ci/script.sh
4 changes: 2 additions & 2 deletions .github/workflows/dox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
- uses: actions/checkout@v2

# Install sphinx
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.12'
- name: Build and deploy docs
run: bash ci/sphinx-documentation.sh

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ Note: This is the main Changelog file for the Rust solver. The Changelog file fo
--------------------- -->


<!-- ---------------------
v0.9.0
--------------------- -->
## [v0.9.1] - 2024-08-14


### Fixed

- Order of dependencies in `Cargo.toml` fixes crate-not-found issue on Windows



<!-- ---------------------
v0.9.0
--------------------- -->
Expand Down Expand Up @@ -286,6 +298,7 @@ This is a breaking API change.
--------------------- -->

<!-- Releases -->
[v0.9.1]: https://github.com/alphaville/optimization-engine/compare/v0.9.0...v0.9.1
[v0.9.0]: https://github.com/alphaville/optimization-engine/compare/v0.8.1...v0.9.0
[v0.8.1]: https://github.com/alphaville/optimization-engine/compare/v0.8.0...v0.8.1
[v0.8.0]: https://github.com/alphaville/optimization-engine/compare/v0.7.7...v0.8.0
Expand Down
14 changes: 6 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ homepage = "https://alphaville.github.io/optimization-engine/"
repository = "https://github.com/alphaville/optimization-engine"

# Version of this crate (SemVer)
version = "0.9.0"
version = "0.9.1"

edition = "2018"

Expand Down Expand Up @@ -94,20 +94,18 @@ rpmalloc = { version = "0.2", features = [
"statistics",
], optional = true }

# jemallocator is an optional feature; it will only be loaded if the feature
# `jem` is used (i.e., if we compile with `cargo build --features jem`)
[target.'cfg(not(target_env = "msvc"))'.dependencies]
jemallocator = { version = "0.5", optional = true }


# computation of roots of cubic equation needed for the projection on the
# epigraph of the squared Euclidean norm
roots = "0.0.8"

# Least squares solver
ndarray = { version = "0.15", features = ["approx"] }
ndarray = { version = "0.16", features = ["approx"] }
modcholesky = "0.1"

# jemallocator is an optional feature; it will only be loaded if the feature
# `jem` is used (i.e., if we compile with `cargo build --features jem`)
[target.'cfg(not(target_env = "msvc"))'.dependencies]
jemallocator = { version = "0.5", optional = true }

# --------------------------------------------------------------------------
# F.E.A.T.U.R.E.S.
Expand Down
2 changes: 1 addition & 1 deletion ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ regular_test() {
pip install virtualenv

# --- create virtualenv
virtualenv -p python3.8 venv
virtualenv -p python3.12 venv

# --- activate venv
source venv/bin/activate
Expand Down
9 changes: 9 additions & 0 deletions open-codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

Note: This is the Changelog file of `opengen` - the Python interface of OpEn

## [0.8.1] - 2024-07-17

### Added

* Python direct interface support for ARM-based Macs
* Updated GitHub Actions to use the macos-latest runner
* Updated GitHub Actions to use Python3.12 (required for above)

## [0.8.0] - 2024-03-20

### Added
Expand Down Expand Up @@ -185,6 +193,7 @@ Note: This is the Changelog file of `opengen` - the Python interface of OpEn
* Project-specific `tcp_iface` TCP interface
* Fixed `lbfgs` typo

[0.8.1]: https://github.com/alphaville/optimization-engine/compare/v0.9.0...opengen-0.8.1
[0.8.0]: https://github.com/alphaville/optimization-engine/compare/opengen-0.7.1...opengen-0.8.0
[0.7.1]: https://github.com/alphaville/optimization-engine/compare/opengen-0.7.0...opengen-0.7.1
[0.7.0]: https://github.com/alphaville/optimization-engine/compare/opengen-0.6.13...opengen-0.7.0
Expand Down
2 changes: 1 addition & 1 deletion open-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.0
0.8.1
5 changes: 5 additions & 0 deletions open-codegen/opengen/templates/python/cargo_config
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
2 changes: 1 addition & 1 deletion open-codegen/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
exclude=["icasadi", "templates"]),
include_package_data=True,
install_requires=[
'jinja2', 'casadi', 'pyyaml', 'retry', 'numpy'
'jinja2', 'casadi', 'pyyaml', 'retry', 'numpy', 'setuptools'
],
classifiers=[
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit 6fe3edd

Please sign in to comment.