Skip to content

Commit 12471fd

Browse files
committed
minor updates in the PyPi publishing script
1 parent c217449 commit 12471fd

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
1010

1111
[project]
1212
name = "daisy-exact-search"
13-
version = "1.0.6"
13+
version = "1.0.7"
1414
description = "DaiSy: A Library for Scalable Data Series Similarity Search"
1515
readme = "README.md"
1616
requires-python = ">=3.10"

scripts/publish_pip.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,22 @@ fi
1313

1414
VERSION=$1
1515
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
16+
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
1617

1718
echo "Publishing version $VERSION to PyPI..."
1819
echo
1920

2021
# Update version in setup.py
2122
echo "Updating setup.py..."
22-
sed -i "s/__version__ = \"[^\"]*\"/__version__ = \"$VERSION\"/" "$SCRIPT_DIR/setup.py"
23+
sed -i "s/__version__ = \"[^\"]*\"/__version__ = \"$VERSION\"/" "$PROJECT_ROOT/setup.py"
2324

2425
# Update version in pyproject.toml
2526
echo "Updating pyproject.toml..."
26-
sed -i "s/^version = \"[^\"]*\"/version = \"$VERSION\"/" "$SCRIPT_DIR/pyproject.toml"
27+
sed -i "s/^version = \"[^\"]*\"/version = \"$VERSION\"/" "$PROJECT_ROOT/pyproject.toml"
2728

2829
# Clean previous builds
2930
echo "Cleaning previous builds..."
30-
cd "$SCRIPT_DIR"
31+
cd "$PROJECT_ROOT"
3132
rm -rf build dist *.egg-info
3233

3334
# Build the package

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from setuptools.command.build_ext import build_ext as _build_ext
1212

1313
# Version
14-
__version__ = "1.0.6"
14+
__version__ = "1.0.7"
1515

1616
# Detect platform
1717
IS_MACOS = sys.platform == "darwin"

0 commit comments

Comments
 (0)