This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch kaxil-patch-1
in repository https://gitbox.apache.org/repos/asf/airflow-client-python.git

commit 307a4d6018e8a87451ab8bf716511bfd93f1f519
Author: Kaxil Naik <[email protected]>
AuthorDate: Sat May 29 20:22:27 2021 +0100

    Remove Version suffix for SVN while releasing
    
    same as https://github.com/apache/airflow/pull/15905 but for Python client
---
 dev/README_RELEASE_CLIENT.md | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/dev/README_RELEASE_CLIENT.md b/dev/README_RELEASE_CLIENT.md
index bef8108..8767f66 100644
--- a/dev/README_RELEASE_CLIENT.md
+++ b/dev/README_RELEASE_CLIENT.md
@@ -32,6 +32,7 @@ of this the version in the built artifacts that will become 
the official Apache
     ```shell script
     # Set Version
     export VERSION=2.0.0rc1
+    export VERSION_WITHOUT_RC=${VERSION%rc?}
 
 
     # Example after cloning
@@ -58,7 +59,7 @@ of this the version in the built artifacts that will become 
the official Apache
 - Tarball the repo
 
     ```shell script
-    git archive --format=tar.gz ${VERSION} 
--prefix=apache-airflow-client-${VERSION}/ -o 
apache-airflow-client-${VERSION}-source.tar.gz
+    git archive --format=tar.gz ${VERSION} 
--prefix=apache-airflow-client-${VERSION_WITHOUT_RC}/ -o 
apache-airflow-client-${VERSION_WITHOUT_RC}-source.tar.gz
     ```
 
 - Generate sdist
@@ -73,17 +74,17 @@ of this the version in the built artifacts that will become 
the official Apache
 - Rename the sdist
 
     ```shell script
-    mv dist/apache-airflow-client-${VERSION%rc?}.tar.gz 
apache-airflow-client-${VERSION}-bin.tar.gz
-    mv dist/apache_airflow_client-${VERSION%rc?}-py3-none-any.whl 
apache_airflow_client-${VERSION}-py3-none-any.whl
+    mv dist/apache-airflow-client-${VERSION_WITHOUT_RC}.tar.gz 
apache-airflow-client-${VERSION_WITHOUT_RC}-bin.tar.gz
+    mv dist/apache_airflow_client-${VERSION_WITHOUT_RC}-py3-none-any.whl 
apache_airflow_client-${VERSION_WITHOUT_RC}-py3-none-any.whl
     ```
 
 - Generate SHA512/ASC (If you have not generated a key yet, generate it by 
following instructions on
   http://www.apache.org/dev/openpgp.html#key-gen-generate-key)
 
     ```shell script
-    ${CLIENT_REPO_ROOT}/dev/sign.sh 
apache-airflow-client-${VERSION}-source.tar.gz
-    ${CLIENT_REPO_ROOT}/dev/sign.sh apache-airflow-client-${VERSION}-bin.tar.gz
-    ${CLIENT_REPO_ROOT}/dev/sign.sh 
apache_airflow_client-${VERSION}-py3-none-any.whl
+    ${CLIENT_REPO_ROOT}/dev/sign.sh 
apache-airflow-client-${VERSION_WITHOUT_RC}-source.tar.gz
+    ${CLIENT_REPO_ROOT}/dev/sign.sh 
apache-airflow-client-${VERSION_WITHOUT_RC}-bin.tar.gz
+    ${CLIENT_REPO_ROOT}/dev/sign.sh 
apache_airflow_client-${VERSION_WITHOUT_RC}-py3-none-any.whl
     ```
 
 - Push the artifacts to ASF dev dist repo
@@ -97,7 +98,7 @@ cd airflow-dev/clients/python
 svn mkdir ${VERSION}
 
 # Move the artifacts to svn folder & commit
-mv ${CLIENT_REPO_ROOT}/apache{-,_}*client-${VERSION}* ${VERSION}/
+mv ${CLIENT_REPO_ROOT}/apache{-,_}*client-${VERSION_WITHOUT_RC}* ${VERSION}/
 cd ${VERSION}
 svn add *
 svn commit -m "Add artifacts for Apache Airflow Python Client ${VERSION}"
@@ -268,4 +269,4 @@ At this point we release an official package:
 
 ## Notify developers of release
 
-See Airflow process documented 
[here](https://github.com/apache/airflow/blob/master/dev/README_RELEASE_AIRFLOW.md#notify-developers-of-release)
 (just replace Airflow with Airflow Client)
\ No newline at end of file
+See Airflow process documented 
[here](https://github.com/apache/airflow/blob/master/dev/README_RELEASE_AIRFLOW.md#notify-developers-of-release)
 (just replace Airflow with Airflow Client)

Reply via email to