Skip to content

Commit e034592

Browse files
authored
Merge pull request #201 from bashtage/rel-0.14.6
BLD: Build 0.14.6
2 parents f434760 + eb03627 commit e034592

File tree

2 files changed

+33
-18
lines changed

2 files changed

+33
-18
lines changed

.github/workflows/build-wheels.yml

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
os: ubuntu-latest
2525
python_impl: Pyodide
2626
env:
27-
BUILD_COMMIT: "v0.14.5" # or a specific version, e.g., v0.13.1
27+
BUILD_COMMIT: "v0.14.6" # or a specific version, e.g., v0.13.1
2828
CIBW_BUILD: ${{ matrix.python }}-*
2929
CIBW_ARCHS_LINUX: "x86_64 aarch64"
3030
CIBW_ARCHS_MACOS: native
@@ -44,7 +44,7 @@ jobs:
4444
OPENLAS_NUM_THREADS: 1
4545

4646
steps:
47-
- uses: actions/checkout@v5
47+
- uses: actions/checkout@v6
4848
with:
4949
submodules: recursive
5050
fetch-depth: 0
@@ -56,7 +56,7 @@ jobs:
5656
platforms: all
5757

5858
- name: Build wheels (Default)
59-
uses: pypa/cibuildwheel@v3.2
59+
uses: pypa/cibuildwheel@v3.3
6060
if: (matrix.python_impl != 'Pyodide')
6161
with:
6262
output-dir: wheelhouse
@@ -66,7 +66,7 @@ jobs:
6666

6767
- name: Build Pyodide wheel
6868
if: matrix.python_impl == 'Pyodide'
69-
uses: pypa/cibuildwheel@v3.2
69+
uses: pypa/cibuildwheel@v3.3
7070
with:
7171
output-dir: wheelhouse
7272
package-dir: statsmodels
@@ -79,26 +79,44 @@ jobs:
7979
shell: bash
8080
run: |
8181
if [ "schedule" == "${{ github.event_name }}" ] || [ "push" == "${{ github.event_name }}" ]; then
82+
echo "Upload to Anaconda"
8283
echo "ANACONDA_UPLOAD=true" >> $GITHUB_ENV
8384
else
85+
echo "Do not upload to Anaconda"
8486
echo "ANACONDA_UPLOAD=false" >> $GITHUB_ENV
8587
fi
8688
if [ "schedule" == "${{ github.event_name }}" ] || [ "main" == "$BUILD_COMMIT" ]; then
89+
echo "Set upload for scientific-python-nightly-wheels"
8790
echo "ANACONDA_ORG=scientific-python-nightly-wheels" >> $GITHUB_ENV
8891
echo "TOKEN=$SCIENTIFIC_PYTHON_NIGHTLY_WHEELS" >> $GITHUB_ENV
8992
else
93+
echo "Set upload for multibuild-wheels-staging"
9094
echo "ANACONDA_ORG=multibuild-wheels-staging" >> $GITHUB_ENV
9195
echo "TOKEN=$MULTIBUILD_WHEELS_STAGING_ACCESS" >> $GITHUB_ENV
9296
fi
9397
94-
# Used to ensure python is available for wheel upload
95-
- uses: actions/setup-python@v6
98+
- name: Install conda
99+
uses: conda-incubator/setup-miniconda@v3
96100
with:
97-
python-version: '3.x'
101+
# for installation of anaconda-client, required for upload to
102+
# anaconda.org
103+
# default (and activated) environment name is test
104+
# Note that this step is *after* specific pythons have been used to
105+
# build and test the wheel
106+
auto-update-conda: true
107+
python-version: "3.11"
108+
miniforge-version: latest
109+
conda-remove-defaults: "true"
110+
111+
- name: Inspect conda
112+
shell: pwsh
113+
run: |
114+
conda info
115+
conda list
98116
99117
- name: Upload wheels
100118
if: ${{ always() }}
101-
shell: bash
119+
shell: pwsh
102120
run: |
103121
# trigger an upload to the shared ecosystem
104122
# infrastructure at: https://anaconda.org/scientific-python-nightly-wheels
@@ -113,15 +131,12 @@ jobs:
113131
# multibuild-wheels-staging
114132
# generated at anaconda.org for scientific-python-nightly-wheels
115133
echo ${PWD}
116-
if [ ${ANACONDA_UPLOAD} == true ]; then
134+
if ( $env:ANACONDA_UPLOAD -eq "true")
135+
{
136+
conda install -y anaconda-client
137+
echo "Uploading to $env:ANACONDA_ORG"
117138
# main branches of these two packages
118-
python --version
119-
python -m pip install "cython<3" packaging
120-
python -m pip list
121-
python -m pip install git+https://github.com/bashtage/clyent.git
122-
python -m pip install git+https://github.com/Anaconda-Server/anaconda-client.git
123-
python -m pip install "urllib3>=1.21.1,<2"
124139
ls ./wheelhouse/*.whl
125-
anaconda -t ${TOKEN} upload --force -u ${ANACONDA_ORG} ./wheelhouse/*.whl
140+
anaconda --verbose -t $env:TOKEN upload --force -u $env:ANACONDA_ORG ./wheelhouse/*.whl
126141
echo "PyPI-style index: https://pypi.anaconda.org/$ANACONDA_ORG/simple"
127-
fi
142+
}

0 commit comments

Comments
 (0)