You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/12/11 11:40:33 UTC
[airflow-site] branch master updated: Sync version between release
and package (#349)
This is an automated email from the ASF dual-hosted git repository.
kamilbregula pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/master by this push:
new 73cd075 Sync version between release and package (#349)
73cd075 is described below
commit 73cd075bc69e2e89fae59715e954e4e0080cf09d
Author: Kamil BreguĊa <mi...@users.noreply.github.com>
AuthorDate: Fri Dec 11 12:40:24 2020 +0100
Sync version between release and package (#349)
---
.github/workflows/build.yml | 8 +++++---
sphinx_airflow_theme/README.md | 12 +++++++-----
sphinx_airflow_theme/setup.py | 2 +-
3 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c0f1898..0dd82fc 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -108,11 +108,13 @@ jobs:
github.event_name == 'push'
run: |
gh auth status
- gh release delete v0.0.3 -y || true
+ VERSION="$(python setup.py --version)"
+ TITLE=$(date "+%Y-%m-%d %H:%M:%S")
NOTES="Commit: ${GITHUB_COMMIT}
Source: ${GITHUB_REF}"
- gh release create v0.0.3 \
- --title "Latest version" \
+ gh release delete "${VERSION}" -y || true
+ gh release create "${VERSION}" \
+ --title "${TITLE}" \
--notes "${NOTES}" \
./dist/*
diff --git a/sphinx_airflow_theme/README.md b/sphinx_airflow_theme/README.md
index 2e7e502..6cfb948 100644
--- a/sphinx_airflow_theme/README.md
+++ b/sphinx_airflow_theme/README.md
@@ -32,25 +32,26 @@ In order to start working with the theme, please follow the instructions below.
```
2. To make Javascript and CSS code available for the theme, run the following command in the root directory:
- ```
+ ```shell script
./site.sh build-site && ./site.sh prepare-theme
```
3. To install the required Python packages, in `<ROOT DIRECTORY>/sphinx_airflow_theme` run:
- ```
+ ```shell script
pip install -e .
```
4. To launch the demo documentation page, in `<ROOT DIRECTORY>/sphinx_airflow_theme/demo` run:
- ```
+ ```shell script
./docs.sh build && ./docs.sh preview
```
# Install developer version
To install the latest development version of a theme, run:
-```
-pip install 'https://github.com/apache/airflow-site/releases/download/v0.0.3/sphinx_airflow_theme-0.0.3-py3-none-any.whl'
+```shell script
+THEME_VERSION="$(curl -s https://api.github.com/repos/apache/airflow-site/releases/latest | grep '"tag_name":' | cut -d '"' -f 4)"
+pip install "https://github.com/apache/airflow-site/releases/download/${THEME_VERSION}/sphinx_airflow_theme-${THEME_VERSION}-py3-none-any.whl"
```
Python packages for your PRs is available as downloadable artifact in GitHub Actions after
the CI builds your PR.
@@ -69,6 +70,7 @@ html_theme_options = {
'navbar_links': [
{'href': '/docs/', 'text': 'Documentation'}
]
+}
```
(This is the default)
diff --git a/sphinx_airflow_theme/setup.py b/sphinx_airflow_theme/setup.py
index 2a15968..c4f787a 100644
--- a/sphinx_airflow_theme/setup.py
+++ b/sphinx_airflow_theme/setup.py
@@ -38,7 +38,7 @@ with open('README.md', encoding='utf-8') as file:
setup(
name='sphinx_airflow_theme',
- version='0.0.2',
+ version='0.0.4',
url='https://github.com/apache/airflow-site/tree/aip-11',
license='Apache License 2.0',
author='Apache Software Foundation',