From 24e8fb73c377b923724f84c2786f83c6d1802ecc Mon Sep 17 00:00:00 2001 From: stoppini Date: Thu, 17 Oct 2024 12:50:01 +0200 Subject: [PATCH] new deploy --- .github/workflows/main.yml | 17 +++++++++-------- setup.py | 3 ++- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e572f82..264f9a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,17 +34,18 @@ jobs: steps: - name: Checkout - uses: actions/checkout@master + uses: actions/checkout@v4 - - name: Build manylinux Python wheels - uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64 + - name: Set up Python + uses: actions/setup-python@v4 with: - python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp31 cp312-cp312' + python-version: 3.9 # Versione Python per il build system - - uses: actions/upload-artifact@master - with: - name: linux-wheel - path: dist/*-manylinux*.whl + - name: Install cibuildwheel + run: pip install cibuildwheel + + - name: Build wheels + run: cibuildwheel --output-dir wheelhouse deploy-pypi: runs-on: ubuntu-latest diff --git a/setup.py b/setup.py index d6322b3..9943aa4 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 import platform -from setuptools import setup, find_packages , Distribution +from setuptools import setup, find_packages , Distribution, Extension long_description=\ """============================================================ @@ -44,6 +44,7 @@ def is_pure(self): author='UNIBS Team', author_email="ivan.serina@unibs.it", packages=["up_lpg"], + ext_modules=[Extension('lpg', sources=[executable])], package_data={"up_lpg": [executable]}, distclass=BinaryDistribution, include_package_data=True,