Update to latest repo-template and uv
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, github-actions, python
- Lĩnh vực
- build-system, ci-cd, developer-experience, devops, documentation
Hướng nghiên cứu
So sánh dependabot.yml, các tệp requirements.*, pyproject.toml, justfile, Dockerfiles, .dockerignore, cấu hình pre-commit, DEVELOPERS.md và các workflow GHA của repository với repo-template. Bắt đầu bằng việc xem xét template được tham chiếu và các tệp hiện tại của project, sau đó chạy các lệnh just được liệt kê trong quá trình thực hiện thay đổi. Hoàn tất nghĩa là checklist đã đầy đủ, uv.lock đã được tạo, các bản cập nhật dependency và các bản build Docker hoạt động, và các check đều đạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Refer to https://github.com/opensafely-core/repo-template
Note: you probably want to commit with --no-verify until the justfile is updated and committed; otherwise pre-commit hooks will use old justfile commands and fail confusingly.
- Update dependabot.yml for github actions to include 7 day cooldown
- Move dependencies from requirements.prod.in into pyproject.toml
[project] - Copy tool.uv section from repo-template and move dev dependencies from requirements.dev.in into pyproject.toml
[dependency groups](remove pip and pip-tools if they're in the dependencies) - Delete requirements.* files
- Add a .python-version file (if there isn't one already)
- Update justfile with repo-template recipes; note that
devenvis not required for most recipes anymore (but recipes that require a .env file may need_dotenvsetup). In addition to adding the new recipes/versions of recipes for uv, update any extra ones that do e.g.python ...touv run python ... - Run
just cleanto remove any old venv - Run
just devenv,just check/test/runto make sure things work and generate a uv.lock - Run
just update-dependenciesand check that works too, and theexclude-newertimestamp in pyproject.toml and uv.lock has been correctly updated to 7 days ago - Update pre-commit config if necessary (compare with repo-template)
- Update Dockerfiles to use uv (following repo-template Dockerfile)
- Ensure that .python-version and pyproject.toml are not ignored in the .dockerignore file
- Run just docker/build to check it's working
- Update DEVELOPERS.md to include sections from repo-template on using uv and updating dependencies
- Update GHA workflows; any jobs that use setup-action will need to add:
install-uv: true
cache: uv
But you can remove the python version unless you have anything in a workflow job that runs python without using uv.
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 0
- Merge trung bình
- 2 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 9
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của opensafely-core/osgithub
-
dependency-management
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
opensafely-core/osgithub#289 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
opensafely-core/osgithub#269 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
opensafely-core/osgithub#242 ·
-
`httpretty` looks unmaintained Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
opensafely-core/osgithub#230 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
opensafely-core/osgithub#142 ·
Tất cả issue của opensafely-core/osgithub
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stephrobert/dsoxlab#238 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
sublimehq/package_control#1780 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nwg-piotr/nwg-displays#145 ·