A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

build-wheels.yml 2.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. name: Build wheels
  2. on: push
  3. jobs:
  4. build-linux:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v4
  8. - name: Set up QEMU
  9. uses: docker/setup-qemu-action@v1
  10. - name: Build manylinux2014 x86-64 wheels
  11. uses: earwig/python-wheels-manylinux-build@latest-manylinux2014_x86_64
  12. with:
  13. python-versions: 'cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
  14. - name: Build manylinux 2014 aarch64 wheels
  15. uses: earwig/python-wheels-manylinux-build@latest-manylinux2014_aarch64
  16. with:
  17. python-versions: 'cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
  18. - uses: actions/upload-artifact@v3
  19. with:
  20. name: wheels
  21. path: dist/*.whl
  22. - name: Publish package to PyPI
  23. # Only actually publish if a new tag was pushed
  24. if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
  25. uses: pypa/gh-action-pypi-publish@37e305e7413032d8422456179fee28fac7d25187
  26. with:
  27. user: __token__
  28. password: ${{ secrets.pypi_password }}
  29. build-macos:
  30. runs-on: macos-latest
  31. strategy:
  32. matrix:
  33. python-version:
  34. - '3.8'
  35. - '3.9'
  36. - '3.10'
  37. - '3.11'
  38. - '3.12'
  39. steps:
  40. - uses: actions/checkout@v4
  41. - uses: actions/setup-python@v5
  42. with:
  43. python-version: ${{ matrix.python-version }}
  44. - name: Build wheels
  45. run: |
  46. python -m pip install --upgrade pip wheel setuptools
  47. pip wheel . -w dist/
  48. ls dist/
  49. - uses: actions/upload-artifact@v3
  50. with:
  51. name: wheels
  52. path: dist/*.whl
  53. - name: Publish package to PyPI
  54. # Only actually publish if a new tag was pushed
  55. if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
  56. # We can't use the pypa action because of https://github.com/pypa/gh-action-pypi-publish/issues/15
  57. run: |
  58. pip install twine
  59. TWINE_USERNAME="__token__" \
  60. TWINE_PASSWORD="${{ secrets.pypi_password }}" \
  61. twine upload dist/*