From 63e1402326b4e7d5e6559bf0aabe3aad12935a2b Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Thu, 17 Nov 2022 16:19:23 +0100 Subject: [PATCH] We don't have Github actions here. --- .github/FUNDING.yml | 1 - .github/ISSUE_TEMPLATE/r-servation.md | 12 ---- .github/problem-matchers/pospell.json | 15 ---- .github/stale.yml | 26 ------- .github/workflows/tests.yml | 99 --------------------------- 5 files changed, 153 deletions(-) delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/ISSUE_TEMPLATE/r-servation.md delete mode 100644 .github/problem-matchers/pospell.json delete mode 100644 .github/stale.yml delete mode 100644 .github/workflows/tests.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 50116639..00000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -liberapay: python-docs-fr diff --git a/.github/ISSUE_TEMPLATE/r-servation.md b/.github/ISSUE_TEMPLATE/r-servation.md deleted file mode 100644 index 6a3f74ed..00000000 --- a/.github/ISSUE_TEMPLATE/r-servation.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: Réservation -about: Juste réserver un fichier po (je veux être le seul à travailler dessus). -title: Je travaille sur DOSSIER/FICHIER.po -labels: reservation -assignees: '' - ---- - - diff --git a/.github/problem-matchers/pospell.json b/.github/problem-matchers/pospell.json deleted file mode 100644 index cedddb00..00000000 --- a/.github/problem-matchers/pospell.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "problemMatcher": [ - { - "owner": "pospell", - "pattern": [ - { - "regexp": "^(.*):(\\d+):(.*)$", - "file": 1, - "line": 2, - "message": 3 - } - ] - } - ] -} diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index c005b301..00000000 --- a/.github/stale.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 14 -# Issues with these labels will never be considered stale -exemptLabels: - - meta - - on hold - - EASY -# Label to use when marking an issue as stale -staleLabel: stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - Cette issue/pull request a été automatiquement marquée comme innactive car elle n'a pas eu d'activité récente. - Elle sera fermée si il ne se passe rien dans les 14 jours qui viennent. Merci pour votre contribution - - This issue/pull request has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: true - -# Comment to post when removing the stale label. -unmarkComment: > - Cette issue n'est plus innactive ! - This issue isn't stale anymore! diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 162c52e9..00000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- - -name: Tests - -on: - push: - branches: - - '*.*' - pull_request: - branches: - - '*.*' - -jobs: - checks: - strategy: - matrix: - tool: - - name: sphinx-lint - package: sphinx-lint - command: 'sphinx-lint --enable all --disable line-too-long --ignore .git' - - name: Orthographe - package: pospell - apt_dependencies: hunspell hunspell-fr-comprehensive - command: 'pospell -p dict -l fr_FR $CHANGED_PO_FILES' - - name: Longueur des lignes - command: 'awk ''{if (length(gensub(/శ్రీనివాస్/, ".", "g", $0)) > 80 && length(gensub(/[^ ]/, "", "g")) > 1) {print FILENAME ":" FNR, "line too long:", $0; ERRORS+=1}} END {if (ERRORS>0) {exit 1}}'' $CHANGED_PO_FILES' - - name: Grammaire - package: padpo - command: 'padpo -i $CHANGED_PO_FILES 2>&1 | grep -v -Ff padpo.ignore' - - name: ${{ matrix.tool.name }} (${{ matrix.tool.package }}) - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Register problem matchers - run: echo "::add-matcher::.github/problem-matchers/pospell.json" - - uses: lots0logs/gh-action-get-changed-files@2.1.4 - id: changed_files - with: - token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/setup-python@v2 - with: - python-version: '3.9' - - name: Install ${{ matrix.tool.package }} - run: | - if [ -n "${{ matrix.tool.apt_dependencies }}" ]; then - sudo apt-get update && sudo apt-get install -y ${{ matrix.tool.apt_dependencies }} - fi - if [ -n "${{ matrix.tool.package }}" ]; then - python -m pip install --upgrade pip setuptools wheel - python -m pip install ${{ matrix.tool.package }} - fi - - name: Run ${{ matrix.tool.package }} - env: - ADDED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }} - MODIFIED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.modified), ' ') }} - run: | - CHANGED_PO_FILES=$(printf "%s %s\n" "$ADDED_FILES" "$MODIFIED_FILES" | tr ' ' '\n' | grep '.po$'; true) - if [ -n "$CHANGED_PO_FILES" ] - then - echo "Running on:" $CHANGED_PO_FILES - ${{ matrix.tool.command }} - else - echo "No changed po files, nothing to check." - fi - - sphinx: - name: 'Génération de la doc (sphinx)' - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: '~/cpython/' - key: '1' - - uses: actions/setup-python@v2 - with: - python-version: '3.9' - - name: Clone cpython - run: | - if [ ! -d ~/cpython ]; then - git clone https://github.com/python/cpython ~/cpython/ - else - git -C ~/cpython fetch - fi - - name: Prepare build hierarchy - run: | - mkdir -p ~/locales/fr/LC_MESSAGES/ - cp -uv --parents *.po */*.po ~/locales/fr/LC_MESSAGES/ - git -C ~/cpython checkout $(grep ^CPYTHON_CURRENT_COMMIT Makefile| cut -d= -f2) - - name: Prepare venv - run: | - # If the venv exists but is broken, drop it (happens on Python upgrades): - # see https://github.com/actions/setup-python/issues/170 - [ -d $HOME/cpython/Doc/venv/bin/ -a ! -e $HOME/cpython/Doc/venv/bin/python ] && rm -fr $HOME/cpython/Doc/venv - make -C $HOME/cpython/Doc venv - - name: sphinx-build - run: make -C $HOME/cpython/Doc SPHINXOPTS="-q -j4 -D locale_dirs=$HOME/locales -D language=fr -D gettext_compact=0" autobuild-dev-html