Skip to content

Commit b472c73

Browse files
author
lmoresi
committed
Put conda and pypi into release scripts
1 parent 4d97c39 commit b472c73

5 files changed

Lines changed: 50 additions & 22 deletions

File tree

File renamed without changes.

.github/workflows/python_mac_build_test.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,26 @@ jobs:
4949
5050
## Move this to a release script
5151

52-
- name: Build the wheel
53-
env:
54-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
55-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
56-
ANACONDA_USERNAME: ${{ secrets.ANACONDA_USERNAME}}
57-
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD}}
52+
# - name: Build the wheel
53+
# env:
54+
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
55+
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
56+
# ANACONDA_USERNAME: ${{ secrets.ANACONDA_USERNAME}}
57+
# ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD}}
5858

59-
run: |
60-
source ~/myconda/etc/profile.d/conda.sh
61-
conda activate base
62-
conda config --set anaconda_upload yes
59+
# run: |
60+
# source ~/myconda/etc/profile.d/conda.sh
61+
# conda activate base
62+
# conda config --set anaconda_upload yes
6363

6464

65-
python setup.py bdist_wheel
66-
# twine upload dist/*
65+
# python setup.py bdist_wheel
66+
# # twine upload dist/*
6767

68-
conda install conda-build anaconda-client
69-
anaconda login --username $ANACONDA_USERNAME --password $ANACONDA_PASSWORD
68+
# conda install conda-build anaconda-client
69+
# anaconda login --username $ANACONDA_USERNAME --password $ANACONDA_PASSWORD
7070

71-
conda build conda --user underworldcode
71+
# conda build conda --user underworldcode
7272

7373

7474

.github/workflows/python_mac_upload_wheel_pypi.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
matrix:
1212
python-version: [2.7, 3.7, 3.8]
1313

14-
1514
steps:
1615
- uses: actions/checkout@v2
1716
- name: Set up Python 3.7
@@ -36,12 +35,22 @@ jobs:
3635
conda install pytest
3736
3837
39-
- name: Build and publish
38+
- name: Build the wheel
4039
env:
4140
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
4241
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
42+
ANACONDA_USERNAME: ${{ secrets.ANACONDA_USERNAME}}
43+
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD}}
44+
4345
run: |
4446
source ~/myconda/etc/profile.d/conda.sh
4547
conda activate base
48+
conda config --set anaconda_upload yes
49+
conda install conda-build anaconda-client
50+
4651
python setup.py bdist_wheel
47-
twine upload dist/*
52+
twine upload dist/* --skip-existing
53+
54+
anaconda login --username $ANACONDA_USERNAME --password $ANACONDA_PASSWORD
55+
56+
conda build conda --user underworldcode

.github/workflows/python_upload_wheel_pypi.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Upload Python Package to PYPI
1+
name: Upload Python Package to PYPI (Ubuntu / wheel)
22

33
on:
44
release:
@@ -31,10 +31,30 @@ jobs:
3131
pip install scipy
3232
pip install Cython
3333
34-
- name: Build and publish
34+
# - name: Build and publish
35+
# env:
36+
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
37+
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
38+
# run: |
39+
# python setup.py bdist_wheel
40+
# twine upload dist/*
41+
42+
- name: Build the wheel
3543
env:
3644
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
3745
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
46+
ANACONDA_USERNAME: ${{ secrets.ANACONDA_USERNAME}}
47+
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD}}
48+
3849
run: |
50+
source ~/myconda/etc/profile.d/conda.sh
51+
conda activate base
52+
conda config --set anaconda_upload yes
53+
conda install conda-build anaconda-client
54+
3955
python setup.py bdist_wheel
40-
twine upload dist/*
56+
twine upload dist/* --skip-existing
57+
58+
anaconda login --username $ANACONDA_USERNAME --password $ANACONDA_PASSWORD
59+
60+
conda build conda --user underworldcode

conda/meta.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ requirements:
2525
- scipy >=0.15.0
2626

2727

28-
2928
about:
3029
home: "https://github.com/underworldcode/stripy"
3130
license: UNKNOWN

0 commit comments

Comments
 (0)