From 2911220485578443eca5e57f5875f01e4b489a12 Mon Sep 17 00:00:00 2001 From: Tester Date: Wed, 24 Jan 2024 14:18:01 +0330 Subject: [PATCH] POC: check sdist --- .github/workflows/test.yaml | 9 ++++++++- setup.py | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1a523794..1bce8908 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,7 +10,7 @@ on: - feature/* jobs: sdist: - name: build sdist wheel + name: build sdist wheel and check runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -19,6 +19,13 @@ jobs: python -m pip install --upgrade pip python -m pip install build setuptools wheel python -m build --sdist + + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - run: | + pip install ./dist/curl_cffi-0.6.0b8.tar.gz + - uses: actions/upload-artifact@v3 with: path: ./dist/*.tar.gz diff --git a/setup.py b/setup.py index 32553873..d56c6a67 100644 --- a/setup.py +++ b/setup.py @@ -97,6 +97,7 @@ def download_so(): print("Unpacking downloaded files...") os.makedirs(libdir, exist_ok=True) shutil.unpack_archive(file, libdir) + print(f"Unpacked downloaded files into {libdir}.") if system == "Windows": shutil.copy2(f"{libdir}/libcurl.dll", "curl_cffi")