Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Release 0.5.0 #189

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
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.4.0-py2.py3-none-any.whl
ENV WHEEL=cebra-0.5.0rc1-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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CEBRA_VERSION := 0.4.0
CEBRA_VERSION := 0.5.0rc1

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 <[email protected]>
pkgname=python-cebra
_pkgname=cebra
pkgver=0.4.0
pkgver=0.5.0rc1
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.4.0"
__version__ = "0.5.0rc1"
__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.4.0
VERSION=0.5.0rc1
echo "Upgrading to CEBRA v${VERSION}"

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

Expand All @@ -10,24 +10,36 @@ if [ -z ${version} ]; then
>&1 echo "Specify a version number."
>&1 echo "Usage:"
>&1 echo "tools/bump_version.sh <semantic version>"
exit 1
fi

# Determine the correct sed command based on the OS
# On macOS, the `sed` command requires an empty string argument after `-i` for in-place editing.
# On Linux and other Unix-like systems, the `sed` command only requires `-i` for in-place editing.
if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
SED_CMD="sed -i .bkp -e"
else
# Linux and other Unix-like systems
SED_CMD="sed -i -e"
fi

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

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

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

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

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

# Remove backup files
if [[ "$OSTYPE" == "darwin"* ]]; then
rm cebra/__init__.py.bkp reinstall.sh.bkp Makefile.bkp PKGBUILD.bkp Dockerfile.bkp
fi
Loading