Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Automate more of the Python upgrade

Đang mở
#319 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
github-actions, python
Lĩnh vực
ci-cd, devops, documentation

Hướng nghiên cứu

Đọc .github/workflows/new_python.yml để hiểu checklist nâng cấp Python hiện tại, sau đó xem xét renovate.json và decision 0022-spec-0.html. Quyết định những bước hỗ trợ và Deprecation nào nên được tự động hóa, ghi lại quyết định đó trong tài liệu được liên kết, rồi triển khai phần tự động hóa đã thống nhất hoặc tách phần việc khó hơn thành một Issue mới.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

When a new python version is released we currently have the checklist in https://github.com/DiamondLightSource/python-copier-template/blob/main/.github/workflows/new_python.yml. Many of these steps could be done automatically by renovate e.g. something like:

{
  "regexManagers": [
    {
      "fileMatch": ["^\\.github/workflows/.*\\.ya?ml$"],
      "matchStrings": [
        "python-version:\\s*\

\[(?<currentVersions>[^\\]

]+)\\]

"
      ],
      "datasourceTemplate": "python",
      "depNameTemplate": "python",
      "versioningTemplate": "pep440"
    }
  ]
}

in the renovate.json should update the versions under test.

There are probably differing opinions of how much of this we do automatically, semi-automatically or manually based on risk. My preference would be to split the move into two steps:

  • Adding the new version as supported - e.g. adding it to the versions under test and to the classifiers. I would say if the tests pass then merge this w/o human input
  • Deprecating the old one. I think this does need human intervention as it's risky and there may be valid reasons it's hard. However, we can probably still get renovate to make the PR for it.

Acceptance Criteria

Ngôn ngữ chính
Jinja
Star
25
Fork
10
Merge trung bình
4 ngày 17 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DiamondLightSource/python-copier-template

Tất cả issue của DiamondLightSource/python-copier-template

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.