From 11bddcfc87673971b918e9239b76df511d62b30e Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Thu, 1 Sep 2022 22:25:22 +0800 Subject: [PATCH] Prettify md/yaml files Resolved via `prettier -w .` --- .github/workflows/pythonpackage.yml | 76 +++++++------- .github/workflows/pythonwheels.yml | 149 ++++++++++++++-------------- CODE_OF_CONDUCT.md | 33 +++--- SECURITY.md | 3 +- status.yaml | 56 +++++------ 5 files changed, 159 insertions(+), 158 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 3d21ce391..919ee6f01 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -4,16 +4,16 @@ on: push: pull_request: schedule: - - cron: '0 6 * * *' # Daily 6AM UTC build + - cron: "0 6 * * *" # Daily 6AM UTC build jobs: build: - runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11.0-rc - 3.11", pypy3] + python-version: + ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11.0-rc - 3.11", pypy3] exclude: # sqlite3 exit handling seems to get in the way - os: macos-latest @@ -24,38 +24,38 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install native dependencies (Ubuntu) - run: sudo apt-get update && sudo apt-get install -y libgpgme-dev libgpg-error-dev - if: "matrix.os == 'ubuntu-latest'" - - name: Install native dependencies (MacOS) - run: brew install swig gpgme - if: "matrix.os == 'macos-latest'" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -U pip coverage flake8 fastimport paramiko urllib3 - - name: Install gpg on supported platforms - run: pip install -U gpg - if: "matrix.os != 'windows-latest' && matrix.python-version != 'pypy3'" - - name: Install mypy - run: | - pip install -U mypy types-paramiko types-certifi types-requests - if: "matrix.python-version != 'pypy3'" - - name: Style checks - run: | - python -m flake8 - - name: Typing checks - run: | - python -m mypy dulwich - if: "matrix.python-version != 'pypy3'" - - name: Build - run: | - python setup.py build_ext -i - - name: Coverage test suite run - run: | - python -m coverage run -p -m unittest dulwich.tests.test_suite + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install native dependencies (Ubuntu) + run: sudo apt-get update && sudo apt-get install -y libgpgme-dev libgpg-error-dev + if: "matrix.os == 'ubuntu-latest'" + - name: Install native dependencies (MacOS) + run: brew install swig gpgme + if: "matrix.os == 'macos-latest'" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -U pip coverage flake8 fastimport paramiko urllib3 + - name: Install gpg on supported platforms + run: pip install -U gpg + if: "matrix.os != 'windows-latest' && matrix.python-version != 'pypy3'" + - name: Install mypy + run: | + pip install -U mypy types-paramiko types-certifi types-requests + if: "matrix.python-version != 'pypy3'" + - name: Style checks + run: | + python -m flake8 + - name: Typing checks + run: | + python -m mypy dulwich + if: "matrix.python-version != 'pypy3'" + - name: Build + run: | + python setup.py build_ext -i + - name: Coverage test suite run + run: | + python -m coverage run -p -m unittest dulwich.tests.test_suite diff --git a/.github/workflows/pythonwheels.yml b/.github/workflows/pythonwheels.yml index de8aaac86..fcb45e253 100644 --- a/.github/workflows/pythonwheels.yml +++ b/.github/workflows/pythonwheels.yml @@ -4,79 +4,78 @@ on: push: pull_request: schedule: - - cron: '0 6 * * *' # Daily 6AM UTC build + - cron: "0 6 * * *" # Daily 6AM UTC build jobs: build: - runs-on: ${{ matrix.os }} strategy: matrix: os: [macos-latest, windows-latest] - python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11.0-rc - 3.11'] + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11.0-rc - 3.11"] include: - os: ubuntu-latest - python-version: '3.x' + python-version: "3.x" # path encoding fail-fast: true steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install native dependencies (Ubuntu) - run: sudo apt-get update && sudo apt-get install -y libgpgme-dev libgpg-error-dev - if: "matrix.os == 'ubuntu-latest'" - - name: Install native dependencies (MacOS) - run: brew install swig gpgme - if: "matrix.os == 'macos-latest'" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel fastimport paramiko urllib3 - - name: Install gpg on supported platforms - run: pip install -U gpg - if: "matrix.os != 'windows-latest' && matrix.python-version != 'pypy3'" - - name: Run test suite - run: | - python -m unittest dulwich.tests.test_suite - - name: Build - run: | - python setup.py sdist bdist_wheel - if: "matrix.os != 'ubuntu-latest'" - - uses: docker/setup-qemu-action@v1 - name: Set up QEMU - if: "matrix.os == 'ubuntu-latest'" - - name: Build (Linux aarch64) - uses: RalfG/python-wheels-manylinux-build@v0.5.0-manylinux2014_aarch64 - with: - python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311' - if: "matrix.os == 'ubuntu-latest'" - - name: Build (Linux) - uses: RalfG/python-wheels-manylinux-build@v0.5.0 - with: - python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311' - env: - # Temporary fix for LD_LIBRARY_PATH issue. See - # https://github.com/RalfG/python-wheels-manylinux-build/issues/26 - LD_LIBRARY_PATH: /usr/local/lib:${{ env.LD_LIBRARY_PATH }} - if: "matrix.os == 'ubuntu-latest'" - - name: Upload wheels (Linux) - uses: actions/upload-artifact@v2 - # Only include *manylinux* wheels; the other wheels files are built but - # rejected by pip. - if: "matrix.os == 'ubuntu-latest'" - with: - name: dist - path: dist/*manylinux*.whl - - name: Upload wheels (non-Linux) - uses: actions/upload-artifact@v2 - with: - name: dist - path: dist/*.whl - if: "matrix.os != 'ubuntu-latest'" + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install native dependencies (Ubuntu) + run: sudo apt-get update && sudo apt-get install -y libgpgme-dev libgpg-error-dev + if: "matrix.os == 'ubuntu-latest'" + - name: Install native dependencies (MacOS) + run: brew install swig gpgme + if: "matrix.os == 'macos-latest'" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel fastimport paramiko urllib3 + - name: Install gpg on supported platforms + run: pip install -U gpg + if: "matrix.os != 'windows-latest' && matrix.python-version != 'pypy3'" + - name: Run test suite + run: | + python -m unittest dulwich.tests.test_suite + - name: Build + run: | + python setup.py sdist bdist_wheel + if: "matrix.os != 'ubuntu-latest'" + - uses: docker/setup-qemu-action@v1 + name: Set up QEMU + if: "matrix.os == 'ubuntu-latest'" + - name: Build (Linux aarch64) + uses: RalfG/python-wheels-manylinux-build@v0.5.0-manylinux2014_aarch64 + with: + python-versions: "cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311" + if: "matrix.os == 'ubuntu-latest'" + - name: Build (Linux) + uses: RalfG/python-wheels-manylinux-build@v0.5.0 + with: + python-versions: "cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311" + env: + # Temporary fix for LD_LIBRARY_PATH issue. See + # https://github.com/RalfG/python-wheels-manylinux-build/issues/26 + LD_LIBRARY_PATH: /usr/local/lib:${{ env.LD_LIBRARY_PATH }} + if: "matrix.os == 'ubuntu-latest'" + - name: Upload wheels (Linux) + uses: actions/upload-artifact@v2 + # Only include *manylinux* wheels; the other wheels files are built but + # rejected by pip. + if: "matrix.os == 'ubuntu-latest'" + with: + name: dist + path: dist/*manylinux*.whl + - name: Upload wheels (non-Linux) + uses: actions/upload-artifact@v2 + with: + name: dist + path: dist/*.whl + if: "matrix.os != 'ubuntu-latest'" publish: runs-on: ubuntu-latest @@ -84,18 +83,18 @@ jobs: needs: build if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/dulwich-') steps: - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: "3.x" - - name: Install twine - run: | - python -m pip install --upgrade pip - pip install twine - - name: Download wheels - uses: actions/download-artifact@v2 - - name: Publish wheels - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: twine upload dist/*.whl + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.x" + - name: Install twine + run: | + python -m pip install --upgrade pip + pip install twine + - name: Download wheels + uses: actions/download-artifact@v2 + - name: Publish wheels + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: twine upload dist/*.whl diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index dd4bb87f3..8a64b1881 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation. Examples of behavior that contributes to creating a positive environment include: -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members +- Using welcoming and inclusive language +- Being respectful of differing viewpoints and experiences +- Gracefully accepting constructive criticism +- Focusing on what is best for the community +- Showing empathy towards other community members Examples of unacceptable behavior by participants include: -* The use of sexualized language or imagery and unwelcome sexual attention or - advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting +- The use of sexualized language or imagery and unwelcome sexual attention or + advances +- Trolling, insulting/derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or electronic + address, without explicit permission +- Other conduct which could reasonably be considered inappropriate in a + professional setting ## Our Responsibilities @@ -67,10 +67,11 @@ members of the project's leadership. ## Attribution -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, -available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 1.4, available at + [homepage]: https://www.contributor-covenant.org For answers to common questions about this code of conduct, see -https://www.contributor-covenant.org/faq + diff --git a/SECURITY.md b/SECURITY.md index f1f270689..f5887a0d6 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -9,4 +9,5 @@ ## Reporting a Vulnerability -Please report security issues by e-mail to jelmer@jelmer.uk, ideally PGP encrypted to the key at https://jelmer.uk/D729A457.asc +Please report security issues by e-mail to jelmer@jelmer.uk, ideally PGP +encrypted to the key at diff --git a/status.yaml b/status.yaml index db78d5a81..e4e0e18e6 100644 --- a/status.yaml +++ b/status.yaml @@ -1,30 +1,30 @@ --- configuration: - - key: core.compression - status: supported - - key: core.looseCompression - status: supported - - key: core.packCompression - status: supported - - key: core.filemode - status: supported - - key: http.proxy - status: supported - - key: http.useragent - status: supported - - key: http.sslVerify - status: supported - - key: http.sslCAInfo - status: supported - - key: i18n.commitEncoding - status: supported - - key: core.excludsFile - status: supported - - key: user.name - status: supported - - key: user.email - status: supported - - key: core.protectNTFS - status: supported - - key: core.ignorecase - status: supported + - key: core.compression + status: supported + - key: core.looseCompression + status: supported + - key: core.packCompression + status: supported + - key: core.filemode + status: supported + - key: http.proxy + status: supported + - key: http.useragent + status: supported + - key: http.sslVerify + status: supported + - key: http.sslCAInfo + status: supported + - key: i18n.commitEncoding + status: supported + - key: core.excludsFile + status: supported + - key: user.name + status: supported + - key: user.email + status: supported + - key: core.protectNTFS + status: supported + - key: core.ignorecase + status: supported