Skip to content

Commit

Permalink
Merge pull request #59 from digital-asset/version-bump
Browse files Browse the repository at this point in the history
Version bump
  • Loading branch information
sammy-da authored Aug 16, 2021
2 parents c7a4b97 + abe6f56 commit 3401d6f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
DIT_NAME=$(shell ddit targetname)
BASENAME=$(shell ddit targetname --basename)
VERSION=$(shell ddit ditversion)
BOT_VERSION=$(shell ddit ditversion | sed "s/-rc./rc/")

NAME=${BASENAME}-${VERSION}

PKG_FILES=$(shell find pkg -type f)

PYTHON := pipenv run python

operator_bot := target/daml-chat-operator-bot-$(VERSION).tar.gz
user_bot := target/daml-chat-user-bot-$(VERSION).tar.gz
operator_bot := target/daml-chat-operator-bot-$(BOT_VERSION).tar.gz
user_bot := target/daml-chat-user-bot-$(BOT_VERSION).tar.gz
ui := target/daml-chat-ui-$(VERSION).zip

.PHONY: all package publish
Expand All @@ -29,17 +30,17 @@ target:
mkdir $@

$(operator_bot):
cd python/operator && DDIT_VERSION=$(VERSION) $(PYTHON) setup.py sdist
cd python/operator && BOT_VERSION=$(BOT_VERSION) $(PYTHON) setup.py sdist
rm -fr python/operator/daml_chat_operator_bot.egg-info
mkdir -p $(@D)
mv python/operator/dist/daml-chat-operator-bot-$(VERSION).tar.gz $@
mv python/operator/dist/daml-chat-operator-bot-$(BOT_VERSION).tar.gz $@
rm -r python/operator/dist

$(user_bot):
cd python/user && DDIT_VERSION=$(VERSION) $(PYTHON) setup.py sdist
cd python/user && BOT_VERSION=$(BOT_VERSION) $(PYTHON) setup.py sdist
rm -fr python/user/daml_chat_user_bot.egg-info
mkdir -p $(@D)
mv python/user/dist/daml-chat-user-bot-$(VERSION).tar.gz $@
mv python/user/dist/daml-chat-user-bot-$(BOT_VERSION).tar.gz $@
rm -r python/user/dist

$(ui): $(user_bot)
Expand Down
4 changes: 2 additions & 2 deletions dabl-meta.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
catalog:
name: daml-chat
version: 0.2.3
version: 2.0.0-rc.1
short_description: Daml Chat
description: A straightforward web chat app.
author: Digital Asset (Switzerland) GmbH
source_url: https://github.com/digital-asset/dablchat
license: Apache-2.0
tags: [dabl-sample-app, application]
tags: [dabl-sample-app, application, experimental]
icon_file: dabl-chat.png
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "daml-chat",
"version": "1.8.5",
"version": "2.0.0-rc.1",
"private": true,
"dependencies": {
"@webscopeio/react-textarea-autocomplete": "^4.6.1",
Expand Down
2 changes: 1 addition & 1 deletion python/operator/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup

setup(name='daml-chat-operator-bot',
version=os.environ.get('DDIT_VERSION', 'release'),
version=os.environ.get('BOT_VERSION', 'release'),
description='Daml Chat Operator',
author='Digital Asset',
license='Apache2',
Expand Down
2 changes: 1 addition & 1 deletion python/user/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup

setup(name='daml-chat-user-bot',
version=os.environ.get('DDIT_VERSION', 'release'),
version=os.environ.get('BOT_VERSION', 'release'),
description='Daml Chat User',
author='Digital Asset',
license='Apache2',
Expand Down

0 comments on commit 3401d6f

Please sign in to comment.