Skip to content

Commit

Permalink
WIP: bump version in root pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq committed Dec 26, 2023
1 parent c40ee8e commit 517fbe3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jupyter-ai/monorepo",
"version": "2.7.1",
"description": "The top-level monorepo package. Should only be locally installed by developers.",
"version": "0.0.0",
"description": "The top-level monorepo JS package. Never released or installed.",
"private": true,
"keywords": [
"jupyter",
Expand Down
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ build-backend = "setuptools.build_meta"

[project]
name = "jupyter_ai_monorepo"
description = "The top-level monorepo package. Should only be locally installed by developers."
description = "The top-level monorepo PY package. Never released, but is installed by developers."
requires-python = ">=3.8"
dependencies = []

# The version declared in `package.json` is used by Jupyter Releaser to build
# the changelogs. That version (not this) is bumped by `scripts/bump-version.sh`
# every release.
version = "0.0.0"
# Automatically bumped by `scripts/bump-version.sh`.
version = "2.7.1"

[project.optional-dependencies]
# dev dependencies shared by all packages. should be installed by developers
Expand Down
15 changes: 11 additions & 4 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
#!/bin/bash

# script that bumps version for all projects regardless of whether they were
# changed since last release. needed because `lerna version` only bumps versions for projects
# listed by `lerna changed` by default.
# changed since last release.

set -euxo pipefail
target_version="$1"

# bump version in pyproject.toml
# TODO

# we specify `--force-publish` because otherwise, `lerna version` only bumps
# versions for projects listed by `lerna changed`.
#
# see: https://github.com/lerna/lerna/issues/2369

(npx -p lerna@6.4.1 -y lerna version \
--no-git-tag-version \
--no-push \
--force-publish \
-y \
$1 \
"$target_version" \
) || exit 1

0 comments on commit 517fbe3

Please sign in to comment.