A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Você não pode selecionar mais de 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.0 KiB

  1. name: Build wheels
  2. on: push
  3. jobs:
  4. build-linux:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v2
  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: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
  14. - name: Build manylinux 2014 aarch64 wheels
  15. uses: earwig/python-wheels-manylinux-build@latest-manylinux2014_aarch64
  16. with:
  17. python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
  18. - uses: actions/upload-artifact@v2
  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.6'
  35. - '3.7'
  36. - '3.8'
  37. - '3.9'
  38. - '3.10'
  39. steps:
  40. - uses: actions/checkout@v2
  41. - uses: actions/setup-python@v2
  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@v2
  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/*