From 1795e154485994f8589e1664212a90ab11d976db Mon Sep 17 00:00:00 2001 From: Jasper Craeghs Date: Sat, 20 Jan 2024 09:41:01 +0100 Subject: [PATCH 1/2] Fix editable build --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 69bd6978..44e3bb0e 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ zip_safe=False, license='Apache License, Version 2.0', platforms='any', - packages=find_namespace_packages(where='src/', include=['mlx.warnings']), + packages=find_namespace_packages(where='src', include=['mlx.warnings']), package_dir={'': 'src'}, entry_points={'console_scripts': ['mlx-warnings = mlx.warnings.warnings:main']}, install_requires=requires, From 8d0fea5e54884d706bfcbe98f6b1cd90291ecb86 Mon Sep 17 00:00:00 2001 From: Jasper Craeghs Date: Sat, 20 Jan 2024 09:46:32 +0100 Subject: [PATCH 2/2] Let CI use pip to install the package in editable mode --- .github/workflows/python-package.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3a68ce50..128d97ba 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -35,6 +35,8 @@ jobs: - name: Static checks if: matrix.python-version == '3.10' run: tox -e check + - name: Test editable installation with pip + run: pip install -e . - name: Upload HTML documentation if: matrix.python-version == '3.10' uses: actions/upload-artifact@v3