Skip to content

Commit d73266f

Browse files
prabhakk-mwrashedmytphilipc-mw
committed
Introducing MATLAB Kernel for Jupyter.
Co-authored-by: Rashed Mohammed <[email protected]> Co-authored-by: Philip Clarke <[email protected]>
1 parent 5eb56d1 commit d73266f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+8570
-267
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ jobs:
1515
with:
1616
ref: ${{github.sha}}
1717

18-
- name: Set up Python 3.6
18+
- name: Set up Python 3.7
1919
uses: actions/setup-python@v2
2020
with:
21-
python-version: 3.6
21+
python-version: 3.7
2222

2323
- name: Install dependencies
2424
# Installing wheel package will slightly speed-up installing dependencies.
2525
# Installing the package with "[dev]" flag will install test dependecies as well,
2626
# enabling us to run pytest.
2727
run: |
28-
python -m pip install --upgrade pip
29-
python -m pip install wheel
30-
pip install .[dev]
28+
python3 -m pip install --upgrade pip
29+
python3 -m pip install wheel pytest
30+
python3 -m pip install .[dev]
3131
3232
- name: Run Python Tests
33-
run: python -m pytest
33+
run: python3 -m pytest
3434

3535
build_and_publish_pypi:
3636
needs: [python_tests]
@@ -43,60 +43,23 @@ jobs:
4343
with:
4444
ref: ${{github.sha}}
4545

46-
- name: Set up Python 3.6
46+
- name: Set up Python 3.7
4747
uses: actions/setup-python@v2
4848
with:
49-
python-version: 3.6
49+
python-version: 3.7
5050

5151
- name: Install Python build dependencies
5252
run: |
53-
python -m pip install --upgrade pip
54-
python -m pip install wheel
53+
python3 -m pip install --upgrade pip
54+
python3 -m pip install wheel hatch
5555
5656
- name: Build Source and Binary wheel distributions
57-
run: python setup.py bdist_wheel sdist
57+
run: python3 -m hatch build -t wheel
5858

5959
- name: Publish to PyPI.
6060
uses: pypa/gh-action-pypi-publish@release/v1
6161
with:
6262
user: __token__
6363
verbose: true
6464
password: ${{ secrets.PYPI_TOKEN }}
65-
repository_url: https://upload.pypi.org/legacy/
66-
67-
# build_and_publish_anaconda:
68-
# needs: [build_and_publish_pypi]
69-
# if: success()
70-
# runs-on: ubuntu-latest
71-
72-
# steps:
73-
# - name: Checkout
74-
# uses: actions/checkout@v2
75-
# with:
76-
# ref: ${{github.sha}}
77-
78-
# - name: Set up Python 3.6
79-
# uses: actions/setup-python@v2
80-
# with:
81-
# python-version: 3.6
82-
83-
# - name: Install Python build dependencies
84-
# run: |
85-
# python -m pip install --upgrade pip
86-
# python -m pip install wheel
87-
# python -m pip install .[dev]
88-
89-
# - name: Build and Publish to Anaconda.
90-
# env:
91-
# ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
92-
93-
# run: |
94-
# # $CONDA is an environment variable pointing to the root of the miniconda directory
95-
# echo $CONDA/bin >> $GITHUB_PATH
96-
# conda install -y conda-build
97-
# conda install -y anaconda-client
98-
# cd ./anaconda
99-
# conda skeleton pypi jupyter-matlab-proxy
100-
# python parse_meta_file.py
101-
# conda build ./jupyter-matlab-proxy --python 3.6 --output-folder ./build
102-
# $CONDA/bin/anaconda upload --label main ./build/linux-64/jupyter*.tar.gz
65+
repository_url: ${{ secrets.PYPI_REPOSITORY_URL }}

.github/workflows/run-tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [3.6, 3.7, 3.8, 3.9]
13+
python-version: [3.7, 3.8, 3.9, 3.10]
1414

1515
steps:
1616
- name: Checkout
@@ -26,15 +26,15 @@ jobs:
2626
# Installing the package with "[dev]" flag will install test dependecies as well,
2727
# enabling us to run pytest.
2828
run: |
29-
python -m pip install --upgrade pip
30-
python -m pip install wheel
31-
pip install .[dev]
29+
python3 -m pip install --upgrade pip
30+
python3 -m pip install wheel pytest
31+
python3 -m pip install .[dev]
3232
3333
- name: Lint with black
3434
run: black --check .
3535

3636
- name: Test with pytest
37-
run: python -m pytest
37+
run: python3 -m pytest
3838

3939
generate_and_upload_code_coverage:
4040
needs: [python_tests]
@@ -52,8 +52,8 @@ jobs:
5252
- name: Install Python build dependencies
5353
run: |
5454
python -m pip install --upgrade pip
55-
python -m pip install wheel
56-
pip install .[dev]
55+
python3 -m pip install wheel pytest
56+
python3 -m pip install .[dev]
5757
5858
- name: Generate Code Coverage report for Python code
5959
run: |

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
include README.md
2-
2+
recursive-include src/jupyter_matlab_kernel/matlab *

0 commit comments

Comments
 (0)