From 8e0b480a7ebaeeeb2146ae7cb362e33b7aa2f98a Mon Sep 17 00:00:00 2001 From: Vladislav Tsendrovskii Date: Tue, 10 Sep 2024 13:21:24 +0200 Subject: [PATCH] Build wheel in CI --- .github/workflows/ci.yml | 7 +++++-- setup.py | 7 ++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87ac8ed..0de22ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,14 +22,17 @@ jobs: python -m pip install pylint python -m pip install pytest python -m pip install pytest-cov + python -m pip install build + python -m pip install cython + python -m pip install wheel python -m pip install -r requirements.txt - name: Lint with pylint run: | pylint --rcfile=pylintrc --fail-under=9 src/ - name: Build & Install run: | - python setup.py build - python setup.py install + python -m build . --wheel + find ./dist/*.whl | xargs python -m pip install - name: Test that tools launches run: | vstarstack diff --git a/setup.py b/setup.py index 5ee8fad..4b332e1 100644 --- a/setup.py +++ b/setup.py @@ -76,10 +76,10 @@ packages = result setup (name = 'vstarstack', - version = '0.2', + version = '0.2.1', author='Vladislav Tsendrovskii', description = 'Stacking astrophotos', - package_dir = {'': 'src'}, + package_dir = {'vstarstack': 'src/vstarstack'}, packages=packages, ext_modules = [projection, movements, @@ -104,5 +104,6 @@ 'imutils', 'matplotlib', 'pytz', - ] + ], + requires=["setuptools", "cython", "numpy"] )