A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

65 linhas
2.1 KiB

  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 cp313-cp313'
  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 cp313-cp313'
  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. - '3.13'
  40. steps:
  41. - uses: actions/checkout@v4
  42. - uses: actions/setup-python@v5
  43. with:
  44. python-version: ${{ matrix.python-version }}
  45. - name: Build wheels
  46. run: |
  47. python -m pip install --upgrade pip wheel setuptools
  48. pip wheel . -w dist/
  49. ls dist/
  50. - uses: actions/upload-artifact@v3
  51. with:
  52. name: wheels
  53. path: dist/*.whl
  54. - name: Publish package to PyPI
  55. # Only actually publish if a new tag was pushed
  56. if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
  57. # We can't use the pypa action because of https://github.com/pypa/gh-action-pypi-publish/issues/15
  58. run: |
  59. pip install twine
  60. TWINE_USERNAME="__token__" \
  61. TWINE_PASSWORD="${{ secrets.pypi_password }}" \
  62. twine upload dist/*