blob: 7106011232878b4370227dd83c776654e4dd15f1 [file] [log] [blame]
#!/usr/bin/env bash
#-------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
#-------------------------------------------------------------
#BASE_DIR=$(pwd)
#BASE_DIR="/c/virtual\ D/SystemDS/systemds"
BASE_DIR="../.." #points to systemds directory
RELEASE_WORK_DIR=$BASE_DIR/target/release2
RELEASE_VERSION=2.0.0
eval cd $RELEASE_WORK_DIR/systemds/src/main/python
# Steps:
# 1. update systemds/project_info.py with the new version
sed -i "s/$RELEASE_VERSION-SNAPSHOT/$RELEASE_VERSION/" systemds/project_info.py
# 2. generate distribution archives
python3 create_python_dist.py
# 3. upload the distribution archives to testpypi/pypi
# - For testing follow https://packaging.python.org/tutorials/packaging-projects/
# - Note: for testing use command prompt in windows and use Edit->paste to paste
# the API token (known issues)
#python -m twine upload --repository testpypi dist/* #Test
#python twine upload dist/* #Real
exit