Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ jobs:

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

env:
MPLBACKEND: Agg

steps:
- name: Cache dependencies
id: pip-cache
Expand All @@ -75,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'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand All @@ -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/*
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CEBRA_VERSION := 0.6.0a2
CEBRA_VERSION := 0.6.0

dist:
python3 -m pip install virtualenv
Expand Down
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Steffen Schneider <stes@hey.com>
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"
Expand Down
2 changes: 1 addition & 1 deletion cebra/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
2 changes: 1 addition & 1 deletion reinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 5 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand Down Expand Up @@ -105,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
Expand Down