From fcf5c05aed9e6680d31fd68c53ddc5233f4f0541 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Thu, 24 Oct 2024 08:46:06 +0100 Subject: [PATCH] Fix release after the `raw` rst directive disabled was disabled in PyPI (#1282) We started facing the following error while trying to publish packages to PyPI: ``` ERROR `long_description` has syntax errors in markup and would not be rendered on PyPI. line 88: Warning: "raw" directive disabled. Checking dist/astronomer_cosmos-1.7.1a1.tar.gz: FAILED ``` As seen in https://github.com/astronomer/astronomer-cosmos/actions/runs/11485503895/job/31965756381 I was able to reproduce the Github action error by running: ``` rm -fr dist && python -m build --wheel && twine check dist/* ``` This PR aims to solve the issue without side effects on Scarf metrics. This shows a successful release using 98dbf057db65ab02cafb6cec6bada0ba1dfb9bae: https://github.com/astronomer/astronomer-cosmos/actions/runs/11494737405/job/31992802917 That resulted in the following package being published: https://pypi.org/project/astronomer-cosmos/1.7.1a1/ --- .github/workflows/deploy.yml | 2 +- CHANGELOG.rst | 9 +++++++++ README.rst | 4 ++-- cosmos/__init__.py | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index be13f34be..b64d73d55 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -37,7 +37,7 @@ jobs: path: dist - name: Push build artifacts to PyPi - uses: pypa/gh-action-pypi-publish@v1.8.14 + uses: pypa/gh-action-pypi-publish@v1.10.3 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ba2dd74ab..360859776 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,15 @@ Changelog ========= +1.7.1a1 (2024-10-24) +-------------------- + +Others + +* Fix release to PyPI after rst directive disabled by @tatiana in #1281 + + + 1.7.0 (2024-10-04) ------------------ diff --git a/README.rst b/README.rst index cf7b84cb9..37212fdfc 100644 --- a/README.rst +++ b/README.rst @@ -85,6 +85,6 @@ ______________ This project follows `Astronomer's Privacy Policy `_ .. Tracking pixel for Scarf -.. raw:: html - +.. image:: https://static.scarf.sh/a.png?x-pxid=ae43a92a-5a21-4c77-af8b-99c2242adf93 + :target: https://static.scarf.sh/a.png?x-pxid=ae43a92a-5a21-4c77-af8b-99c2242adf93 diff --git a/cosmos/__init__.py b/cosmos/__init__.py index b55e13dff..4c2abb664 100644 --- a/cosmos/__init__.py +++ b/cosmos/__init__.py @@ -6,7 +6,7 @@ Contains dags, task groups, and operators. """ -__version__ = "1.7.0" +__version__ = "1.7.1a1" from cosmos.airflow.dag import DbtDag