Skip to content

Commit 493ed25

Browse files
authored
Release 0.6.0 (#285)
* Bump version to 0.6.0 * Fix mpl env variable * Remove double def. of "agg" backend * update license classifier * make twine upload verbose * fix pytest-sphinx dep
1 parent c1700cb commit 493ed25

File tree

8 files changed

+21
-11
lines changed

8 files changed

+21
-11
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ jobs:
5858

5959
runs-on: ${{ matrix.os }}
6060

61+
env:
62+
MPLBACKEND: Agg
63+
6164
steps:
6265
- name: Cache dependencies
6366
id: pip-cache
@@ -75,10 +78,16 @@ jobs:
7578
python-version: ${{ matrix.python-version }}
7679

7780
- name: Install package
81+
# NOTE(stes): https://github.com/twmr/pytest-sphinx/issues/69
82+
# To run all tests, currently a manual install from github is required:
83+
# https://github.com/twmr/pytest-sphinx/archive/refs/tags/v0.7.0.tar.gz
84+
# Remove the respective line and the comment in setup.cfg once 0.7.0 is
85+
# available on PyPI.
7886
run: |
7987
python -m pip install --upgrade pip setuptools wheel
8088
python -m pip install torch==${{ matrix.torch-version }} --extra-index-url https://download.pytorch.org/whl/cpu
8189
pip install '.[dev,datasets,integrations]'
90+
pip install https://github.com/twmr/pytest-sphinx/archive/refs/tags/v0.7.0.tar.gz
8291
8392
- name: Check sklearn legacy version
8493
if: matrix.sklearn-version == 'legacy'

.github/workflows/release-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
make dist
4848
ls dist/
4949
tar tvf dist/cebra-*.tar.gz
50-
python3 -m twine upload --repository testpypi dist/*
50+
python3 -m twine upload --verbose --repository testpypi dist/*
5151
5252
- name: Build and publish to PyPI
5353
if: ${{ github.event_name == 'push' }}
@@ -58,4 +58,4 @@ jobs:
5858
make dist
5959
ls dist/
6060
tar tvf dist/cebra-*.tar.gz
61-
python3 -m twine upload dist/*
61+
python3 -m twine upload --verbose dist/*

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RUN make dist
4040
FROM cebra-base
4141

4242
# install the cebra wheel
43-
ENV WHEEL=cebra-0.6.0a2-py3-none-any.whl
43+
ENV WHEEL=cebra-0.6.0-py3-none-any.whl
4444
WORKDIR /build
4545
COPY --from=wheel /build/dist/${WHEEL} .
4646
RUN pip install --no-cache-dir ${WHEEL}'[dev,integrations,datasets]'

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CEBRA_VERSION := 0.6.0a2
1+
CEBRA_VERSION := 0.6.0
22

33
dist:
44
python3 -m pip install virtualenv

PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: Steffen Schneider <stes@hey.com>
22
pkgname=python-cebra
33
_pkgname=cebra
4-
pkgver=0.6.0a2
4+
pkgver=0.6.0
55
pkgrel=1
66
pkgdesc="Consistent Embeddings of high-dimensional Recordings using Auxiliary variables"
77
url="https://cebra.ai"

cebra/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
import cebra.integrations.sklearn as sklearn
6868

69-
__version__ = "0.6.0a2"
69+
__version__ = "0.6.0"
7070
__all__ = ["CEBRA"]
7171
__allow_lazy_imports = False
7272
__lazy_imports = {}

reinstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pip uninstall -y cebra
1515
# Get version info after uninstalling --- this will automatically get the
1616
# most recent version based on the source code in the current directory.
1717
# $(tools/get_cebra_version.sh)
18-
VERSION=0.6.0a2
18+
VERSION=0.6.0
1919
echo "Upgrading to CEBRA v${VERSION}"
2020

2121
# Upgrade the build system (PEP517/518 compatible)

setup.cfg

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ author_email = stes@hey.com, mackenzie@post.harvard.edu
66
description = Consistent Embeddings of high-dimensional Recordings using Auxiliary variables
77
long_description = file: README.md
88
long_description_content_type = text/markdown
9+
license = Apache-2.0
910
license_files = LICENSE.md
1011
license_file_type = text/markdown
1112
url = https://github.com/AdaptiveMotorControlLab/CEBRA
@@ -18,9 +19,6 @@ classifiers =
1819
Operating System :: OS Independent
1920
Programming Language :: Python :: 3
2021
Topic :: Scientific/Engineering :: Artificial Intelligence
21-
# NOTE(stes): Upgrade according to https://github.com/pypa/trove-classifiers/issues/17#issuecomment-385027197
22-
# once the new classifiers are published
23-
License :: OSI Approved :: Apache Software License
2422

2523

2624
[options]
@@ -105,7 +103,10 @@ dev =
105103
pytest-xdist
106104
pytest-timeout
107105
# NOTE(stes): https://github.com/twmr/pytest-sphinx/issues/69
108-
pytest-sphinx @ https://github.com/twmr/pytest-sphinx/archive/refs/tags/v0.7.0.tar.gz
106+
# To run all tests, currently a manual install from github is required:
107+
# https://github.com/twmr/pytest-sphinx/archive/refs/tags/v0.7.0.tar.gz
108+
# See .github/workflows/build.yml for more details.
109+
pytest-sphinx
109110
licenseheaders
110111
interrogate
111112
# TODO(stes) Add back once upstream issue

0 commit comments

Comments
 (0)