Skip to content

Commit 28ed283

Browse files
authored
Fix github action syntax error. (#2725)
1 parent d8e6e57 commit 28ed283

3 files changed

Lines changed: 20 additions & 22 deletions

File tree

.github/workflows/buildRyzenWheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
env: |
102102
VITIS: ${{ env.VITIS }}
103103
XILINXD_LICENSE_FILE: ${{ env.XILINXD_LICENSE_FILE }}
104-
AIE_WHEEL_VERSION: ${{ if(github.ref_type == 'tag' && startsWith(github.ref_name, 'v'), github.ref_name, '""') }}
104+
AIE_WHEEL_VERSION: ${{ (github.ref_type == 'tag' && startsWith(github.ref_name, 'v')) && github.ref_name || '""' }}
105105
run: |
106106
git config --global --add safe.directory $PWD
107107
MLIR_VERSION=$(git rev-parse --short HEAD)

utils/mlir_aie_wheels/pyproject.toml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
[project]
22
name = "mlir-aie"
33
description = "An MLIR-based toolchain for AMD AI Engine-enabled devices."
4-
readme = "README.md"
5-
dynamic = ["dependencies", "requires-python", "version"]
4+
readme = { text = """This repository contains an [MLIR-based](https://mlir.llvm.org/) toolchain for Xilinx Versal
5+
AIEngine-based devices. This can be used to generate low-level configuration for the AIEngine portion of the
6+
device, including processors, stream switches, TileDMA and ShimDMA blocks. Backend code generation is
7+
included, targetting the LibXAIE library. This project is primarily intended to support tool builders with
8+
convenient low-level access to devices and enable the development of a wide variety of programming models
9+
from higher level abstractions. As such, although it contains some examples, this project is not intended to
10+
represent end-to-end compilation flows or to be particularly easy to use for system design.
11+
""", content-type = "text/markdown" }
12+
dynamic = ["dependencies", "requires-python", "version", "license"]
13+
authors = [
14+
{ name="AMD Inc.", email="joseph.melber@amd.com" },
15+
]
16+
17+
[project.urls]
18+
"Homepage" = "https://github.com/Xilinx/mlir-aie"
619

720
[tool.cibuildwheel]
821
build-verbosity = 3

utils/mlir_aie_wheels/setup.py

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ def run(self):
253253

254254

255255
def get_version():
256-
if "AIE_WHEEL_VERSION" in os.environ:
256+
if "AIE_WHEEL_VERSION" in os.environ and os.environ["AIE_WHEEL_VERSION"].lstrip(
257+
"v"
258+
):
257259
return os.environ["AIE_WHEEL_VERSION"].lstrip("v")
258260
release_version = "0.0.1"
259261
commit_hash = os.environ.get("AIE_PROJECT_COMMIT", "deadbeef")
@@ -284,25 +286,8 @@ def parse_requirements(filename):
284286

285287
setup(
286288
version=get_version(),
287-
author="AMD Inc.",
288-
author_email="joseph.melber@amd.com",
289-
name="mlir-aie",
290-
url="https://github.com/Xilinx/mlir-aie",
291-
license="Apache License v2.0 with LLVM Exceptions",
289+
license="Apache-2.0 WITH LLVM-exception",
292290
include_package_data=True,
293-
description=f"An MLIR-based toolchain for Xilinx Versal AIEngine-based devices.",
294-
long_description=dedent(
295-
"""\
296-
This repository contains an [MLIR-based](https://mlir.llvm.org/) toolchain for Xilinx Versal
297-
AIEngine-based devices. This can be used to generate low-level configuration for the AIEngine portion of the
298-
device, including processors, stream switches, TileDMA and ShimDMA blocks. Backend code generation is
299-
included, targetting the LibXAIE library. This project is primarily intended to support tool builders with
300-
convenient low-level access to devices and enable the development of a wide variety of programming models
301-
from higher level abstractions. As such, although it contains some examples, this project is not intended to
302-
represent end-to-end compilation flows or to be particularly easy to use for system design.
303-
"""
304-
),
305-
long_description_content_type="text/markdown",
306291
# note the name here isn't relevant because it's the install (CMake install target) directory that'll be used to
307292
# actually build the wheel.
308293
ext_modules=[CMakeExtension("_mlir_aie", sourcedir=MLIR_AIE_SOURCE_DIR)],

0 commit comments

Comments
 (0)