@@ -32,6 +32,7 @@ of this the version in the built artifacts that will become the official Apache
3232 ``` shell script
3333 # Set Version
3434 export VERSION=2.0.0rc1
35+ export VERSION_WITHOUT_RC=${VERSION% rc?}
3536
3637
3738 # Example after cloning
@@ -58,7 +59,7 @@ of this the version in the built artifacts that will become the official Apache
5859- Tarball the repo
5960
6061 ` ` ` shell script
61- git archive --format=tar.gz ${VERSION} --prefix=apache-airflow-client-${VERSION } / -o apache-airflow-client-${VERSION } -source.tar.gz
62+ git archive --format=tar.gz ${VERSION} --prefix=apache-airflow-client-${VERSION_WITHOUT_RC } / -o apache-airflow-client-${VERSION_WITHOUT_RC } -source.tar.gz
6263 ` ` `
6364
6465- Generate sdist
@@ -73,17 +74,17 @@ of this the version in the built artifacts that will become the official Apache
7374- Rename the sdist
7475
7576 ` ` ` shell script
76- mv dist/apache-airflow-client-${VERSION % rc? } .tar.gz apache-airflow-client-${VERSION } -bin.tar.gz
77- mv dist/apache_airflow_client-${VERSION % rc? } -py3-none-any.whl apache_airflow_client-${VERSION } -py3-none-any.whl
77+ mv dist/apache-airflow-client-${VERSION_WITHOUT_RC } .tar.gz apache-airflow-client-${VERSION_WITHOUT_RC } -bin.tar.gz
78+ mv dist/apache_airflow_client-${VERSION_WITHOUT_RC } -py3-none-any.whl apache_airflow_client-${VERSION_WITHOUT_RC } -py3-none-any.whl
7879 ` ` `
7980
8081- Generate SHA512/ASC (If you have not generated a key yet, generate it by following instructions on
8182 http://www.apache.org/dev/openpgp.html#key-gen-generate-key)
8283
8384 ` ` ` shell script
84- ${CLIENT_REPO_ROOT} /dev/sign.sh apache-airflow-client-${VERSION } -source.tar.gz
85- ${CLIENT_REPO_ROOT} /dev/sign.sh apache-airflow-client-${VERSION } -bin.tar.gz
86- ${CLIENT_REPO_ROOT} /dev/sign.sh apache_airflow_client-${VERSION } -py3-none-any.whl
85+ ${CLIENT_REPO_ROOT} /dev/sign.sh apache-airflow-client-${VERSION_WITHOUT_RC } -source.tar.gz
86+ ${CLIENT_REPO_ROOT} /dev/sign.sh apache-airflow-client-${VERSION_WITHOUT_RC } -bin.tar.gz
87+ ${CLIENT_REPO_ROOT} /dev/sign.sh apache_airflow_client-${VERSION_WITHOUT_RC } -py3-none-any.whl
8788 ` ` `
8889
8990- Push the artifacts to ASF dev dist repo
@@ -97,7 +98,7 @@ cd airflow-dev/clients/python
9798svn mkdir ${VERSION}
9899
99100# Move the artifacts to svn folder & commit
100- mv ${CLIENT_REPO_ROOT}/apache{-,_ }* client-${VERSION }* ${VERSION}/
101+ mv ${CLIENT_REPO_ROOT}/apache{-,_ }* client-${VERSION_WITHOUT_RC }* ${VERSION}/
101102cd ${VERSION}
102103svn add *
103104svn commit -m "Add artifacts for Apache Airflow Python Client ${VERSION}"
@@ -268,4 +269,4 @@ At this point we release an official package:
268269
269270# # Notify developers of release
270271
271- 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)
272+ 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)
0 commit comments