@@ -32,6 +32,7 @@ of this the version in the built artifacts that will become the official Apache
32
32
``` shell script
33
33
# Set Version
34
34
export VERSION=2.0.0rc1
35
+ export VERSION_WITHOUT_RC=${VERSION% rc?}
35
36
36
37
37
38
# Example after cloning
@@ -58,7 +59,7 @@ of this the version in the built artifacts that will become the official Apache
58
59
- Tarball the repo
59
60
60
61
` ` ` 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
62
63
` ` `
63
64
64
65
- Generate sdist
@@ -73,17 +74,17 @@ of this the version in the built artifacts that will become the official Apache
73
74
- Rename the sdist
74
75
75
76
` ` ` 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
78
79
` ` `
79
80
80
81
- Generate SHA512/ASC (If you have not generated a key yet, generate it by following instructions on
81
82
http://www.apache.org/dev/openpgp.html#key-gen-generate-key)
82
83
83
84
` ` ` 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
87
88
` ` `
88
89
89
90
- Push the artifacts to ASF dev dist repo
@@ -97,7 +98,7 @@ cd airflow-dev/clients/python
97
98
svn mkdir ${VERSION}
98
99
99
100
# 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}/
101
102
cd ${VERSION}
102
103
svn add *
103
104
svn commit -m "Add artifacts for Apache Airflow Python Client ${VERSION}"
@@ -268,4 +269,4 @@ At this point we release an official package:
268
269
269
270
# # Notify developers of release
270
271
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