Skip to content

Commit f45e69d

Browse files
authored
Release v0.3.1rc1 (#104)
* Add tool for editing package version * Bump version to 0.3.1rc1
1 parent 4e594a4 commit f45e69d

7 files changed

Lines changed: 41 additions & 7 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ RUN make dist
4242
FROM cebra-base
4343

4444
# install the cebra wheel
45-
ENV WHEEL=cebra-0.3.0-py2.py3-none-any.whl
45+
ENV WHEEL=cebra-0.3.1rc1-py2.py3-none-any.whl
4646
WORKDIR /build
4747
COPY --from=wheel /build/dist/${WHEEL} .
4848
RUN pip install --no-cache-dir ${WHEEL}'[dev,integrations,datasets]'

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CEBRA_VERSION=$(shell python3 -c "import cebra; print(cebra.__version__)")
1+
CEBRA_VERSION := 0.3.1rc1
22

33
dist:
44
python3 -m pip install virtualenv
@@ -10,7 +10,7 @@ build: dist
1010
archlinux:
1111
mkdir -p dist/arch
1212
cp PKGBUILD dist/arch
13-
cp dist/cebra-0.3.0.tar.gz dist/arch
13+
cp dist/cebra-${CEBRA_VERSION}.tar.gz dist/arch
1414
(cd dist/arch; makepkg --skipchecksums -f)
1515

1616
# NOTE(stes): Ensure that no old tempfiles are present. Ideally, move this into

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.3.0
4+
pkgver=0.3.1rc1
55
pkgrel=1
66
pkgdesc="Consistent Embeddings of high-dimensional Recordings using Auxiliary variables"
77
url="https://cebra.ai"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ It can jointly use behavioral and neural data in a hypothesis- or discovery-driv
4545
[Learnable latent embeddings for joint behavioral and neural analysis.](https://arxiv.org/abs/2204.00673)
4646
Steffen Schneider*, Jin Hwa Lee* and Mackenzie Weygandt Mathis
4747

48-
# License
48+
# License
49+
4950
- 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 (mackenzie@post.harvard.edu) for a commercial use license.

cebra/__init__.py

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

5757
import cebra.integrations.sklearn as sklearn
5858

59-
__version__ = "0.3.0"
59+
__version__ = "0.3.1rc1"
6060
__all__ = ["CEBRA"]
6161
__allow_lazy_imports = False
6262
__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.3.0
18+
VERSION=0.3.1rc1
1919
echo "Upgrading to CEBRA v${VERSION}"
2020

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

tools/bump_version.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
# Bump the CEBRA version to the specified value.
3+
# Edits all relevant files at once.
4+
#
5+
# Usage:
6+
# tools/bump_version.sh 0.3.1rc1
7+
8+
version=$1
9+
if [ -z ${version} ]; then
10+
>&1 echo "Specify a version number."
11+
>&1 echo "Usage:"
12+
>&1 echo "tools/bump_version.sh <semantic version>"
13+
fi
14+
15+
# python cebra version
16+
sed -i "s/__version__ = .*/__version__ = \"${version}\"/" \
17+
cebra/__init__.py
18+
19+
# reinstall script in root
20+
sed -i "s/VERSION=.*/VERSION=${version}/" \
21+
reinstall.sh
22+
23+
# Makefile
24+
sed -i "s/CEBRA_VERSION := .*/CEBRA_VERSION := ${version}/" \
25+
Makefile
26+
27+
# Arch linux PKGBUILD
28+
sed -i "s/pkgver=.*/pkgver=${version}/" \
29+
PKGBUILD
30+
31+
# Dockerfile
32+
sed -i "s/ENV WHEEL=cebra-.*\.whl/ENV WHEEL=cebra-${version}-py2.py3-none-any.whl/" \
33+
Dockerfile

0 commit comments

Comments
 (0)