Skip to content

Commit 770c905

Browse files
authoredJul 25, 2024··
Merge pull request #351 from Creelman/master
Add ARM MacOS support for Python Bindings
2 parents d9c6dde + 7c2adb0 commit 770c905

File tree

7 files changed

+23
-11
lines changed

7 files changed

+23
-11
lines changed
 

‎.github/workflows/ci.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
- uses: actions-rs/cargo@v1
2525
with:
2626
command: test
27-
- uses: actions/setup-python@v2
27+
- uses: actions/setup-python@v5
2828
with:
29-
python-version: '3.8'
29+
python-version: '3.12'
3030
architecture: 'x64'
3131
- run: cargo test --features rp
3232
- run: cargo test --features jem
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ${{ matrix.os }}
3737
strategy:
3838
matrix:
39-
os: [macos-11]
39+
os: [macos-latest]
4040
env:
4141
DO_DOCKER: 0
4242
steps:
@@ -50,10 +50,9 @@ jobs:
5050
- uses: actions-rs/cargo@v1
5151
with:
5252
command: test
53-
- uses: actions/setup-python@v2
53+
- uses: actions/setup-python@v5
5454
with:
55-
python-version: '3.8'
56-
architecture: 'x64'
55+
python-version: '3.12'
5756
- run: cargo test --features rp
5857
- run: cargo test --features jem
5958
- run: bash ./ci/script.sh

‎.github/workflows/dox.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
- uses: actions/checkout@v2
1515

1616
# Install sphinx
17-
- uses: actions/setup-python@v2
17+
- uses: actions/setup-python@v5
1818
with:
19-
python-version: '3.8'
19+
python-version: '3.12'
2020
- name: Build and deploy docs
2121
run: bash ci/sphinx-documentation.sh
2222

‎ci/script.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ regular_test() {
3333
pip install virtualenv
3434

3535
# --- create virtualenv
36-
virtualenv -p python3.8 venv
36+
virtualenv -p python3.12 venv
3737

3838
# --- activate venv
3939
source venv/bin/activate

‎open-codegen/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

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

10+
## [0.8.1] - 2024-07-17
11+
12+
### Added
13+
14+
* Python direct interface support for ARM-based Macs
15+
* Updated GitHub Actions to use the macos-latest runner
16+
* Updated GitHub Actions to use Python3.12 (required for above)
17+
1018
## [0.8.0] - 2024-03-20
1119

1220
### Added

‎open-codegen/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.8.0
1+
0.8.1

‎open-codegen/opengen/templates/python/cargo_config

+5
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@ rustflags = [
33
"-C", "link-arg=-undefined",
44
"-C", "link-arg=dynamic_lookup",
55
]
6+
[target.aarch64-apple-darwin]
7+
rustflags = [
8+
"-C", "link-arg=-undefined",
9+
"-C", "link-arg=dynamic_lookup",
10+
]

‎open-codegen/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
exclude=["icasadi", "templates"]),
3636
include_package_data=True,
3737
install_requires=[
38-
'jinja2', 'casadi', 'pyyaml', 'retry', 'numpy'
38+
'jinja2', 'casadi', 'pyyaml', 'retry', 'numpy', 'setuptools'
3939
],
4040
classifiers=[
4141
'Development Status :: 4 - Beta',

0 commit comments

Comments
 (0)
Please sign in to comment.