Skip to content

Commit

Permalink
Merge pull request #1084 from SheffieldML/devel
Browse files Browse the repository at this point in the history
Release version 1.13.2
  • Loading branch information
MartinBubel authored Jul 21, 2024
2 parents 6254451 + 282fcd4 commit 7e1cb7a
Show file tree
Hide file tree
Showing 103 changed files with 42,934 additions and 29,016 deletions.
5 changes: 0 additions & 5 deletions .appveyor_twine_upload.bat

This file was deleted.

268 changes: 268 additions & 0 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,268 @@
name: "Test Python Lib"
on:
push:
branches:
- main
- devel
- deploy
pull_request:
release:

permissions:
contents: read
pull-requests: read

jobs:
test-windows:
strategy:
matrix:
os: [windows-latest]
python: ['3.9', '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install build dependencies
run: |
pip install setuptools
- name: Install lib
run: |
python setup.py develop
- name: Install test dependencies
run: |
pip install matplotlib
pip install pytest
- name: pytest
run: |
pytest GPy/testing
test-linux:
strategy:
matrix:
os: [ubuntu-latest]
python: ['3.9', '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install build dependencies
run: |
pip install setuptools
- name: Install lib
run: |
python setup.py develop
- name: Install test dependencies
run: |
pip install matplotlib
pip install pytest
- name: pytest
run: |
pytest GPy/testing
test-macos:
strategy:
matrix:
os: [macos-latest]
python: ['3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install dependencies
run: |
pip install setuptools
- name: Install lib
run: |
python setup.py develop
- name: Install test dependencies
run: |
pip install matplotlib
pip install pytest
- name: pytest
run: |
pytest GPy/testing
build-windows:
if: github.event_name == 'release'
strategy:
matrix:
os: [windows-latest]
python: ['3.9', '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Build lib
run: |
pip install wheel
python setup.py develop
python setup.py bdist_wheel
python setup.py sdist bdist_wheel
- name: List contents of dist
run: ls -R dist

- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: dist-artifacts-${{ matrix.os }}-${{ matrix.python }}
path: dist

build-macos:
if: github.event_name == 'release'
strategy:
matrix:
os: [macos-latest]
python: ['3.10', '3.11', '3.12'] # 3.9 triggers scipy issues when installing
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Build lib
run: |
pip install wheel
python setup.py develop
python setup.py bdist_wheel
- name: List contents of dist
run: ls -R dist

- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: dist-artifacts-${{ matrix.os }}-${{ matrix.python }}
path: dist/*

build-linux:
if: github.event_name == 'release'
strategy:
matrix:
python: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312']
runs-on: ubuntu-latest
container:
image: quay.io/pypa/manylinux2014_x86_64

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Compile c headers
run: |
/opt/python/${{ matrix.python }}/bin/python setup.py develop
- name: Build wheel files
run: |
/opt/python/${{ matrix.python }}/bin/python setup.py bdist_wheel
- name: Install auditwheel # this should be available?!
run: |
/opt/python/${{ matrix.python }}/bin/python -m pip install auditwheel
- name: Repair wheel files
run: |
/opt/python/${{ matrix.python }}/bin/python -m auditwheel repair dist/*${{ matrix.python }}-linux_x86_64.whl
- name: List contents of dist
run: ls -R dist

- name: List contests of wheelhouse
run: ls -R wheelhouse

- name: Move wheelhouse wheel files to dist
run: |
rm dist/*
mv wheelhouse/* dist/
rmdir wheelhouse
- name: List contents of dist
run: ls -R dist

- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: dist-artifacts-manylinux-${{ matrix.python }}
path: dist/*

deploy:
runs-on: ubuntu-latest
needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos]
if: github.event_name == 'release'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install twine
run: |
pip install --upgrade pip
pip install twine
- name: Download all artifacts to a specific directory
uses: actions/download-artifact@v3
with:
path: dist

- name: Create dist directory
run: mkdir -p dist

- name: Move files from subdirectories
run: |
for subdirectory in dist/*/; do
dir_name=$(basename "$subdirectory")
mv "$subdirectory"* dist/
rm -r "$subdirectory"
echo "Moved files from '$dir_name' to 'dist/'"
done
- name: Inspect wheel files
run: |
ls -R dist
- name: Upload to PyPI using twine
run: twine upload --skip-existing dist/*
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,9 @@ iterate.dat
GPy*.rst

# vscode
settings.json
settings.json

# local dev
.eggs
.venv
.env
73 changes: 0 additions & 73 deletions .travis.yml

This file was deleted.

24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## Unreleased

## v1.13.2 (2024-07-21)
* update string checks in initialization method for latent variable and put `empirical_samples` init-method on a deprecation path

* update dependencies to `numpy>=1.7.0,<2.0.0`

* update dependencies to `numpy>=1.7.0,<2.0.0`

* update import in `.plotting.matplot_dep.defaults` due to change in matplotlib

* Correct dl_dm term in student t inference #1065

## v1.13.1 (2024-01-14)

* limit `scipy<1.12` as macos and linux jobs install some pre-release version of `scipy==1.12` which breaks tests

## v1.13.0 (2023-12-20)

* update `paramz` depdency to `>=0.9.6`

* limit supported python versions to `">=3.9"` in accordance with numpy

* Change from `nosetest` to `pytest`

## v1.9.8 (2019-05-17)

Expand Down
Loading

0 comments on commit 7e1cb7a

Please sign in to comment.