From d52d45c54484762bcc062cb8dbd7c05ba9778756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Ng=E1=BB=8Dc=20=C4=90=E1=BB=A9c=20Huy?= Date: Tue, 26 Apr 2022 20:14:58 +0700 Subject: [PATCH 1/3] Add cchardet 2.1.7 --- .github/workflows/.gitkeep | 0 .github/workflows/build.yml | 51 +++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) delete mode 100644 .github/workflows/.gitkeep create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/.gitkeep b/.github/workflows/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9c58676 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,51 @@ +name: cchardet 2.1.7 + +defaults: + run: + shell: bash + +on: pull_request + +jobs: + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, windows-2019, macos-10.15] + + steps: + - uses: actions/checkout@v2 + + # Used to host cibuildwheel + - uses: actions/setup-python@v2 + + - name: Install cibuildwheel + run: python -m pip install cibuildwheel==2.1.2 + + - name: Fetch source distribution + run: | + curl https://files.pythonhosted.org/packages/a8/5d/090c9f0312b7988a9433246c9cf0b566b1ae1374368cfb8ac897218a4f65/cchardet-2.1.7.tar.gz -o cchardet-2.1.7.tar.gz + tar -zxf cchardet-2.1.7.tar.gz + mv cchardet-2.1.7/* . + + - name: Build wheels + run: python -m cibuildwheel --output-dir wheelhouse + env: + CIBW_PROJECT_REQUIRES_PYTHON: "==3.10" + CIBW_BUILD: "cp*" + + - name: Checksum + uses: Huy-Ngo/gha-sha@v1.1.0 + with: + glob: 'wheelhouse/*.whl' + - uses: actions/upload-artifact@v2 + with: + path: wheelhouse/*.whl + + - name: Release + uses: softprops/action-gh-release@v1 + with: + name: 'Release: cchardet 2.1.7' + files: wheelhouse/*.whl + tag_name: cchardet-2.1.7 From 50f0d80016c6985b183f595f5f860ed8908f4a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Ng=E1=BB=8Dc=20=C4=90=E1=BB=A9c=20Huy?= Date: Tue, 26 Apr 2022 20:17:14 +0700 Subject: [PATCH 2/3] Explicit build --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c58676..5f614f1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,7 @@ jobs: run: python -m cibuildwheel --output-dir wheelhouse env: CIBW_PROJECT_REQUIRES_PYTHON: "==3.10" - CIBW_BUILD: "cp*" + CIBW_BUILD: "cp310" - name: Checksum uses: Huy-Ngo/gha-sha@v1.1.0 From 82a0b9378c916f9ec2d31b8850f3b3efb9aa10af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Ng=E1=BB=8Dc=20=C4=90=E1=BB=A9c=20Huy?= Date: Tue, 26 Apr 2022 20:29:33 +0700 Subject: [PATCH 3/3] fix? --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f614f1..f42672d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,7 @@ jobs: run: python -m cibuildwheel --output-dir wheelhouse env: CIBW_PROJECT_REQUIRES_PYTHON: "==3.10" - CIBW_BUILD: "cp310" + CIBW_BUILD: "cp310-*" - name: Checksum uses: Huy-Ngo/gha-sha@v1.1.0