From 9a4467827e29d2cd1c746c706ef83b06277917e3 Mon Sep 17 00:00:00 2001 From: Steffen Schneider Date: Sat, 17 Jan 2026 21:41:29 +0100 Subject: [PATCH 1/6] Bump version to 0.6.0 --- Dockerfile | 2 +- Makefile | 2 +- PKGBUILD | 2 +- cebra/__init__.py | 2 +- reinstall.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c77f8c95..5f092805 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,7 @@ RUN make dist FROM cebra-base # install the cebra wheel -ENV WHEEL=cebra-0.6.0a2-py3-none-any.whl +ENV WHEEL=cebra-0.6.0-py3-none-any.whl WORKDIR /build COPY --from=wheel /build/dist/${WHEEL} . RUN pip install --no-cache-dir ${WHEEL}'[dev,integrations,datasets]' diff --git a/Makefile b/Makefile index 44270e68..9989d2dd 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CEBRA_VERSION := 0.6.0a2 +CEBRA_VERSION := 0.6.0 dist: python3 -m pip install virtualenv diff --git a/PKGBUILD b/PKGBUILD index 3fc70b19..401569ba 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Steffen Schneider pkgname=python-cebra _pkgname=cebra -pkgver=0.6.0a2 +pkgver=0.6.0 pkgrel=1 pkgdesc="Consistent Embeddings of high-dimensional Recordings using Auxiliary variables" url="https://cebra.ai" diff --git a/cebra/__init__.py b/cebra/__init__.py index a8631b51..ff36d354 100644 --- a/cebra/__init__.py +++ b/cebra/__init__.py @@ -66,7 +66,7 @@ import cebra.integrations.sklearn as sklearn -__version__ = "0.6.0a2" +__version__ = "0.6.0" __all__ = ["CEBRA"] __allow_lazy_imports = False __lazy_imports = {} diff --git a/reinstall.sh b/reinstall.sh index 067985a1..d191b8f7 100755 --- a/reinstall.sh +++ b/reinstall.sh @@ -15,7 +15,7 @@ pip uninstall -y cebra # Get version info after uninstalling --- this will automatically get the # most recent version based on the source code in the current directory. # $(tools/get_cebra_version.sh) -VERSION=0.6.0a2 +VERSION=0.6.0 echo "Upgrading to CEBRA v${VERSION}" # Upgrade the build system (PEP517/518 compatible) From 64bf130c59561f1b91e2063ee2346bea157f6bdb Mon Sep 17 00:00:00 2001 From: Steffen Schneider Date: Sat, 17 Jan 2026 21:54:44 +0100 Subject: [PATCH 2/6] Fix mpl env variable --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 45304662..0d22c95f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,6 +58,9 @@ jobs: runs-on: ${{ matrix.os }} + env: + MPLBACKEND: Agg + steps: - name: Cache dependencies id: pip-cache @@ -109,7 +112,7 @@ jobs: - name: Run pytest tests timeout-minutes: 15 run: | - make test + MPLBACKEND=Agg make test - name: Build package run: | From 395f7aacc3a2f948a5143ff9630291c0bb340242 Mon Sep 17 00:00:00 2001 From: Steffen Schneider Date: Sat, 17 Jan 2026 21:55:46 +0100 Subject: [PATCH 3/6] Remove double def. of "agg" backend --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d22c95f..92bd0a67 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -112,7 +112,7 @@ jobs: - name: Run pytest tests timeout-minutes: 15 run: | - MPLBACKEND=Agg make test + make test - name: Build package run: | From da8f8e9ca281603918aaa527d93f1f955f11aea9 Mon Sep 17 00:00:00 2001 From: Steffen Schneider Date: Sat, 17 Jan 2026 22:58:28 +0100 Subject: [PATCH 4/6] update license classifier --- setup.cfg | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index dad9ac26..f7b3c723 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,6 +6,7 @@ author_email = stes@hey.com, mackenzie@post.harvard.edu description = Consistent Embeddings of high-dimensional Recordings using Auxiliary variables long_description = file: README.md long_description_content_type = text/markdown +license = Apache-2.0 license_files = LICENSE.md license_file_type = text/markdown url = https://github.com/AdaptiveMotorControlLab/CEBRA @@ -18,9 +19,6 @@ classifiers = Operating System :: OS Independent Programming Language :: Python :: 3 Topic :: Scientific/Engineering :: Artificial Intelligence - # NOTE(stes): Upgrade according to https://github.com/pypa/trove-classifiers/issues/17#issuecomment-385027197 - # once the new classifiers are published - License :: OSI Approved :: Apache Software License [options] From a55649b03f72536a4a6e925c087ecc749fe4000a Mon Sep 17 00:00:00 2001 From: Steffen Schneider Date: Sat, 17 Jan 2026 23:16:02 +0100 Subject: [PATCH 5/6] make twine upload verbose --- .github/workflows/release-pypi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index ac078fd9..55124c9a 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -47,7 +47,7 @@ jobs: make dist ls dist/ tar tvf dist/cebra-*.tar.gz - python3 -m twine upload --repository testpypi dist/* + python3 -m twine upload --verbose --repository testpypi dist/* - name: Build and publish to PyPI if: ${{ github.event_name == 'push' }} @@ -58,4 +58,4 @@ jobs: make dist ls dist/ tar tvf dist/cebra-*.tar.gz - python3 -m twine upload dist/* + python3 -m twine upload --verbose dist/* From 4d2a4d4bb19c9caa5c3e1292f61c05c6f8440159 Mon Sep 17 00:00:00 2001 From: Steffen Schneider Date: Sat, 17 Jan 2026 23:21:41 +0100 Subject: [PATCH 6/6] fix pytest-sphinx dep --- .github/workflows/build.yml | 6 ++++++ setup.cfg | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 92bd0a67..76df6056 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,10 +78,16 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install package + # NOTE(stes): https://github.com/twmr/pytest-sphinx/issues/69 + # To run all tests, currently a manual install from github is required: + # https://github.com/twmr/pytest-sphinx/archive/refs/tags/v0.7.0.tar.gz + # Remove the respective line and the comment in setup.cfg once 0.7.0 is + # available on PyPI. run: | python -m pip install --upgrade pip setuptools wheel python -m pip install torch==${{ matrix.torch-version }} --extra-index-url https://download.pytorch.org/whl/cpu pip install '.[dev,datasets,integrations]' + pip install https://github.com/twmr/pytest-sphinx/archive/refs/tags/v0.7.0.tar.gz - name: Check sklearn legacy version if: matrix.sklearn-version == 'legacy' diff --git a/setup.cfg b/setup.cfg index f7b3c723..87fcef03 100644 --- a/setup.cfg +++ b/setup.cfg @@ -103,7 +103,10 @@ dev = pytest-xdist pytest-timeout # NOTE(stes): https://github.com/twmr/pytest-sphinx/issues/69 - pytest-sphinx @ https://github.com/twmr/pytest-sphinx/archive/refs/tags/v0.7.0.tar.gz + # To run all tests, currently a manual install from github is required: + # https://github.com/twmr/pytest-sphinx/archive/refs/tags/v0.7.0.tar.gz + # See .github/workflows/build.yml for more details. + pytest-sphinx licenseheaders interrogate # TODO(stes) Add back once upstream issue