From ebbc50cbcd270205f1819334d4601df6e2ae34fa Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Tue, 7 May 2024 15:09:01 +0100 Subject: [PATCH] Try to solve issue with release Faced while running the following command in the CI (I was not able to reproduce this locally): ``` Run python -m build ``` Resulted in the stacktrace: ``` val = self.func(instance) File "/tmp/build-env-o83v4k67/lib/python3.10/site-packages/hatchling/builders/wheel.py", line 247, in default_file_selection_options raise ValueError(message) ValueError: Unable to determine which files to ship inside the wheel using the following heuristics: https://hatch.pypa.io/latest/plugins/builder/wheel/#default-file-selection The most likely cause of this is that there is no directory that matches the name of your project (astronomer_cosmos). At least one file selection option must be defined in the `tool.hatch.build.targets.wheel` table, see: https://hatch.pypa.io/latest/config/build/ As an example, if you intend to ship a directory named `foo` that resides within a `src` directory located at the root of your project, you can define the following: [tool.hatch.build.targets.wheel] packages = ["src/foo"] ERROR Backend subprocess exited when trying to invoke build_wheel ``` As seen in: https://github.com/astronomer/astronomer-cosmos/actions/runs/8986616060/job/24683237685 --- .github/workflows/deploy.yml | 2 +- cosmos/__init__.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ce7174a85..be13f34be 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install build dependencies run: python -m pip install --upgrade build diff --git a/cosmos/__init__.py b/cosmos/__init__.py index fe8e7bf10..143860e55 100644 --- a/cosmos/__init__.py +++ b/cosmos/__init__.py @@ -5,7 +5,7 @@ Contains dags, task groups, and operators. """ -__version__ = "1.4.0a3" +__version__ = "1.4.0a4" from cosmos.airflow.dag import DbtDag diff --git a/pyproject.toml b/pyproject.toml index f0bf9b0b3..04486f552 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -108,7 +108,7 @@ path = "cosmos/__init__.py" include = ["/cosmos"] [tool.hatch.build.targets.wheel] -packages = ["cosmos"] +packages = ["/cosmos"] ###################################### # TESTING