@@ -15,22 +15,22 @@ jobs:
15
15
with :
16
16
ref : ${{github.sha}}
17
17
18
- - name : Set up Python 3.6
18
+ - name : Set up Python 3.7
19
19
uses : actions/setup-python@v2
20
20
with :
21
- python-version : 3.6
21
+ python-version : 3.7
22
22
23
23
- name : Install dependencies
24
24
# Installing wheel package will slightly speed-up installing dependencies.
25
25
# Installing the package with "[dev]" flag will install test dependecies as well,
26
26
# enabling us to run pytest.
27
27
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]
31
31
32
32
- name : Run Python Tests
33
- run : python -m pytest
33
+ run : python3 -m pytest
34
34
35
35
build_and_publish_pypi :
36
36
needs : [python_tests]
@@ -43,60 +43,23 @@ jobs:
43
43
with :
44
44
ref : ${{github.sha}}
45
45
46
- - name : Set up Python 3.6
46
+ - name : Set up Python 3.7
47
47
uses : actions/setup-python@v2
48
48
with :
49
- python-version : 3.6
49
+ python-version : 3.7
50
50
51
51
- name : Install Python build dependencies
52
52
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
55
55
56
56
- name : Build Source and Binary wheel distributions
57
- run : python setup.py bdist_wheel sdist
57
+ run : python3 -m hatch build -t wheel
58
58
59
59
- name : Publish to PyPI.
60
60
uses : pypa/gh-action-pypi-publish@release/v1
61
61
with :
62
62
user : __token__
63
63
verbose : true
64
64
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 }}
0 commit comments