Skip to content

Commit

Permalink
Release v0.3.1rc1 (#104)
Browse files Browse the repository at this point in the history
* Add tool for editing package version

* Bump version to 0.3.1rc1
  • Loading branch information
stes authored Oct 30, 2023
1 parent 4e594a4 commit f45e69d
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RUN make dist
FROM cebra-base

# install the cebra wheel
ENV WHEEL=cebra-0.3.0-py2.py3-none-any.whl
ENV WHEEL=cebra-0.3.1rc1-py2.py3-none-any.whl
WORKDIR /build
COPY --from=wheel /build/dist/${WHEEL} .
RUN pip install --no-cache-dir ${WHEEL}'[dev,integrations,datasets]'
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CEBRA_VERSION=$(shell python3 -c "import cebra; print(cebra.__version__)")
CEBRA_VERSION := 0.3.1rc1

dist:
python3 -m pip install virtualenv
Expand All @@ -10,7 +10,7 @@ build: dist
archlinux:
mkdir -p dist/arch
cp PKGBUILD dist/arch
cp dist/cebra-0.3.0.tar.gz dist/arch
cp dist/cebra-${CEBRA_VERSION}.tar.gz dist/arch
(cd dist/arch; makepkg --skipchecksums -f)

# NOTE(stes): Ensure that no old tempfiles are present. Ideally, move this into
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 <[email protected]>
pkgname=python-cebra
_pkgname=cebra
pkgver=0.3.0
pkgver=0.3.1rc1
pkgrel=1
pkgdesc="Consistent Embeddings of high-dimensional Recordings using Auxiliary variables"
url="https://cebra.ai"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ It can jointly use behavioral and neural data in a hypothesis- or discovery-driv
[Learnable latent embeddings for joint behavioral and neural analysis.](https://arxiv.org/abs/2204.00673)
Steffen Schneider*, Jin Hwa Lee* and Mackenzie Weygandt Mathis

# License
# License

- CEBRA is released for academic use only (please read the license file). If this license is not appropriate for your application, please contact Prof. Mackenzie W. Mathis ([email protected]) for a commercial use license.
2 changes: 1 addition & 1 deletion cebra/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

import cebra.integrations.sklearn as sklearn

__version__ = "0.3.0"
__version__ = "0.3.1rc1"
__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.3.0
VERSION=0.3.1rc1
echo "Upgrading to CEBRA v${VERSION}"

# Upgrade the build system (PEP517/518 compatible)
Expand Down
33 changes: 33 additions & 0 deletions tools/bump_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
# Bump the CEBRA version to the specified value.
# Edits all relevant files at once.
#
# Usage:
# tools/bump_version.sh 0.3.1rc1

version=$1
if [ -z ${version} ]; then
>&1 echo "Specify a version number."
>&1 echo "Usage:"
>&1 echo "tools/bump_version.sh <semantic version>"
fi

# python cebra version
sed -i "s/__version__ = .*/__version__ = \"${version}\"/" \
cebra/__init__.py

# reinstall script in root
sed -i "s/VERSION=.*/VERSION=${version}/" \
reinstall.sh

# Makefile
sed -i "s/CEBRA_VERSION := .*/CEBRA_VERSION := ${version}/" \
Makefile

# Arch linux PKGBUILD
sed -i "s/pkgver=.*/pkgver=${version}/" \
PKGBUILD

# Dockerfile
sed -i "s/ENV WHEEL=cebra-.*\.whl/ENV WHEEL=cebra-${version}-py2.py3-none-any.whl/" \
Dockerfile

0 comments on commit f45e69d

Please sign in to comment.