Skip to content

Commit

Permalink
Merge pull request #392 from MC-kit/devel
Browse files Browse the repository at this point in the history
enable python3.13
  • Loading branch information
dvp2015 authored Oct 22, 2024
2 parents 48925f7 + 1293338 commit 99c26de
Show file tree
Hide file tree
Showing 71 changed files with 4,367 additions and 5,325 deletions.
81 changes: 0 additions & 81 deletions .flake8

This file was deleted.

2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@
*.docx binary
*.xlsx binary
*.png binary
*.so binary
*.dll binary
*.pyd binary
*.sqlite binary
4 changes: 2 additions & 2 deletions .github/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pip==23.1.2
poetry==1.5.1
pip==24.1.2
poetry==1.8.3

11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ updates:
interval: weekly
day: monday
time: "11:00"
labels:
- "kind/dependencies"
- "bot"
open-pull-requests-limit: 10
target-branch: devel

Expand All @@ -18,6 +21,11 @@ updates:
interval: weekly
day: tuesday
time: "11:00"
labels:
- "area/ci"
- "github_actions"
- "kind/dependencies"
- "bot"
open-pull-requests-limit: 10
target-branch: devel

Expand All @@ -27,5 +35,8 @@ updates:
interval: weekly
day: wednesday
time: "11:00"
labels:
- "kind/dependencies"
- "bot"
open-pull-requests-limit: 10
target-branch: devel
22 changes: 11 additions & 11 deletions .github/workflows/clean-workflow-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Clean Workflow Logs
on:
workflow_dispatch:
inputs:
# days_old:
# description: "The amount of days old to delete"
# default: "7"
# required: false
# days_old:
# description: "The amount of days old to delete"
# default: "7"
# required: false
dry:
description: "Dry run"
default: "false"
Expand All @@ -15,14 +15,14 @@ jobs:
clean-logs:
runs-on: ubuntu-latest
steps:
# - uses: igorjs/gh-actions-clean-workflow@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# owner: ${{ github.repository_owner }}
# repo: ${{ github.event.repository.name }}
# days_old: ${{ github.event.inputs.days_old }}
# - uses: igorjs/gh-actions-clean-workflow@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# owner: ${{ github.repository_owner }}
# repo: ${{ github.event.repository.name }}
# days_old: ${{ github.event.inputs.days_old }}
- name: Clean workflow runs
uses: dmvict/clean-workflow-runs@v1.2.1
uses: dmvict/clean-workflow-runs@v1
with:
token: ${{ secrets.MCKIT_GITHUB_TOKEN }}
save_period: 30
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Create Repository Labels

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
Expand All @@ -10,27 +14,26 @@ on:
- .github/labels.yml
- .github/workflows/labeler.yml
pull_request:
branches:
- main
- master
- devel
paths:
- .github/labels.yaml
- .github/workflows/labeler.yml
schedule:
- cron: "0 0 * * TUE"

jobs:
labels:
labeler:
name: Sycnchronize repository labels
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3.5.3
- name: Checkout
uses: actions/checkout@v4

- name: Sync GitHub Issue Labels
uses: crazy-max/ghaction-github-labeler@v4
- name: Run labeler
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.MCKIT_GITHUB_TOKEN }}
skip-delete: true
dry-run: ${{ github.ref != 'refs/heads/master' }}
dry-run: ${{ github.event_name == 'pull_request' }}
exclude: |
help*
*issue
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
draft_release:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5.24.0
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.MCKIT_GITHUB_TOKEN }}
19 changes: 6 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release

env:
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.13'

on:
workflow_dispatch:
Expand All @@ -27,12 +27,12 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v3.5.3
uses: actions/checkout@v4
with:
fetch-depth: 2 # need previous revision to define tag

- name: Set up Python
uses: actions/setup-python@v4.7.0
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand Down Expand Up @@ -71,21 +71,14 @@ jobs:
- name: Publish package on PyPI
if: steps.check-version.outputs.tag
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}

- name: Publish package on TestPyPI
if: "! steps.check-version.outputs.tag"
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
run: poetry publish --username=__token__ --password=${{ secrets.TEST_PYPI_TOKEN }}

- name: Publish the release notes
uses: release-drafter/release-drafter@v5.24.0
uses: release-drafter/release-drafter@v6
with:
publish: ${{ steps.check-version.outputs.tag != '' }}
tag: ${{ steps.check-version.outputs.tag }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ name: Mark stale issues and pull requests

on:
schedule:
- cron: "10 10 * * 0" # at 10:10 every Sunday
# See expression format: https://www.techielass.com/schedule-github-actions-using-cron-expressions
- cron: "10 10 * * 0" # at 10:10 every Sunday
# See expression format: https://www.techielass.com/schedule-github-actions-using-cron-expressions
jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.MCKIT_GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.MCKIT_GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
2 changes: 1 addition & 1 deletion .github/workflows/test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
- name: GitHub Release wheels (deploy)
if: (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags'))
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: dist/*
env:
Expand Down
Loading

0 comments on commit 99c26de

Please sign in to comment.