Skip to content

Commit

Permalink
POC: check sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
Tester authored and Tester committed Jan 24, 2024
1 parent 07237e5 commit 2911220
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2911220

Please sign in to comment.